Jump to content

Template:Userbox-2: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Created page with "<div style="float:{{{float|left}}}; border:{{{9|{{{border-s|1}}}}}}px solid {{{1|{{{border-c|{{{id1-c|#999999}}}}}}}}}; margin:1px; width:238px;" class="wikipediauserbox {{{bo..."
 
Undo revision 21863737 by ExE Boss (talk)
Tag: Undo
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{{#invoke:userbox|userbox-2}}</onlyinclude>
<div style="float:{{{float|left}}}; border:{{{9|{{{border-s|1}}}}}}px solid {{{1|{{{border-c|{{{id1-c|#999999}}}}}}}}}; margin:1px; width:238px;" class="wikipediauserbox {{{bodyclass|}}}">
{{Documentation}}
{| style="border-collapse:collapse; width:238px; margin-bottom:0; background: {{{2|{{{info-c|#eeeeee}}}}}};"
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
! style="border:0; width:{{{id1-w|45}}}px; height:{{{id-h|45}}}px; background: {{{1|{{{id1-c|#dddddd}}}}}}; text-align: center; font-size: {{{id1-s|14}}}pt; line-height:{{{id1-lh|1.25em}}}; color: {{{id1-fc|black}}}; vertical-align:middle; padding:{{{id1-p|0 1px 0 0}}}; {{{id1-op|}}}" | {{{3|{{{id1|id1}}}}}}
| style="border:0; text-align:{{{info-a|left}}}; font-size: {{{info-s|8}}}pt; color: {{{8|{{{info-fc|black}}}}}}; padding: {{{info-p|0 4px 0 4px}}}; line-height: {{{info-lh|1.25em}}}; vertical-align:middle; {{{info-op|}}}" | {{{4|{{{info|''info''}}}}}}
! style="border:0; width:{{{id2-w|45}}}px; height:{{{id-h|45}}}px; background: {{{7|{{{id2-c|{{{1|{{{id1-c|#dddddd}}}}}}}}}}}}; text-align: center; font-size: {{{id2-s|14}}}pt; line-height:{{{id2-lh|1.25em}}}; color: {{{id2-fc|black}}}; vertical-align:middle; padding:{{{id2-p|0 0 0 1px}}}; {{{id2-op|}}}" | {{{5|{{{id2|id2}}}}}}
|}</div>{{#if:{{{usercategory|}}}{{{usercategory2|}}}{{{usercategory3|}}}|{{category handler
|nocat = {{{nocat|}}}
|user = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}]]}}
|template = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}| {{PAGENAME}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}| {{PAGENAME}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}| {{PAGENAME}}]]}}
}}}}<noinclude>
{{documentation}}
</noinclude>

Latest revision as of 01:25, 8 November 2021

id1{{{info}}}id2
Template documentation

Usage[edit]

Compact[edit]

{{userbox-2
| side-box 1 color
| main box color
| ID/icon 1
| message
| ID/icon 2
| border color (defaults to same as side-box 1)
| side-box 2 color (defaults to same as side-box 1)
}}

Extended[edit]

{{userbox-2
| float         = 
| border-c      = border color
| border-s      = border width

| id1           = side-box 1 content
| id1-c         = side-box 1 color
| id1-p         = side-box 1 padding
| id1-s         = side-box 1 font size
| id1-fc        = side-box 1 font color
| id1-lh        = side-box 1 line height
| id1-op        = side-box 1 CSS properties

| info          = main box content
| info-a        = main box horizontal alignment
| info-c        = main box color
| info-p        = main box padding
| info-s        = main box font size
| info-fc       = main box font color
| info-lh       = main box line height
| info-op       = main box CSS properties

| id2           = side-box 2 content
| id2-c         = side-box 2 color
| id2-p         = side-box 2 padding
| id2-s         = side-box 2 font size
| id2-fc        = side-box 2 font color
| id2-lh        = side-box 2 line height
| id2-op        = side-box 2 CSS properties

| usercategory  = user category (optional)
| usercategory2 = user category (optional)
}}
  • If border-c is not specified, id1-c will be used
  • All parameters are optional