Template:Userbox: Difference between revisions

From Tolkien Gateway
m (Table won't work...)
m (Tweaked design)
Line 1: Line 1:
<includeonly><div style="float: {{{float|left}}}; border: {{{border-s|solid}}} {{{border-c|#999999}}} {{{border-w|1}}}px; margin: 1px;">
<includeonly><div style="float: {{{float|left}}}; border: {{{border-s|solid}}} {{{border-c|#999999}}} {{{border-w|1}}}px; margin: 1px;">
{| cellspacing="0" style="width: 238px; background: {{{info-c|#EEEEEE}}};"
{| cellspacing="0" style="width: 238px; background: {{{info-c|#EEEEEE}}};"
| style="text-align: {{{id-a|center}}}; background: {{{id-c|#DDDDDD}}}; line-height: {{{id-lh|1.25em}}}; color: {{{id-fc|black}}}; font-size: {{{id-fs|14}}}px; width: {{{id-w|45}}}px; height: {{{id-h|45}}}px; padding: {{{id-p|0 1px 0 0}}}; {{{id-css|}}}" | {{{id}}}
| style="text-align: {{{id-a|center}}}; background: {{{id-c|#DDDDDD}}}; line-height: {{{id-lh|1.25em}}}; color: {{{id-fc|black}}}; font-size: {{{id-fs|14}}}pt; width: {{{id-w|45}}}px; height: {{{id-h|45}}}px; padding: {{{id-p|0 1px 0 0}}}; {{{id-css|}}}" | {{{id}}}
| style="text-align: {{{info-a|left}}}; line-height: {{{info-lh|1.25em}}}; color: {{{info-fc|black}}}; font-size: {{{info-fs|8}}}px; padding: {{{info-p|4px}}}; {{{info-css|}}}" | {{{info}}}
| style="text-align: {{{info-a|left}}}; line-height: {{{info-lh|1.25em}}}; color: {{{info-fc|black}}}; font-size: {{{info-fs|8}}}pt; padding: {{{info-p|4px}}}; {{{info-css|}}}" | {{{info}}}
|}</div>{{t|1={{#ifeq:{{NAMESPACE}}|{{ns:2}}|[[Category:{{{cat|}}}|{{PAGENAME}}]]}}|1{{{cat|}}}=}} [[Category:Userbox templates|{{PAGENAME}}]]</includeonly><noinclude>
|}</div>{{t|1={{#ifeq:{{NAMESPACE}}|{{ns:2}}|[[Category:{{{cat|}}}|{{PAGENAME}}]]}}|1{{{cat|}}}=}} [[Category:Userbox templates|{{PAGENAME}}]]</includeonly><noinclude>
{{userbox
{{userbox
Line 8: Line 8:
| info=''info''
| info=''info''
}}
}}
{{clear}}
==Usage==
==Usage==
<pre>
<pre>
Line 45: Line 46:
'''id-lh''', line-height, default is "1.25em". Can be left blank or omitted.<br/>
'''id-lh''', line-height, default is "1.25em". Can be left blank or omitted.<br/>
'''id-fc''', font-color, default is "black". Can be left blank or omitted.<br/>
'''id-fc''', font-color, default is "black". Can be left blank or omitted.<br/>
'''id-fs''', font-size, in pixels, default is "14". Can be left blank or omitted.<br/>
'''id-fs''', font-size, in points, default is "14". Can be left blank or omitted.<br/>
'''id-w''', width, in pixels, default is "45". Can be left blank or omitted.<br/>
'''id-w''', width, in pixels, default is "45". Can be left blank or omitted.<br/>
'''id-h''', height, in pixels, default is "45". Can be left blank or omitted.<br/>
'''id-h''', height, in pixels, default is "45". Can be left blank or omitted.<br/>
Line 55: Line 56:
'''info-lh''', line-height, default is "1.25em". Can be left blank or omitted.<br/>
'''info-lh''', line-height, default is "1.25em". Can be left blank or omitted.<br/>
'''info-fc''', font-color, default is "black". Can be left blank or omitted.<br/>
'''info-fc''', font-color, default is "black". Can be left blank or omitted.<br/>
'''info-fs''', font-size, in pixels, default is "8". Can be left blank or omitted.<br/>
'''info-fs''', font-size, in points, default is "8". Can be left blank or omitted.<br/>
'''info-p''', padding, in pixels, default is "4px". Can be left blank or omitted.<br/>
'''info-p''', padding, in pixels, default is "4px". Can be left blank or omitted.<br/>
'''info-css''', any extra css you wish to enter (such as font face or style). Can be left blank or omitted.<br/>
'''info-css''', any extra css you wish to enter (such as font face or style). Can be left blank or omitted.<br/>

Revision as of 18:12, 7 October 2010

id info

Usage

{{userbox
| float=
| border-c=
| border-w=
| border-s=
| id=
| id-a=
| id-c=
| id-lh=
| id=fc=
| id-fs=
| id-w=
| id-h=
| id-p=
| id-css=
| info=
| info-a=
| info-c=
| info-lh=
| info-fc=
| info-fs=
| info-p
| info-css=
| cat=
}}

float, set by default to float left. Can be left blank or omitted.
border-c, border-colour, default is grey (#999999). can be left blank or omitted.
border-w, border-width, in pixels, default is "1". Can be left blank or omitted.
border-s, border-style, default is "solid". Can be left blank or omitted.
id, contents of the left-hand id box, can contain text or image.
id-a, text-align, default is "center". Can be left blank or omitted.
id-c, background-color, default is grey (#DDDDDD). Can be left blank or omitted.
id-lh, line-height, default is "1.25em". Can be left blank or omitted.
id-fc, font-color, default is "black". Can be left blank or omitted.
id-fs, font-size, in points, default is "14". Can be left blank or omitted.
id-w, width, in pixels, default is "45". Can be left blank or omitted.
id-h, height, in pixels, default is "45". Can be left blank or omitted.
id-p, padding, in pixels, default is "0 1px 0 0". Can be left blank or omitted.
id-css, any extra css you wish to enter (such as font face or style). Can be left blank or omitted.
info, contents of the large informative description on the right-hand side.
info-a, text-align, default is "left". Can be left blank or omitted.
info-c, background-color, default is grey (#EEEEEE). Can be left blank or omitted.
info-lh, line-height, default is "1.25em". Can be left blank or omitted.
info-fc, font-color, default is "black". Can be left blank or omitted.
info-fs, font-size, in points, default is "8". Can be left blank or omitted.
info-p, padding, in pixels, default is "4px". Can be left blank or omitted.
info-css, any extra css you wish to enter (such as font face or style). Can be left blank or omitted.
cat, category for users to be placed in, blank by default. Include just the name of the category, e.g. "Gatekeepers who support Gondor".

Most users, will only need to use this:

{{userbox
| border-c=
| id=
| id-c=
| id-fc=
| info=
| info-c=
| info-fc=
}}