Template:Userbox

From 1100ad

(Difference between revisions)
(Created page with '<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; width:238px;"> {| ce…')
Line 3: Line 3:
| style="width:45px; height:45px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|1pt}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; {{{logo-other-param|{{{id-op|}}}}}}" | '''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
| style="width:45px; height:45px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|1pt}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; {{{logo-other-param|{{{id-op|}}}}}}" | '''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
| style="width: 193px; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|4pt}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; {{{info-other-param|{{{info-op|}}}}}}" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
| style="width: 193px; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|4pt}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; {{{info-other-param|{{{info-op|}}}}}}" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
-
|}</div><noinclude>{{clear}}
+
|}</div>{{{float|{{clear}}}}}<noinclude>{{clear}}
==Possible parameters==
==Possible parameters==
;border-width, border-s
;border-width, border-s
Line 54: Line 54:
| info = This user favors tribes.
| info = This user favors tribes.
| info-c =  #DAF}}
| info-c =  #DAF}}
 +
[[Category:User templates]]</noinclude>
[[Category:User templates]]</noinclude>

Revision as of 22:42, 14 April 2010

id info


Possible parameters

border-width, border-s
Border width
border-color, border-c, id-c
Border color
info-background, info-c
Background of the larger text area
logo-background, id-c
Background of the smaller "logo" area
logo-size, id-s
Font size in the smaller "logo" area, default 14px
logo-color, id-fc
Font color in the smaller "logo" area, default black.
logo-padding, id-p
Padding in the "logo", default 1px
logo-line-height, id-lh
Line height in the "logo", default 1.25em
logo-other-param, id-op
Other parameter(s) you want to specify
logo, id
The actual "logo" or logo-text
info-size, info-s
Font size in the larger info area, default 8px
info-color, info-fc
Font color in the larger info area, default black.
info-padding, info-p
Padding in the info, default 4px
info-line-height, info-lh
Line height in the info, default 1.25em
info-other-param
Other parameter(s) you want to specify
info
The actual text/image in the info part

This template also allows numbered and/or undefined parameters.

Example

The following code:

{{Userbox
| id = Tr
| id-c =  #80A
| info = This user favors tribes.
| info-c =  #DAF}}

Will result in the following userbox:

Tr This user favors tribes.