Difference between revisions of "Template:TeamAbbrToHexColor"

From Golly.Life Wiki

Line 44: Line 44:
  
 
[[Category:Colors]]
 
[[Category:Colors]]
 +
[[Category:Team Templates]]
 +
[[Category:Update When New Team]]
 
</noinclude>
 
</noinclude>

Revision as of 22:49, 12 March 2021

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 WITH the hash sign. This means it is useful for ACTUALLY COLORING THINGS, but not suitable for display.

If you want the color WITHOUT the hash sign, for displaying the color, see {{TeamAbbrToColor}}

This is useful for coloring cells in tables:

{|class="wikitable"
!Column 1
!Column 2
|-
|style="background-color: {{TeamAbbrToHexColor|AA}};" | The Arsonists
|style="background-color: {{TeamAbbrToHexColor|BTX}};" | The Texas
|}
Column 1 Column 2
The Arsonists The Texas