Difference between revisions of "Template:TeamAbbrToHexColor"
From Golly.Life Wiki
| Line 34: | Line 34: | ||
!Column 1 | !Column 1 | ||
!Column 2 | !Column 2 | ||
| + | !Column 3 | ||
|- | |- | ||
|style="background-color: {{TeamAbbrToHexColor|AA}};" | The Arsonists | |style="background-color: {{TeamAbbrToHexColor|AA}};" | The Arsonists | ||
| Line 44: | Line 45: | ||
!Column 1 | !Column 1 | ||
!Column 2 | !Column 2 | ||
| + | !Column 3 | ||
|- | |- | ||
|style="background-color: {{TeamAbbrToHexColor|AA}};" | The Arsonists | |style="background-color: {{TeamAbbrToHexColor|AA}};" | The Arsonists | ||
Revision as of 00:05, 23 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
!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 |