Template:Userbox: Difference between revisions

From Tolkien Gateway
m (Fixed categorisation)
(Trying to fit this in the new infobox sizes)
 
(One intermediate revision by one other user not shown)
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: 250px; 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}}}pt; 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}}}pt; 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|}}}=}}{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Userbox templates|{{PAGENAME}}]]}}</includeonly><noinclude>
|}</div>{{t|1={{#ifeq:{{NAMESPACE}}|{{ns:2}}|[[Category:{{{cat|}}}|{{PAGENAME}}]]}}|1{{{cat|}}}=}}</includeonly><noinclude>
{{userbox
{{userbox
| id=''id''
| id=''id''

Latest revision as of 15:36, 9 December 2022

id info

Usage[edit source]

{{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=
}}