Template:TeamAbbrToHexColor

From Golly.Life Wiki

Revision as of 22:50, 12 March 2021 by Ch4zm (talk | contribs)

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