Template:WireColorHex: Difference between revisions

From Nissan Leaf Wiki
Jump to navigation Jump to search
Created page with "This is a helper template for WireColor. It returns the hex code given a wire color code. <includeonly>{{#switch:{{{1}}} |B=#000000 |W=#FFFFFF |R=#FF0000 |G=#008000 |L=#0000FF |Y=#FFFF00 |LG=#90EE90 |DG=#006400 |BR=#A52A2A |O=#FF8C00 |P=#FFC0CB |V=#800080 |GR=#808080 |SB=#87CEEB |LB=#88B5EA |LA=#E6E6FA |CH=#8B0000 |BG=#F5F5DC |#000000 }}</includeonly>"
 
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a helper template for WireColor. It returns the hex code given a wire color code.
<includeonly><nowiki>#</nowiki>{{#switch: {{{1}}}
<includeonly>{{#switch:{{{1}}}
|B=000000
|B=#000000
|W=FFFFFF
|W=#FFFFFF
|R=FF0000
|R=#FF0000
|G=008000
|G=#008000
|L=0000FF
|L=#0000FF
|Y=FFFF00
|Y=#FFFF00
|LG=90EE90
|LG=#90EE90
|DG=006400
|DG=#006400
|BR=A52A2A
|BR=#A52A2A
|O=FF8C00
|O=#FF8C00
|P=FFC0CB
|P=#FFC0CB
|V=800080
|V=#800080
|GR=808080
|GR=#808080
|SB=87CEEB
|SB=#87CEEB
|LB=88B5EA
|LB=#88B5EA
|LA=E6E6FA
|LA=#E6E6FA
|CH=8B0000
|CH=#8B0000
|BG=F5F5DC
|BG=#F5F5DC
|000000
|#000000
}}</includeonly><noinclude>This is a helper template for WireColor. It returns the hex code given a wire color code.
}}</includeonly>
 
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.