Difference between revisions of "Template:TeamAbbrToColor"
From Golly.Life Wiki
(Created page with "<includeonly>{{#switch: {{{1}}}|AA=#ff1717|ATL=#697a21|BTX=#3e92cc|DECO=#a0e7e8|DET=#9963ab|EA=#a0e7e5|FWPT=#ef6f6c|OSHA=#53917e|LBFB=#f2c57c|MILF=#ff66cc|ORL=#0dab76|SAC=#ffb...") |
|||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#switch: {{{1}}}|AA=#ff1717|ATL=#697a21|BTX=#3e92cc|DECO=#a0e7e8|DET=#9963ab|EA=#a0e7e5|FWPT=#ef6f6c|OSHA=#53917e|LBFB=#f2c57c|MILF=#ff66cc|ORL=#0dab76|SAC=#ffb627|SDBA=#f08700|SFBS=#e7d7c1|SS=#e86215|TB=#bb0000}}</includeonly><noinclude> | + | <includeonly>{{#switch: {{{1}}}<!-- |
| − | This is a switch that takes a capitalized team abbreviation as an input and returns the | + | -->|AA=<nowiki>#ff1717</nowiki><!-- |
| + | -->|ATL=<nowiki>#697a21</nowiki><!-- | ||
| + | -->|BTX=<nowiki>#3e92cc</nowiki><!-- | ||
| + | -->|DECO=<nowiki>#a0e7e8</nowiki><!-- | ||
| + | -->|DET=<nowiki>#9963ab</nowiki><!-- | ||
| + | -->|EA=<nowiki>#a0e7e5</nowiki><!-- | ||
| + | -->|FWPT=<nowiki>#ef6f6c</nowiki><!-- | ||
| + | -->|OSHA=<nowiki>#53917e</nowiki><!-- | ||
| + | -->|LBFB=<nowiki>#f2c57c</nowiki><!-- | ||
| + | -->|MILF=<nowiki>#ff66cc</nowiki><!-- | ||
| + | -->|ORL=<nowiki>#0dab76</nowiki><!-- | ||
| + | -->|SAC=<nowiki>#ffb627</nowiki><!-- | ||
| + | -->|SDBA=<nowiki>#f08700</nowiki><!-- | ||
| + | -->|SFBS=<nowiki>#e7d7c1</nowiki><!-- | ||
| + | -->|SS=<nowiki>#e86215</nowiki><!-- | ||
| + | -->|TB=<nowiki>#bb0000</nowiki><!-- | ||
| + | -->}}</includeonly><noinclude> | ||
| + | This is a switch that takes a capitalized team abbreviation as an input and returns the hex color of the team. | ||
| − | Example: <code><nowiki>{{ | + | This is useful for coloring tables and for using with {{Tl|HexColor}}: |
| + | |||
| + | <pre> | ||
| + | {{HexColor|{{TeamAbbrToColor|SS}}}} | ||
| + | </pre> | ||
| + | |||
| + | {{HexColor|{{TeamAbbrToColor|SS}}}} | ||
| + | |||
| + | |||
| + | |||
| + | Example: <code><nowiki>{{TeamAbbrToColor|SS}}</nowiki></code> returns | ||
| + | |||
| + | {|class="wikitable" | ||
| + | !Column 1 | ||
| + | !Column 2 | ||
| + | |- | ||
| + | |style="background-color: {{TeamAbbrToColor|AA}};" | The Arsonists | ||
| + | |style="background-color: {{TeamAbbrToColor|BTX}};" | The Texas | ||
| + | |} | ||
| + | |||
| + | <pre> | ||
| + | {{TeamAbbrToColor|SS}} | ||
| + | </pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 23:35, 10 February 2021
This is a switch that takes a capitalized team abbreviation as an input and returns the hex color of the team.
This is useful for coloring tables and for using with {{HexColor}}:
{{HexColor|{{TeamAbbrToColor|SS}}}}
##e86215
Example: {{TeamAbbrToColor|SS}} returns
| Column 1 | Column 2 |
|---|---|
| The Arsonists | The Texas |
{{TeamAbbrToColor|SS}}