Difference between revisions of "Template:Userbox"
Jump to navigation
Jump to search
LordisMangis (talk | contribs) (Makes the example user box with centered text.) |
(Changes Assistant gif to Assistant png) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<div style="float:left;border:{{{Border|solid black}}} | <div style="float:left;border-width:{{{Border-w|px}}};border-style:{{{Border-s|solid}}};border-color:{{{Border-c|black}}}margin:1px"> | ||
{|cellspacing="0" style="max-width:{{{Box-w|238px}}};background:{{{Background|}}}" | {|cellspacing="0" style="max-width:{{{Box-w|238px}}};background:{{{Background|}}}" | ||
|style="font-size:0px" | [[File:{{{File|}}}|{{{File-s|45px}}}]] <noinclude>[[File: | |style="font-size:0px" | [[File:{{{File|}}}|{{{File-s|45px}}}]] <noinclude>[[File:Generic assistant.png|45px]]</noinclude> | ||
|style="text-align:{{{Text-a|left}}};font-size:{{{Font-s|8pt}}};font-family:{{{Font|sans-serif}}};padding:{{{Padding|4pt}}};line-height:1.25em;color:{{{Font-c|black}}};<noinclude>text-align:center</noinclude>" | {{{Text|This user loves default values}}} | |style="text-align:{{{Text-a|left}}};font-size:{{{Font-s|8pt}}};font-family:{{{Font|sans-serif}}};padding:{{{Padding|4pt}}};line-height:1.25em;color:{{{Font-c|black}}};<noinclude>text-align:center</noinclude>" | {{{Text|This user loves default values}}} | ||
|style="font-size:0px" | [[File:{{{File2|}}}|{{{File2-s|45px}}}]] <noinclude>[[File: | |style="font-size:0px" | [[File:{{{File2|}}}|{{{File2-s|45px}}}]] <noinclude>[[File:Generic assistant.png|45px]]</noinclude> | ||
|}</div> | |}</div> | ||
<noinclude> | <noinclude> | ||
<br><br> | <br><br> | ||
* ''''Border'''' (optional): | * ''''Border-w'''' (optional): Width of the border. '''Default: 3px''' | ||
* ''''Border-s'''' (optional): Style of the border. '''Default: solid''' | |||
* ''''Border-c'''' (optional): Color of the border. '''Default: black''' | |||
* ''''Box-w'''' (optional): Specify the max width of the Userbox. '''Default: 238px''' | * ''''Box-w'''' (optional): Specify the max width of the Userbox. '''Default: 238px''' | ||
* ''''Background'''' (optional): Background color of the Userbox. '''Default: white''' | * ''''Background'''' (optional): Background color of the Userbox. '''Default: white''' | ||
* ''''File'''' (optional): Full filename of the image to use on the left side of the Userbox. '''Default: | * ''''File'''' (optional): Full filename of the image to use on the left side of the Userbox. '''Default: Generic assistant.png''' | ||
* ''''File-s'''' (optional): Size of the image on the left side of the Userbox. '''Default: 45px''' | * ''''File-s'''' (optional): Size of the image on the left side of the Userbox. '''Default: 45px''' | ||
* ''''Font'''' (optional): Font family for the text. '''Default: sans-serif''' | * ''''Font'''' (optional): Font family for the text. '''Default: sans-serif''' | ||
Line 19: | Line 21: | ||
* ''''Text-a'''' (optional): Text alignment. Use "'''center'''" for Userboxes with two images. '''Default: left''' | * ''''Text-a'''' (optional): Text alignment. Use "'''center'''" for Userboxes with two images. '''Default: left''' | ||
* ''''Text'''' (optional): All text inside the Userbox. '''Default: This user loves default values''' | * ''''Text'''' (optional): All text inside the Userbox. '''Default: This user loves default values''' | ||
* ''''File2'''' (optional): Full filename of the image to use on the right size of the Userbox. '''Default: | * ''''File2'''' (optional): Full filename of the image to use on the right size of the Userbox. '''Default: Generic assistant.png''' | ||
* ''''File2-s'''' (optional): Size of the image on the right side of the Userbox. '''Default: 45px''' | * ''''File2-s'''' (optional): Size of the image on the right side of the Userbox. '''Default: 45px''' | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 20:04, 26 June 2024
- 'Border-w' (optional): Width of the border. Default: 3px
- 'Border-s' (optional): Style of the border. Default: solid
- 'Border-c' (optional): Color of the border. Default: black
- 'Box-w' (optional): Specify the max width of the Userbox. Default: 238px
- 'Background' (optional): Background color of the Userbox. Default: white
- 'File' (optional): Full filename of the image to use on the left side of the Userbox. Default: Generic assistant.png
- 'File-s' (optional): Size of the image on the left side of the Userbox. Default: 45px
- 'Font' (optional): Font family for the text. Default: sans-serif
- 'Padding' (optional): Padding for the text. Default: 4pt
- 'Font-s' (optional): Size of the font. Default: 8pt
- 'Font-c' (optional): Font color. Default: black
- 'Text-a' (optional): Text alignment. Use "center" for Userboxes with two images. Default: left
- 'Text' (optional): All text inside the Userbox. Default: This user loves default values
- 'File2' (optional): Full filename of the image to use on the right size of the Userbox. Default: Generic assistant.png
- 'File2-s' (optional): Size of the image on the right side of the Userbox. Default: 45px