Template:WireColor: Difference between revisions
GeorgeDewar (talk | contribs) No edit summary |
GeorgeDewar (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}} | <includeonly>{{#if:{{{2|}}} | ||
| {{WireColorName|{{{1}}}}} / {{WireColorName|{{{2}}}}} <span style=" | | <div class="wireColor"><span>{{WireColorName|{{{1}}}}} / {{WireColorName|{{{2}}}}}</span><span class="wireColorBox" style="background:linear-gradient(135deg, {{WireColorHex|{{{1}}}}} 50%, {{WireColorHex|{{{2}}}}} 50%);"></span></div> | ||
| {{WireColorName|{{{1}}}}} {{#ifeq: {{{1}}} | SHIELD | <span style=" | | <div class="wireColor"><span>{{WireColorName|{{{1}}}}}</span>{{#ifeq: {{{1}}} | SHIELD | <span class="wireColorBox" style="overflow: hidden;">[[File:Wirecolor_shield.gif|link=|top]]</span> | <span class="wireColorBox" style="background:{{WireColorHex|{{{1}}}}};"></span></div> }} | ||
}}</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. | ||
== Single Colours == | == Single Colours == | ||
Usage: <code><nowiki>{{WireColor|B}}</nowiki></code> (where B is the colour code) | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 51: | Line 53: | ||
== Multiple Colours == | == Multiple Colours == | ||
Usage: <code><nowiki>{{WireColor|LA|L}}</nowiki></code> (where LA and L are the two colour codes) | |||
There are a large number of possible combinations, not all of which are used, so here are a few examples. | There are a large number of possible combinations, not all of which are used, so here are a few examples. |