Difference between revisions of "Button"
From Sega Retro
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
|E={{#vardefine:bgcolour|D51C00}}{{#vardefine:fgcolour|FFFFFF}} | |E={{#vardefine:bgcolour|D51C00}}{{#vardefine:fgcolour|FFFFFF}} | ||
}} | }} | ||
− | }}</span><span title="{{{name|}}}" style="display: inline-block; background-color:#{{#var:bgcolour}}; color:#{{#var:fgcolour}}; text-align:center; min-width:15px; font-size:12px; line-height:15px; box-shadow: 1px 1px #000; border-radius:100px; font-weight:{{{weight|bold}}}; vertical-align:middle; margin-left:1px; margin-right:1px;">{{#ifeq:{{#len:{{{text|}}}}}|1|{{{text|}}}| {{{text|}}} }}</span>{{clearvar|bgcolour|fgcolour}}</includeonly><noinclude> | + | }}{{#if:{{#var:bgcolour}}||{{#vardefine:bgcolour|2080FF}}}}{{#if:{{#var:fgcolour}}||{{#vardefine:fgcolour|FFFFFF}}}}</span><span title="{{{name|}}}" style="display: inline-block; background-color:#{{#var:bgcolour}}; color:#{{#var:fgcolour}}; text-align:center; min-width:15px; font-size:12px; line-height:15px; box-shadow: 1px 1px #000; border-radius:100px; font-weight:{{{weight|bold}}}; vertical-align:middle; margin-left:1px; margin-right:1px;margin-bottom:1px;">{{#ifeq:{{#len:{{{text|}}}}}|1|{{{text|}}}| {{{text|}}} }}</span>{{clearvar|bgcolour|fgcolour}}</includeonly><noinclude> |
Template for buttons. | Template for buttons. |