Difference between revisions of "Template:TeamAbbrToHexColor"

From Golly.Life Wiki

Line 21: Line 21:
 
-->|SS=<nowiki>#e86215</nowiki><!--
 
-->|SS=<nowiki>#e86215</nowiki><!--
 
-->|TB=<nowiki>#bb0000</nowiki><!--
 
-->|TB=<nowiki>#bb0000</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><!--
 +
-->|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 29: Line 50:
  
 
This is useful for coloring cells in tables:
 
This is useful for coloring cells in tables:
 +
 +
===Hellmouth Cup===
  
 
<pre>
 
<pre>
Line 50: Line 73:
 
|style="background-color: {{TeamAbbrToHexColor|BTX}};" | The Texas
 
|style="background-color: {{TeamAbbrToHexColor|BTX}};" | The Texas
 
|style="background-color: {{TeamAbbrToHexColor|SLC}};" | The Turbulence
 
|style="background-color: {{TeamAbbrToHexColor|SLC}};" | The Turbulence
 +
|}
 +
 +
===Pseudo Cup===
 +
 +
<pre>
 +
{|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
 +
|}
 +
</pre>
 +
 +
{|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
 
|}
 
|}
  

Revision as of 06:33, 3 May 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:

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