Userbox usage

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(clear)
Current revision (20:36, March 29, 2008) (edit) (undo)
m (Copy-and-paste template: fix this time, really)
 
(7 intermediate revisions not shown.)
Line 1: Line 1:
-
==Usage==
+
== Template usage examples ==
 +
===Example 1===
The following code:
The following code:
<pre>
<pre>
Line 11: Line 12:
|rightbgcolor = silver
|rightbgcolor = silver
|framecolor = darkblue
|framecolor = darkblue
-
|framewidth = 3
+
|framewidth = 2
|category = [[Category:Cubmasters]]
|category = [[Category:Cubmasters]]
}}
}}
Line 26: Line 27:
|rightbgcolor = silver
|rightbgcolor = silver
|framecolor = darkblue
|framecolor = darkblue
-
|framewidth = 3
+
|framewidth = 2
|category = [[Category:Cubmasters]]
|category = [[Category:Cubmasters]]
 +
}}
 +
{{clear}}
 +
 +
===Example 2===
 +
The following code:
 +
<pre>
 +
{{Userbox
 +
|text = This user has been awarded the <br/>'''Silver Beaver'''.
 +
|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]]
}}
}}
{{clear}}
{{clear}}
Line 45: Line 78:
|category = [[Category:]]
|category = [[Category:]]
}}
}}
 +
<nowiki><noinclude></nowiki>
 +
{{documentation}}
 +
<nowiki></noinclude></nowiki>
</pre></div>
</pre></div>

Current revision

Contents

Template usage examples

Example 1

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 = 2
|category  = [[Category:Cubmasters]]
}}

Will produce:

This user is a
Cubmaster.

Example 2

The following code:

{{Userbox 
|text = This user has been awarded the <br/>'''Silver Beaver'''.
|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:]]
}}
<noinclude>
{{documentation}}
</noinclude>
Personal tools
language