Userbox usage

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(clear)
(Usage: add second example)
Line 1: Line 1:
-
==Usage==
+
== Usage examples ==
-
The following code:
+
{|
 +
|The following code:
<pre>
<pre>
{{Userbox
{{Userbox
Line 29: Line 30:
|category = [[Category:Cubmasters]]
|category = [[Category:Cubmasters]]
}}
}}
-
{{clear}}
+
|| &nbsp;
 +
||The following code:
 +
<pre>
 +
{{Userbox
 +
|text = This user has been awarded the <br/> '''<span style="color:#1874CD;">Silver Beaver</span>'''.
 +
|textsize = 8
 +
|textcolor = #E5E5E5
 +
|image = Knotbeaver.jpg
 +
|imagesize = 115
 +
|leftbgcolor = #D2B48C
 +
|rightbgcolor = #D2B48C
 +
|framecolor = #CDAA7D
 +
|framewidth = 2
 +
|category = [[Category:Silver Beaver Users]]
 +
}}
 +
</pre>
 +
 
 +
Will produce:
 +
{{Userbox
 +
|text = This user has been awarded the <br/> '''<span style="color:#1874CD;">Silver Beaver</span>'''.
 +
|textsize = 8
 +
|textcolor = #E5E5E5
 +
|image = Knotbeaver.jpg
 +
|imagesize = 115
 +
|leftbgcolor = #D2B48C
 +
|rightbgcolor = #D2B48C
 +
|framecolor = #CDAA7D
 +
|framewidth = 2
 +
|category = [[Category:Silver Beaver Users]]
 +
}}
 +
|}
== Copy-and-paste template==
== Copy-and-paste template==

Revision as of 09:01, March 27, 2008

Usage examples

The following code:
{{Userbox
|text = This user is a <br>'''[[Cubmaster]]'''.
|textsize = 10
|textcolor = black
|image = Cubmaster_small.gif
|imagesize = 50
|leftbgcolor = white
|rightbgcolor = silver
|framecolor = darkblue
|framewidth = 3
|category  = [[Category:Cubmasters]]
}}

Will produce:

This user is a
Cubmaster.
  The following code:
{{Userbox 
|text = This user has been awarded the <br/> '''<span style="color:#1874CD;">Silver Beaver</span>'''.
|textsize = 8
|textcolor = #E5E5E5
|image = Knotbeaver.jpg
|imagesize = 115
|leftbgcolor = #D2B48C
|rightbgcolor = #D2B48C
|framecolor = #CDAA7D 
|framewidth = 2
|category  = [[Category:Silver Beaver Users]]
}}

Will produce:

This user has been awarded the
Silver Beaver.

Copy-and-paste template

{{Userbox 
|text = 
|textsize = 
|textcolor = #
|image = 
|imagesize = 
|leftbgcolor = #
|rightbgcolor = #
|framecolor = #
|framewidth = 
|category  = [[Category:]]
}}
Personal tools
language