|
|
Line 1: |
Line 1: |
| <div id="ruserboxx" style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;"> | | <includeonly>{{#invoke:Userbox|main}}</includeonly><noinclude> |
| {| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
| | Template invocation of [[Module:Userbox]]. |
| | 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}}}}}};" | '''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
| |
| | style="font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:4pt; line-height:1.25em; color:{{{info-color|{{{info-fc|black}}}}}};" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
| |
| |}</div><noinclude>
| |
| <br clear="all">
| |
| ==Usage==
| |
| <pre>
| |
| {{Userbox
| |
| |id = id text or image
| |
| |id-c = id background color
| |
| |id-fc = id font color
| |
| |id-s = id text size
| |
| |info = info text
| |
| |info-c = info background color
| |
| |info-fc = info font color
| |
| |info-s = info text size
| |
| |border-c = box color
| |
| |border-s = border width in pixels
| |
| }}
| |
| </pre>
| |
| *It is suggested that you limit the size of any images in the id box to 40 pixels.
| |
| *For a list of colors and the Hex triplet (eg., 007BA7) codes for them, see [[wikipedia:List of colors|this Wikipedia page]].
| |
| *This page is to active userboxes.
| |
|
| |
|
| ==Example==
| | {{:Module:Userbox/doc}} |
| <pre>
| | </noinclude> |
| {{Userbox | |
| |id= [[File:Squidpromo.jpg|48px]]
| |
| |id-c= #74DF00
| |
| |info= This user loves Splatoon!
| |
| |info-c= #BCF5A9
| |
| |border-c= #088A08
| |
| }}
| |
| </pre>
| |
| Which will give:
| |
| {{clr}}
| |
| {{Userbox
| |
| |id= [[File:Squidpromo.jpg|48px]]
| |
| |id-c= #74DF00
| |
| |info= This user loves Splatoon!
| |
| |info-c= #BCF5A9
| |
| |border-c= #088A08
| |
| }} | |
| [[Category:User boxes]]</noinclude>
| |
Latest revision as of 23:56, 6 September 2023
Template invocation of Module:Userbox.
Usage
{{Userbox
|id = id text or image
|id-c = id background color
|id-fc = id font color
|id-s = id text size
|info = info text
|info-c = info background color
|info-fc = info font color
|info-s = info text size
|border-c = box color
|border-s = border width in pixels
}}
- It is suggested that you limit the size of any images in the id box to 40 pixels.
- For a list of colors and the Hex triplet (eg., 007BA7) codes for them, see this Wikipedia page.
- This page is to active userboxes.
Example
{{Userbox
|id= [[File:Squidpromo.jpg|48px]]
|id-c= #74DF00
|info= This user loves Splatoon!
|info-c= #BCF5A9
|border-c= #088A08
}}
Which will give:
| This user loves Splatoon! |