Difference between revisions of "Template:Userbox"
Jump to navigation
Jump to search
(creating a userbox template) |
m (removing stray #) |
||
Line 1: | Line 1: | ||
<includeonly><div style="float: left; border:solid {{#if:{{{border|}}}|{{{border}}}|{{{background}}}}} 1px; margin: 1px;"> | <includeonly><div style="float: left; border:solid {{#if:{{{border|}}}|{{{border}}}|{{{background}}}}} 1px; margin: 1px;"> | ||
− | {| cellspacing="0" style="width: 240px; background: | + | {| cellspacing="0" style="width: 240px; background: {{{messagebackground}}};" |
| style="width: 45px; height: 45px; background: {{{boxbackground}}}; text-align: center; font-size: 14pt; color: {{{boxtextcolor}}}" | {{{boxtext}}} | | style="width: 45px; height: 45px; background: {{{boxbackground}}}; text-align: center; font-size: 14pt; color: {{{boxtextcolor}}}" | {{{boxtext}}} | ||
| style="font-size:8pt;padding:4pt;line-height:1.25em;" | {{{message}}} | | style="font-size:8pt;padding:4pt;line-height:1.25em;" | {{{message}}} |
Revision as of 22:09, 12 November 2012
The template can be entered as follows:
{{Userbox |border= border color (if no value is entered, box background color is used) |boxtext= box text (up to three capital letters or 45px image) |boxtextcolor= color of box text |boxbackground= box background color |message= main text |messagebackground= background color for section containing text }}
n.b.: for color hexes, the pound sign (#) must be included.