Difference between revisions of "Template:TeamAbbrToColor"

From Golly.Life Wiki

Line 3: Line 3:
 
-->|ATL=<nowiki>697a21</nowiki><!--
 
-->|ATL=<nowiki>697a21</nowiki><!--
 
-->|BTX=<nowiki>3e92cc</nowiki><!--
 
-->|BTX=<nowiki>3e92cc</nowiki><!--
 +
-->|BTX2=<nowiki>3e92cc</nowiki><!--
 
-->|DECO=<nowiki>a0e7e8</nowiki><!--
 
-->|DECO=<nowiki>a0e7e8</nowiki><!--
 
-->|DET=<nowiki>9963ab</nowiki><!--
 
-->|DET=<nowiki>9963ab</nowiki><!--

Revision as of 08:08, 14 February 2024

This is a switch that takes a capitalized team abbreviation as an input and returns the hex color of the team.

This returns the color WITHOUT the hash sign. This means it is useful for DISPLAY PURPOSES ONLY.

If you want the color WITH the hash sign, for actually coloring things, see {{TeamAbbrToHexColor}}

This is useful for coloring tables and for using with {{HexColor}}:

{{HexColor|{{TeamAbbrToColor|SS}}}}

#e86215

{{HexColor|{{TeamAbbrToColor|DD}}}}

#9963ab