Template:TeamAbbrToHexColor

From Golly.Life Wiki

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:

Hellmouth Cup

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

Pseudo Cup

{|class="wikitable"
!Column 1
!Column 2
!Column 3
|-
|style="background-color: {{TeamAbbrToHexColor|BBR}};" | Berkeley Brutalists
|style="background-color: {{TeamAbbrToHexColor|ST}};" | Sutro Tower
|style="background-color: {{TeamAbbrToHexColor|DD}};" | Moss Landing Daredevils
|}
Column 1 Column 2 Column 3
Berkeley Brutalists Sutro Tower Moss Landing Daredevils