Template:WireColorHex: Difference between revisions
Jump to navigation
Jump to search
GeorgeDewar (talk | contribs) No edit summary Tag: Reverted |
GeorgeDewar (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly><nowiki>#</nowiki>{{#switch: {{{1}}} | ||
< | |B=000000 | ||
|B= | |W=FFFFFF | ||
|W= | |R=FF0000 | ||
|R= | |G=008000 | ||
|G= | |L=0000FF | ||
|L= | |Y=FFFF00 | ||
|Y= | |LG=90EE90 | ||
|LG= | |DG=006400 | ||
|DG= | |BR=A52A2A | ||
|BR= | |O=FF8C00 | ||
|O= | |P=FFC0CB | ||
|P= | |V=800080 | ||
|V= | |GR=808080 | ||
|GR= | |SB=87CEEB | ||
|SB= | |LB=88B5EA | ||
|LB= | |LA=E6E6FA | ||
|LA= | |CH=8B0000 | ||
|CH= | |BG=F5F5DC | ||
|BG= | |000000 | ||
| | }}</includeonly><noinclude>This is a helper template for WireColor. It returns the hex code given a wire color code. | ||
}} | |||
For example, <code><nowiki>{{WireColorHex|G}}</nowiki></code> returns <code>{{WireColorHex|G}}</code>. | |||
See [[Template:WireColor]] for usage. | |||
</noinclude> |
Latest revision as of 09:47, 28 April 2025
This is a helper template for WireColor. It returns the hex code given a wire color code.
For example, {{WireColorHex|G}}
returns #008000
.
See Template:WireColor for usage.