YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Userbox"

From Discovery Wiki
Jump to navigationJump to search
(New page: <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;"> {| cellspacing=...)
 
 
(2 intermediate revisions by one other user not shown)
Line 43: Line 43:
 
<pre>
 
<pre>
 
{{Userbox
 
{{Userbox
| id = Me
+
| id = VHF
| id-c =  #80A
+
| id-c =  black
 
| info = This user favors very heavy fighters.
 
| info = This user favors very heavy fighters.
| info-c =  #DAF}}
+
| info-c =  red}}
 
</pre>
 
</pre>
 
Will result in the following userbox:
 
Will result in the following userbox:
 
{{Userbox
 
{{Userbox
| id = Me
+
| id = VHF
| id-c =  #80A
+
| id-c =  black
 +
| id-fc= white
 
| info = This user favors very heavy fighters.
 
| info = This user favors very heavy fighters.
| info-c =  #DAF}}
+
| info-c =  red}}</noinclude>
[[Category:User templates]]</noinclude>
 

Latest revision as of 19:40, 28 January 2012

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 = VHF
| id-c =  black
| info = This user favors very heavy fighters.
| info-c =  red}}

Will result in the following userbox:

VHF This user favors very heavy fighters.