Template:WireColor: Difference between revisions
GeorgeDewar (talk | contribs) No edit summary |
GeorgeDewar (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}} | <includeonly>{{#if:{{{2|}}} | ||
| {{WireColorName|{{{1}}}}} / {{WireColorName|{{{2}}}}} <span style=" | | {{WireColorName|{{{1}}}}} / {{WireColorName|{{{2}}}}} <span class="wireColorBox" style="background:linear-gradient(135deg, {{WireColorHex|{{{1}}}}} 50%, {{WireColorHex|{{{2}}}}} 50%);"></span> | ||
| {{WireColorName|{{{1}}}}} {{#ifeq: {{{1}}} | SHIELD | <span style=" | | {{WireColorName|{{{1}}}}} {{#ifeq: {{{1}}} | SHIELD | <span class="wireColorBox" style="overflow: hidden;">[[File:Wirecolor_shield.gif|link=|top]]</span> | <span class="wireColorBox" style="background:{{WireColorHex|{{{1}}}}};"></span> }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
This template outputs a colour name and square, particularly for use in a table. | This template outputs a colour name and square, particularly for use in a table. |