|
|
(11 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <includeonly><cleanspace> | | <div style="float: left; border:solid {{{1|{{{border|#999999}}}}}} 1px; margin: 1px; border-style: {{{10|solid}}}; border-width: {{{11|1}}}px"> |
| <!-- Static Defines -->
| | {| cellspacing="0" style="width: 238px; background: {{{2|{{{mainbkgd|#eeeeee}}}}}};" |
| {{#define:2 |#EEEEEE}} | | | style="width: 45px; height: 45px; background: {{{3|{{{codebkgd|#999999}}}}}}; text-align: center; font-size: {{{4|14}}}pt; color: {{{5|{{{codecolor|black}}}}}};" | '''{{{6|{{{code|X}}}}}}''' |
| {{#define:3 |id}} | | | style="font-size: {{{7|8}}}pt; padding: 4pt; line-height: 1.25em; color: {{{8|black}}};" | {{{9|{{{msg|This is a userbox.}}}}}} |
| {{#define:4 |''info''}} | | |}</div> <br clear=all> |
| {{#define:5 |14pt}} | |
| {{#define:border-s |1px}} | |
| {{#define:float |left}} | |
| {{#define:id-fc |black}} | |
| {{#define:id-lh |1.25em}} | |
| {{#define:id-p |0 1px 0 0}} | |
| {{#define:info-align|left}} | |
| {{#define:info-fc |black}} | |
| {{#define:info-lh |1.25em}} | |
| {{#define:info-p |0 4px 0 4px}}
| |
| {{#define:info-s |8pt}}
| |
|
| |
|
| <!-- Defines Based On Other Defines (order is important in some cases) --> | | <noinclude>[[Template talk:Userbox|tutorial for how to use this template is in the talk page]]</noinclude> |
| {{#define:1 |{{{id-c}}}|if={{{id-c|}}}}}
| |
| {{#define:border-c |{{{1|#999999}}}}}
| |
| {{#define:border-color |{{{border-c|}}}}}
| |
| {{#define:border-width |{{{border-s|}}}}}
| |
| {{#define:id |{{{3|}}}}}
| |
| {{#define:id-s |{{{5|}}}}}
| |
| {{#define:info |{{{4|}}}}}
| |
| {{#define:info-c |{{{2|}}}}}
| |
| {{#define:info-background |{{{info-c|}}}}}
| |
| {{#define:info-color |{{{info-fc|}}}}}
| |
| {{#define:info-line-height|{{{info-lh|}}}}}
| |
| {{#define:info-other-param|{{{info-op|}}}}}
| |
| {{#define:info-padding |{{{info-p|}}}}}
| |
| {{#define:info-size |{{{info-s|}}}}}
| |
| {{#define:logo |{{{id|}}}}}
| |
| {{#define:logo-background |{{{1|#DDDDDD}}}}}
| |
| {{#define:logo-color |{{{id-fc|}}}}}
| |
| {{#define:logo-line-height|{{{id-lh|}}}}}
| |
| {{#define:logo-other-param|{{{id-op|}}}}}
| |
| {{#define:logo-padding |{{{id-p|}}}}}
| |
| {{#define:logo-size |{{{id-s|}}}}}
| |
| | |
| <!-- Add Units If Not Specified -->
| |
| {{#local:border-width |{{{border-width}}}px |if={{#iferror:{{#expr:{{{border-width}}}*1}}|0|1}}}}
| |
| {{#local:info-line-height|{{{info-line-height}}}em|if={{#iferror:{{#expr:{{{info-line-height}}}*1}}|0|1}}}}
| |
| {{#local:info-padding |{{{info-padding}}}px |if={{#iferror:{{#expr:{{{info-padding}}}*1}}|0|1}}}}
| |
| {{#local:info-size |{{{info-size}}}pt |if={{#iferror:{{#expr:{{{info-size}}}*1}}|0|1}}}}
| |
| {{#local:logo-size |{{{logo-size}}}pt |if={{#iferror:{{#expr:{{{logo-size}}}*1}}|0|1}}}}
| |
| {{#local:logo-padding |{{{logo-padding}}}px |if={{#iferror:{{#expr:{{{logo-padding}}}*1}}|0|1}}}}
| |
| {{#local:logo-line-height|{{{logo-line-height}}}em|if={{#iferror:{{#expr:{{{logo-line-height}}}*1}}|0|1}}}}
| |
| </cleanspace><table {{Userbox/Table|float={{{float}}}|border-width={{{border-width}}}|border-color={{{border-color}}}|table-op={{{table-op|}}}}}><tr>{{Userbox/Id|background={{{logo-background}}}|size={{{logo-size}}}|color={{{logo-color}}}|padding={{{logo-padding}}}|line-height={{{logo-line-height}}}|other-param={{{logo-other-param}}}|id={{{logo}}}}}{{Userbox/Info|size={{{info-size}}}|padding={{{info-padding}}}|line-height={{{info-line-height}}}|color={{{info-color}}}|align={{{info-align}}}|background={{{info-background}}}|other-param={{{info-other-param}}}|info={{{info}}}}}</tr></table></includeonly><noinclude>
| |