Template:Userbox: Difference between revisions

From BitchSpace
Jump to navigation Jump to search
(Created page with "<includeonly><cleanspace> <!-- Static Defines --> {{#define:2 |#EEEEEE}} {{#define:3 |id}} {{#define:4 |''info''}} {{#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}} <!-- Define...")
 
(Blanked the page)
Tag: Blanking
Line 1: Line 1:
<includeonly><cleanspace>
<!-- Static Defines -->
{{#define:2        |#EEEEEE}}
{{#define:3        |id}}
{{#define:4        |''info''}}
{{#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) -->
{{#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>

Revision as of 01:52, 20 February 2024