Difference between revisions of "Template:Gridiron alt secondary color"

From blackwiki
Jump to navigation Jump to search
imported>JJMC89
imported>Ahecht
Line 1: Line 1:
{{#switch: {{{1}}}
+
{{#invoke:Gridiron color/sandbox|color|column=5|altcolumn=2|raw=false}}<noinclude>
<!-- START NFL/AFL teams -->
 
|Buffalo Bills =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 1962
 
  |color:#FFFFFF
 
  |{{#ifexpr: {{{year}}} >= 1960
 
    |color:#000000
 
    |color:#FFFFFF
 
    }}
 
  }}
 
  |color:#FFFFFF
 
}}
 
|Buffalo Bills 60thru61 = color:#000000
 
|Miami Dolphins =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 2018
 
  |color:#FFFFFF
 
  |{{#ifexpr: {{{year}}} >= 2013
 
    |color:#000000
 
    |{{#ifexpr: {{{year}}} >= 1997
 
    |color:#FFFFFF
 
    |{{#ifexpr: {{{year}}} >= 1972
 
      |color:#FFFFFF
 
      |{{#ifexpr: {{{year}}} >= 1966
 
      |color:#000000
 
      |color:#FFFFFF
 
      }}
 
      }}
 
    }}
 
    }}
 
  }}
 
  |color:#FFFFFF
 
}}
 
|Miami Dolphins 13thru17 = color:#000000
 
|Miami Dolphins 97thru12 = color:#FFFFFF
 
|Miami Dolphins 72thru96 = color:#FFFFFF
 
|Miami Dolphins 66thru71 = color:#000000
 
|NY Jets
 
|New York Jets =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 1998
 
  |color:#FFFFFF
 
  |{{#ifexpr: {{{year}}} >= 1978
 
    |color:#FFFFFF
 
    |{{#ifexpr: {{{year}}} >= 1963
 
    |color:#FFFFFF
 
    |{{#ifexpr: {{{year}}} >= 1960
 
      |color:#000033 <!-- Franchise began as NY Titans -->
 
      |color:#FFFFFF
 
      }}
 
    }}
 
    }}
 
  }}
 
  |color:#FFFFFF
 
}}
 
|New York Jets 78thru97 = color:#FFFFFF
 
|New York Jets 63thru77 = color:#FFFFFF
 
|NY Titans
 
|New York Titans = color:#000033
 
|Cincinnati Bengals = color:#000000
 
|Cleveland Browns = color:#FFFFFF
 
|Pittsburgh Pirates
 
|Pittsburgh Pirates (NFL)
 
|Pittsburgh Steelers=
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 1945
 
  |color:#000000
 
  |{{#ifexpr: {{{year}}} >= 1944
 
    |color:#FFFFFF <!-- Combined Steelers/Chicago Cardinals ("Card-Pitt") played in Cardinals colors -->
 
    |{{#ifexpr: {{{year}}} >= 1943
 
    |color:#006633 <!-- Combined Steelers/Philadelphia Eagles ("Steagles") played in Eagles colors -->
 
    |color:#000000
 
    }}
 
    }}
 
  }}
 
  |color:#000000
 
}}
 
|Philadelphia-Pittsburgh Eagles-Steelers
 
|Pittsburgh-Philadelphia Steelers-Eagles
 
|Phil-Pitt Eagles-Steelers
 
|Pitt-Phil Steelers-Eagles
 
|Philadelphia-Pittsburgh Steagles
 
|Pittsburgh-Philadelphia Steagles
 
|Phil-Pitt Steagles
 
|Pitt-Phil Steagles
 
|Steagles= color:#006633 <!-- Combined Steelers/Philadelphia Eagles ("Steagles") played in Eagles colors -->
 
|Houston Texans = color:#FFFFFF
 
|Baltimore Colts
 
|Indianapolis Colts = color:#FFFFFF
 
|Jacksonville Jaguars = color:#FFFFFF
 
|Tennessee Titans =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 1999
 
  |color:#000000
 
  |{{#ifexpr: {{{year}}} >= 1960
 
    |color:#FFFFFF <!-- Houston/Tennessee Oilers -->
 
    |color:#000000
 
    }}
 
  }}
 
  |color:#000000
 
}}
 
|Tennessee Oilers = color:#FFFFFF
 
|Houston Oilers = color:#FFFFFF
 
|Denver Broncos =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 2012
 
  |color:#FFFFFF
 
  |{{#ifexpr: {{{year}}} >= 1997
 
    |color:#002244
 
    |{{#ifexpr: {{{year}}} >= 1968
 
    |color:#FFFFFF
 
    |{{#ifexpr: {{{year}}} >= 1962
 
      |color:#FFFFFF
 
      |{{#ifexpr: {{{year}}} >= 1960
 
      |color:#330000
 
      |color:#002244
 
      }}
 
      }}
 
    }}
 
    }}
 
  }}
 
  |color:#FFFFFF
 
}}
 
|Denver Broncos 97thru11 = color:#002244
 
|Denver Broncos 68thru96 = color:#FFFFFF
 
|Denver Broncos 62thru67 = color:#FFFFFF
 
|Denver Broncos 60thru61 = color:#330000
 
|Dallas Texans
 
|Dallas Texans (AFL)
 
|Kansas City Chiefs = color:#000000
 
|Oakland Raiders = color:#000000
 
|LA Raiders
 
|Los Angeles Raiders = color:#000000
 
|LA Chargers
 
|Los Angeles Chargers = color:#FFFFFF
 
|San Diego Chargers = color:#FFFFFF
 
|Dallas Cowboys = color:#002244
 
|Philadelphia Eagles =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 1996
 
  |color:#000000
 
  |{{#ifexpr: {{{year}}} >= 1948
 
    |color:#006633
 
    |color:#000000
 
    }}
 
  }}
 
  |color:#000000
 
}}
 
|Philadelphia Eagles 48thru95 = color:#FFFFFF
 
|Boston Braves
 
|Boston Braves (NFL)
 
|Boston Redskins
 
|Washington Redskins = color:#000000
 
|Detroit Lions = color:#000000
 
|Green Bay Packers =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 1959
 
  |color: #203731
 
  |{{#ifexpr: {{{year}}} >= 1954
 
    |color: #002244
 
    |{{#ifexpr: {{{year}}} >= 1950
 
    |color: #000000
 
    |{{#ifexpr: {{{year}}} >= 1937
 
      |color: #002244
 
      |{{#ifexpr: {{{year}}} >= 1935
 
      |color: #000000
 
      |{{#ifexpr: {{{year}}} >= 1919
 
        |color: #002244
 
        |color: #203731
 
        }}
 
      }}
 
      }}
 
    }}
 
    }}
 
  }}
 
  |color: #203731
 
}}
 
|Green Bay Packers 54thru58 = color:#002244
 
|Green Bay Packers 50thru53 = color:#000000
 
|Green Bay Packers 37thru49 = color:#002244
 
|Green Bay Packers 35thru36 = color:#000000
 
|Green Bay Packers 19thru34 = color:#002244
 
|Minnesota Vikings = color:#4F2683
 
|New Orleans Saints = color:#000000
 
|Saint Louis Rams
 
|St. Louis Rams =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 2000
 
  |color:#002244
 
  |{{#ifexpr: {{{year}}} >= 1973
 
    |color:#00338D <!-- encompasses LA Rams -->
 
    |{{#ifexpr: {{{year}}} >= 1938
 
    |color:#FFFFFF <!-- encompasses LA and Cleveland Rams -->
 
    |{{#ifexpr: {{{year}}} >= 1936
 
      |color:#FFFFFF <!-- Cleveland Rams -->
 
      |color:#002244
 
      }}
 
    }}
 
    }}
 
  }}
 
  |color:#002244
 
}}
 
|St. Louis Rams 95thru99 = color:#00338D
 
|LA Rams
 
|Los Angeles Rams = 
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 2000
 
  |color:#002244
 
  |{{#ifexpr: {{{year}}} >= 1973
 
    |color:#00338D <!-- encompasses LA Rams -->
 
    |{{#ifexpr: {{{year}}} >= 1938
 
    |color: #FFFFFF <!-- encompasses LA and Cleveland Rams -->
 
    |{{#ifexpr: {{{year}}} >= 1936
 
      |color:#FFFFFF <!-- Cleveland Rams -->
 
      |color:#002244
 
      }}
 
    }}
 
    }}
 
  }}
 
  |color:#002244
 
}}
 
|Los Angeles Rams 73thru94 = color:#00338D
 
|Los Angeles Rams 64thru72 = color:#00338D
 
|Cleveland Rams 46thru63 = color:#FFFFFF
 
|Cleveland Rams =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 1938
 
  |color: #FFFFFF
 
  |{{#ifexpr: {{{year}}} >= 1936
 
    |color: #FFFFFF
 
    |color: #FFFFFF
 
    }}
 
  }}
 
  |color: #FFFFFF
 
}}
 
|Cleveland Rams 38thru45 = color:#FFFFFF
 
|Cleveland Rams 36thru37 = color:#FFFFFF
 
|San Francisco 49ers =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 2012
 
  |color: #000000
 
  |{{#ifexpr: {{{year}}} >= 2009
 
    |color: #000000
 
    |{{#ifexpr: {{{year}}} >= 1996
 
    |color: #000000
 
    |{{#ifexpr: {{{year}}} >= 1960
 
      |color: #FFFFFF
 
      |{{#ifexpr: {{{year}}} >= 1946
 
      |color: #000000
 
      |color: #000000
 
      }}
 
      }}
 
    }}
 
    }}
 
  }}
 
  |color: #000000
 
}}
 
|San Francisco 49ers 09thru11 = color:#000000
 
|San Francisco 49ers 96thru08 = color:#000000
 
|San Francisco 49ers 60thru95 = color:#FFFFFF
 
|San Francisco 49ers 46thru59 = color:#000000
 
|Seattle Seahawks =
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 2012
 
  |color: #000000
 
  |{{#ifexpr: {{{year}}} >= 2002
 
    |color: #FFFFFF
 
    |{{#ifexpr: {{{year}}} >= 1976
 
    |color: #FFFFFF
 
    |color: #000000
 
    }}
 
    }}
 
  }}
 
  |color: #000000
 
}}
 
|Seattle Seahawks 02thru11 = color:#FFFFFF
 
|Seattle Seahawks 76thru01 = color:#FFFFFF
 
<!-- END NFL teams -->
 
<!-- START Defunct NFL teams -->
 
|Baltimore Colts (AAFC)
 
|Baltimore Colts 47thru50 = color:#006633
 
|Buffalo All-Stars
 
|Buffalo Niagaras
 
|Buffalo Prospects
 
|Buffalo All-Americans
 
|Buffalo Bisons
 
|Buffalo Rangers
 
|Buffalo All-Americans = color:#000000
 
|Portsmouth Spartans (NFL)
 
|Portsmouth Spartans 30thru33 = color:#241773
 
<!-- END Defunct NFL teams -->
 
<!-- START CFL teams -->
 
|BC Lions
 
|British Columbia Lions = color:white
 
|Calgary Stampeders = color:white
 
|Edmonton Eskimos = color:black
 
|Hamilton Tigers
 
|Hamilton Tigers (football)
 
|Hamilton Tiger-Cats = color:black
 
|Hamilton Wildcats
 
|Hamilton Flying Wildcats = color:white
 
|Montreal Alouettes = color:white
 
|Ottawa Rough Riders
 
|Ottawa Roughriders
 
|Ottawa Senators (football)
 
|Ottawa Senators = color:white
 
|Ottawa Renegades = color:white
 
|Ottawa Redblacks
 
|Ottawa RedBlacks = color:white
 
|Saskatchewan Rough Riders
 
|Saskatchewan Roughriders = color:white
 
|Toronto Argonauts = color:black
 
|Winnipeg Blue Bombers = color:black
 
<!-- END CFL teams -->
 
<!-- START Defunct CFL teams -->
 
|Sarnia Imperials = color:blue
 
|Shreveport Pirates = color:#FF5800
 
|Toronto Balmy Beach Beachers =color:#00F
 
<!-- END Defunct CFL teams -->
 
<!-- START Canadian Interuniversity Sport (CIS) teams -->
 
|Concordia Stingers = color:#C5B358
 
|Western Ontario Mustangs = color:white
 
|Windsor Lancers = color:#00005A
 
|Saskatchewan Huskies = color:white
 
|Simon Fraser Clan = color:white
 
<!-- END Canadian Interuniversity Sport (CIS) teams -->
 
<!-- START United Football League (2009–12) teams -->
 
|Omaha Nighthawks = color:white
 
|Virginia Destroyers = color:#002A5C
 
<!-- END United Football League (2009–12) teams -->
 
<!-- START NFL Europe/World League of American Football teams -->
 
|London Monarchs = color:white
 
|Scottish Claymores
 
|Scottish Claymores 95thru96 = color:#002244
 
<!-- END NFL Europe/World League of American Football teams -->
 
<!-- START Arena/Indoor football teams -->
 
|Albany Firebirds = color:white
 
|Arizona Rattlers =  
 
{{#if: {{{year|}}} |
 
  {{#ifexpr: {{{year}}} >= 2012
 
  |color:black
 
  |{{#ifexpr: {{{year}}} >= 1992
 
    |color:white
 
    |color:black
 
    }}
 
  }}
 
  |color:black
 
}}
 
|Cincinnati Rockers = color:#1E4D2B
 
|Colorado Crush = color:#FFFFFF
 
|Iowa Barnstormers = color:#EF3D33
 
|LA Cobras
 
|Los Angeles Cobras = color:goldenrod
 
|LA Kiss
 
|LA KISS
 
|Los Angeles KISS
 
|Los Angeles Kiss = color:#FFEF00
 
|Philadelphia Soul
 
|Philadelphia Soul 04thru11=color:#09c
 
|Alabama Hammers =color:#074512
 
|Albany Panthers =color:#F1ED34
 
|Bismarck Bucks =color:#978060
 
|Columbus Lions= color:#0154A4
 
|Florida Tarpons = color:white
 
|Georgia Fire =color:white
 
|High Country Grizzlies =color:black
 
|Kansas City Renegades = color:white
 
|Lehigh Valley Steelhawks = color:black
 
|Nashville Venom =color:white
 
|Nebraska Danger = color:white
 
|Monterrey Steel =black
 
|Richmond Raiders =color:silver
 
|Spokane Empire =color:black
 
|Trenton Freedom =color:white
 
|Wichita Falls Nighthawks =color:black
 
|Wyoming Cavalry =color:#C5B358
 
<!-- END Arena/Indoor football teams -->
 
|#default ={{NFLSecondaryColor|{{{1}}}|year={{{year|{{CURRENTYEAR}}}}}}}
 
}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 01:33, 22 June 2018

color: #000000

Template documentation[view] [edit] [history] [purge]

Usage

This template can be used on templates and tables to automatically set the background color and the font color to the primary (background) color and the secondary (font) color and optionally the tertiary (border) color that are used by Gridiron football (including American Football, Canadian Football, and Arena/Indoor Football) teams. It can be used in conjunction with other Gridiron color templates listed in the "See also" section below. It takes only one required parameter, which is the team name and one optional parameter, which is the year. If the year is provided it will be used to select the color scheme used at that point in time in the case of franchises whose color schemes have changed over time. If the year is not provided, the current color scheme will be used.

Detail

{{Gridiron alt secondary color|team}}

or

{{Gridiron alt secondary color|team|border=2}}

or

{{Gridiron alt secondary color|team|year=2000}}

Deprecated method to get non-current color

Prior to the implementation of the year parameter, the method to designate non-current color schemes was to specify an alternate team name. For example, {{Gridiron alt secondary color|Buffalo Bills 62thru01}} or {{Gridiron alt secondary color|Buffalo Bills 1962thru2001}} would yield the primary color in use by the Buffalo Bills from 1962 through 2001. A simpler way to achieve this same result using the year parameter would be {{Gridiron alt secondary color|Buffalo Bills|year=2000}}. This requires no special knowledge of the correct "code" for the previously used color scheme.

While the old code word based methodology has been retained in the interest of backward compatibility, the new method using the year parameter should be used going forward.

Color data

All color data is stored in Module:Gridiron color/data. Requests to change or update colors should be made at Module talk:Gridiron color.

See also