Template:Userbox
From MeritBadgeDotOrg
(Difference between revisions)
(tweak cat) |
(<includeonly>) |
||
| (One intermediate revision not shown.) | |||
| Line 5: | Line 5: | ||
| style="font-size:{{{textsize}}}pt;text-align:center;padding:4pt;line-height:1.25em;" | {{{text}}} | | style="font-size:{{{textsize}}}pt;text-align:center;padding:4pt;line-height:1.25em;" | {{{text}}} | ||
|}</div> | |}</div> | ||
| - | <includeonly>{{{category}}}</includeonly><noinclude>{{documentation}}</noinclude>[[Category:Userbox | + | <includeonly><includeonly>{{{category}}}<includeonly></includeonly><noinclude>{{documentation}}</noinclude>[[Category: Userbox templates|{{PAGENAME}}]] |
Current revision
| [[Image:{{{image}}}|{{{imagesize}}}px]] | {{{text}}} |
- This documentation is transcluded from Template:Userbox/doc.
This template may have a sandbox (edit) and testcases for editors to experiment.
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:
Copy-and-paste template
{{Userbox
|text =
|textsize =
|textcolor = #
|image =
|imagesize =
|leftbgcolor = #
|rightbgcolor = #
|framecolor = #
|framewidth =
|category = [[Category:]]
}}
<noinclude>
{{documentation}}
</noinclude>

