Difference between revisions of "Template:TeamAbbrToHexColor"
From Golly.Life Wiki
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1}}}<!-- | <includeonly>{{#switch: {{{1}}}<!-- | ||
-->|AA=<nowiki>#ff1717</nowiki><!-- | -->|AA=<nowiki>#ff1717</nowiki><!-- | ||
| + | -->|ABQ=<nowiki>#d41199</nowiki><!-- | ||
-->|ATL=<nowiki>#697a21</nowiki><!-- | -->|ATL=<nowiki>#697a21</nowiki><!-- | ||
| + | -->|BB=<nowiki>#697a21</nowiki><!-- | ||
-->|BTX=<nowiki>#3e92cc</nowiki><!-- | -->|BTX=<nowiki>#3e92cc</nowiki><!-- | ||
| − | -->|DECO=<nowiki>#a0e7e8</nowiki><!-- | + | -->|BTX2=<nowiki>#3e92cc</nowiki><!-- |
| + | -->|BPT=<nowiki>#3e92cc</nowiki><!-- | ||
| + | -->|DECO=<nowiki>#e7a0e8</nowiki><!-- | ||
| + | -->|DECOOLD=<nowiki>#a0e7e8</nowiki><!-- | ||
-->|DET=<nowiki>#9963ab</nowiki><!-- | -->|DET=<nowiki>#9963ab</nowiki><!-- | ||
-->|EA=<nowiki>#a0e7e5</nowiki><!-- | -->|EA=<nowiki>#a0e7e5</nowiki><!-- | ||
| + | -->|FF=<nowiki>#b0b0b0</nowiki><!-- | ||
| + | -->|FFF=<nowiki>#daed20</nowiki><!-- | ||
-->|FWPT=<nowiki>#ef6f6c</nowiki><!-- | -->|FWPT=<nowiki>#ef6f6c</nowiki><!-- | ||
| + | -->|GJC=<nowiki>#8080ff</nowiki><!-- | ||
| + | -->|LIL=<nowiki>#ef6f6c</nowiki><!-- | ||
-->|OSHA=<nowiki>#53917e</nowiki><!-- | -->|OSHA=<nowiki>#53917e</nowiki><!-- | ||
-->|LBFB=<nowiki>#f2c57c</nowiki><!-- | -->|LBFB=<nowiki>#f2c57c</nowiki><!-- | ||
-->|MILF=<nowiki>#ff66cc</nowiki><!-- | -->|MILF=<nowiki>#ff66cc</nowiki><!-- | ||
| + | -->|MW=<nowiki>#6060bb</nowiki><!-- | ||
-->|ORL=<nowiki>#0dab76</nowiki><!-- | -->|ORL=<nowiki>#0dab76</nowiki><!-- | ||
-->|SAC=<nowiki>#ffb627</nowiki><!-- | -->|SAC=<nowiki>#ffb627</nowiki><!-- | ||
-->|SDBA=<nowiki>#f08700</nowiki><!-- | -->|SDBA=<nowiki>#f08700</nowiki><!-- | ||
-->|SFBS=<nowiki>#e7d7c1</nowiki><!-- | -->|SFBS=<nowiki>#e7d7c1</nowiki><!-- | ||
| + | -->|SGE=<nowiki>#fefe67</nowiki><!-- | ||
| + | -->|SLC=<nowiki>#00cc44</nowiki><!-- | ||
-->|SS=<nowiki>#e86215</nowiki><!-- | -->|SS=<nowiki>#e86215</nowiki><!-- | ||
-->|TB=<nowiki>#bb0000</nowiki><!-- | -->|TB=<nowiki>#bb0000</nowiki><!-- | ||
| + | -->|VV=<nowiki>#aa8040</nowiki><!-- | ||
| + | ----------------------------------- | ||
| + | -->|DCD=<nowiki>#f2c57c</nowiki><!-- | ||
| + | -->|BCC=<nowiki>#00cc44</nowiki><!-- | ||
| + | -->|FFR=<nowiki>#a0e7e5</nowiki><!-- | ||
| + | -->|SCB=<nowiki>#fefe67</nowiki><!-- | ||
| + | -->|AI=<nowiki>#3e92cc</nowiki><!-- | ||
| + | -->|SSS=<nowiki>#e86215</nowiki><!-- | ||
| + | -->|PGM=<nowiki>#e86215</nowiki><!-- | ||
| + | -->|DD=<nowiki>#9963ab</nowiki><!-- | ||
| + | -->|CYC=<nowiki>#e7d7c1</nowiki><!-- | ||
| + | -->|MM=<nowiki>#ff66cc</nowiki><!-- | ||
| + | -->|SCS=<nowiki>#bb0000</nowiki><!-- | ||
| + | -->|BBR=<nowiki>#d41199</nowiki><!-- | ||
| + | -->|OB=<nowiki>#ffb627</nowiki><!-- | ||
| + | -->|RS=<nowiki>#e7a0e8</nowiki><!-- | ||
| + | -->|SBC=<nowiki>#0dab76</nowiki><!-- | ||
| + | -->|VB=<nowiki>#697a21</nowiki><!-- | ||
| + | -->|ST=<nowiki>#ff1717</nowiki><!-- | ||
| + | -->|SGSC=<nowiki>#ef6f6c</nowiki><!-- | ||
| + | -->|SJA=<nowiki>#53917e</nowiki><!-- | ||
| + | -->|MVM=<nowiki>#f08700</nowiki><!-- | ||
| + | -->|HP=<nowiki>#b0b0b0</nowiki><!-- | ||
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
This is a switch that takes a capitalized team abbreviation as an input and returns the hex color of the team. | This is a switch that takes a capitalized team abbreviation as an input and returns the hex color of the team. | ||
| Line 24: | Line 59: | ||
This is useful for coloring cells in tables: | This is useful for coloring cells in tables: | ||
| + | |||
| + | ===Hellmouth Cup=== | ||
| + | |||
| + | <pre> | ||
| + | {|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 | ||
| + | |} | ||
| + | </pre> | ||
| + | |||
| + | {|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 | ||
| + | |} | ||
| + | |||
| + | ===Pseudo Cup=== | ||
<pre> | <pre> | ||
| Line 29: | Line 90: | ||
!Column 1 | !Column 1 | ||
!Column 2 | !Column 2 | ||
| + | !Column 3 | ||
|- | |- | ||
| − | |style="background-color: {{ | + | |style="background-color: {{TeamAbbrToHexColor|BBR}};" | Berkeley Brutalists |
| − | |style="background-color: {{ | + | |style="background-color: {{TeamAbbrToHexColor|ST}};" | Sutro Tower |
| + | |style="background-color: {{TeamAbbrToHexColor|DD}};" | Moss Landing Daredevils | ||
|} | |} | ||
</pre> | </pre> | ||
| Line 38: | Line 101: | ||
!Column 1 | !Column 1 | ||
!Column 2 | !Column 2 | ||
| + | !Column 3 | ||
|- | |- | ||
| − | |style="background-color: {{ | + | |style="background-color: {{TeamAbbrToHexColor|BBR}};" | Berkeley Brutalists |
| − | |style="background-color: {{ | + | |style="background-color: {{TeamAbbrToHexColor|ST}};" | Sutro Tower |
| + | |style="background-color: {{TeamAbbrToHexColor|DD}};" | Moss Landing Daredevils | ||
|} | |} | ||
| + | [[Category:Colors]] | ||
| + | [[Category:Team Templates]] | ||
| + | [[Category:Update When New Teams]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 08:01, 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 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 |