Difference between revisions of "Template:Gridiron alt primary color/sandbox"
imported>Deejayk m (remove excess white space) |
imported>Charlesaaronthompson |
||
| Line 1: | Line 1: | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
<!-- START NFL/AFL teams --> | <!-- START NFL/AFL teams --> | ||
| − | |Buffalo Bills = background: # | + | |Buffalo Bills = background: #C60C30 |
| − | |Miami Dolphins = background: # | + | |Miami Dolphins = background: #F58220 |
|New England Patriots = | |New England Patriots = | ||
{{#if: {{{year|}}} | | {{#if: {{{year|}}} | | ||
{{#ifexpr: {{{year}}} >= 2000 | {{#ifexpr: {{{year}}} >= 2000 | ||
| − | |background: # | + | |background: #C60C30 |
|{{#ifexpr: {{{year}}} >= 1993 | |{{#ifexpr: {{{year}}} >= 1993 | ||
| − | |background: # | + | |background: #C60C30 |
|{{#ifexpr: {{{year}}} >= 1960 | |{{#ifexpr: {{{year}}} >= 1960 | ||
| − | |background: # | + | |background: #00539B <!-- This encompasses Boston Patriots era --> |
| − | |background: # | + | |background: #C60C30 |
}} | }} | ||
}} | }} | ||
}} | }} | ||
| − | |background: # | + | |background: #C60C30 |
}} | }} | ||
| − | |New England Patriots93thru99 = background: # | + | |New England Patriots93thru99 = background: #C60C30 |
| − | |New England Patriots71thru92 = background: # | + | |New England Patriots71thru92 = background: #00539B |
| − | |Boston Patriots = background: # | + | |Boston Patriots = background: #00539B |
|NY Jets | |NY Jets | ||
|New York Jets = | |New York Jets = | ||
{{#if: {{{year|}}} | | {{#if: {{{year|}}} | | ||
{{#ifexpr: {{{year}}} >= 1998 | {{#ifexpr: {{{year}}} >= 1998 | ||
| − | |background: # | + | |background: #203731 |
|{{#ifexpr: {{{year}}} >= 1990 | |{{#ifexpr: {{{year}}} >= 1990 | ||
|background: #111C24 | |background: #111C24 | ||
|{{#ifexpr: {{{year}}} >= 1963 | |{{#ifexpr: {{{year}}} >= 1963 | ||
| − | |background: # | + | |background: #203731 |
|{{#ifexpr: {{{year}}} >= 1960 | |{{#ifexpr: {{{year}}} >= 1960 | ||
| − | |background: # | + | |background: #000033 <!-- Franchise began as NY Titans --> |
| − | |background: # | + | |background: #203731 |
}} | }} | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
| − | |background: # | + | |background: #203731 |
}} | }} | ||
|New York Jets 90thru97 = background: #111C24 | |New York Jets 90thru97 = background: #111C24 | ||
|NY Titans | |NY Titans | ||
| − | |New York Titans =background: # | + | |New York Titans =background: #000033 |
| − | |Baltimore Ravens =background: | + | |Baltimore Ravens =background: #000000 |
|Cincinnati Bengals =background: #FB4F14 | |Cincinnati Bengals =background: #FB4F14 | ||
| − | |Cleveland Browns = background: # | + | |Cleveland Browns = background: #FF3C00 |
|Pittsburgh Pirates | |Pittsburgh Pirates | ||
|Pittsburgh Steelers = background: #FFB612 | |Pittsburgh Steelers = background: #FFB612 | ||
| Line 51: | Line 51: | ||
{{#if: {{{year|}}} | | {{#if: {{{year|}}} | | ||
{{#ifexpr: {{{year}}} >= 1951 | {{#ifexpr: {{{year}}} >= 1951 | ||
| − | |background: # | + | |background: #002C5F |
|{{#ifexpr: {{{year}}} >= 1947 | |{{#ifexpr: {{{year}}} >= 1947 | ||
|background:silver <!-- This is the All-America Football Conference (AAFC) team --> | |background:silver <!-- This is the All-America Football Conference (AAFC) team --> | ||
| − | |background: # | + | |background: #002C5F |
}} | }} | ||
}} | }} | ||
| − | |background: # | + | |background: #002C5F |
}} | }} | ||
| − | |Baltimore Colts 53thru83 = background: # | + | |Baltimore Colts 53thru83 = background: #002C5F |
|Baltimore Colts 47thru50 = background:silver <!-- This is the All-America Football Conference (AAFC) team --> | |Baltimore Colts 47thru50 = background:silver <!-- This is the All-America Football Conference (AAFC) team --> | ||
|Jacksonville Jaguars = | |Jacksonville Jaguars = | ||
{{#if: {{{year|}}} | | {{#if: {{{year|}}} | | ||
{{#ifexpr: {{{year}}} >= 2013 | {{#ifexpr: {{{year}}} >= 2013 | ||
| − | |background: # | + | |background: #9F792C |
|{{#ifexpr: {{{year}}} >= 1995 | |{{#ifexpr: {{{year}}} >= 1995 | ||
| − | |background: | + | |background: #000000 |
| − | |background: # | + | |background: #9F792C |
}} | }} | ||
}} | }} | ||
| − | |background: # | + | |background: #9F792C |
}} | }} | ||
| − | |Jacksonville Jaguars 95thru12 = background: | + | |Jacksonville Jaguars 95thru12 = background: #000000 |
|Tennessee Titans = | |Tennessee Titans = | ||
{{#if: {{{year|}}} | | {{#if: {{{year|}}} | | ||
{{#ifexpr: {{{year}}} >= 1997 | {{#ifexpr: {{{year}}} >= 1997 | ||
| − | |background:# | + | |background:#002244 |
|{{#ifexpr: {{{year}}} >= 1960 | |{{#ifexpr: {{{year}}} >= 1960 | ||
|background:#C60C30 <!-- Houston/Tennessee Oilers --> | |background:#C60C30 <!-- Houston/Tennessee Oilers --> | ||
| − | |background:# | + | |background:#002244 |
}} | }} | ||
}} | }} | ||
| − | |background:# | + | |background:#002244 |
}} | }} | ||
|Tennessee Oilers | |Tennessee Oilers | ||
| Line 106: | Line 106: | ||
|Denver Broncos 62thru96 = background: #002395 | |Denver Broncos 62thru96 = background: #002395 | ||
|Denver Broncos 60thru61 = background: #F0AB00 | |Denver Broncos 60thru61 = background: #F0AB00 | ||
| − | |Kansas City Chiefs = background: # | + | |Kansas City Chiefs = background: #FFB612 |
|Dallas Texans= | |Dallas Texans= | ||
{{#if: {{{year|}}} | | {{#if: {{{year|}}} | | ||
| Line 112: | Line 112: | ||
|background:navy <!-- Default to Arena league team --> | |background:navy <!-- Default to Arena league team --> | ||
|{{#ifexpr: {{{year}}} >= 1954 | |{{#ifexpr: {{{year}}} >= 1954 | ||
| − | |background: # | + | |background: #E31837 <!-- AFL/NFL team (a.k.a. KC Chiefs) --> |
|{{#ifexpr: {{{year}}} >= 1951 | |{{#ifexpr: {{{year}}} >= 1951 | ||
|background: #00205B <!-- First NFL iteration (only operated in 1952) --> | |background: #00205B <!-- First NFL iteration (only operated in 1952) --> | ||
| Line 125: | Line 125: | ||
|Los Angeles Raiders | |Los Angeles Raiders | ||
|LA Raiders | |LA Raiders | ||
| − | |Oakland Raiders = background: # | + | |Oakland Raiders = background: #A5ACAF |
|San Diego Chargers = background: #0073CF | |San Diego Chargers = background: #0073CF | ||
| − | |Dallas Cowboys = background: # | + | |Dallas Cowboys = background: #002244 |
|NY Giants | |NY Giants | ||
| − | |New York Giants = background: # | + | |New York Giants = background: #A71930 |
| − | |Philadelphia Eagles = background: # | + | |Philadelphia Eagles = background: #A5ACAF |
| − | |Washington Redskins = background: # | + | |Washington Redskins = background: #FFB612 |
| − | |Chicago Bears = background: # | + | |Chicago Bears = background: #C83803 |
| − | |Detroit Lions = background: # | + | |Detroit Lions = background: #B0B7BC |
|Green Bay Packers = background: #FFB612 | |Green Bay Packers = background: #FFB612 | ||
| − | |Minnesota Vikings = background: # | + | |Minnesota Vikings = background: #FFC62F |
| − | |Atlanta Falcons = background: | + | |Atlanta Falcons = background: #000000 |
| − | |Carolina Panthers = background: # | + | |Carolina Panthers = background: #0085CA |
|New Orleans Saints = background: #9F8958 | |New Orleans Saints = background: #9F8958 | ||
|Tampa Bay Buccaneers = | |Tampa Bay Buccaneers = | ||
| Line 158: | Line 158: | ||
|background: #B3995D | |background: #B3995D | ||
|{{#ifexpr: {{{year}}} >= 1973 <!-- encompasses LA Rams --> | |{{#ifexpr: {{{year}}} >= 1973 <!-- encompasses LA Rams --> | ||
| − | |background: # | + | |background: #00338D |
|{{#ifexpr: {{{year}}} >= 1938 <!-- encompasses LA and Cleveland Rams --> | |{{#ifexpr: {{{year}}} >= 1938 <!-- encompasses LA and Cleveland Rams --> | ||
|background: blue | |background: blue | ||
| Line 170: | Line 170: | ||
|background: #B3995D | |background: #B3995D | ||
}} | }} | ||
| − | |St. Louis Rams 95thru99 = background: # | + | |St. Louis Rams 95thru99 = background: #00338D |
|LA Rams | |LA Rams | ||
|Los Angeles Rams = | |Los Angeles Rams = | ||
{{#if: {{{year|}}} | | {{#if: {{{year|}}} | | ||
{{#ifexpr: {{{year}}} >= 1973 | {{#ifexpr: {{{year}}} >= 1973 | ||
| − | |background: # | + | |background: #00338D |
|{{#ifexpr: {{{year}}} >= 1938 <!-- encompasses LA and Cleveland Rams --> | |{{#ifexpr: {{{year}}} >= 1938 <!-- encompasses LA and Cleveland Rams --> | ||
|background: blue | |background: blue | ||
|{{#ifexpr: {{{year}}} >= 1936 <!-- Cleveland Rams --> | |{{#ifexpr: {{{year}}} >= 1936 <!-- Cleveland Rams --> | ||
|background: black | |background: black | ||
| − | |background: # | + | |background: #00338D |
}} | }} | ||
}} | }} | ||
}} | }} | ||
| − | |background: # | + | |background: #00338D |
}} | }} | ||
| − | |Los Angeles Rams 73thru94 = background: # | + | |Los Angeles Rams 73thru94 = background: #00338D |
|Los Angeles Rams 64thru72 = background: blue | |Los Angeles Rams 64thru72 = background: blue | ||
|Los Angeles Rams 46thru63 = background: blue | |Los Angeles Rams 46thru63 = background: blue | ||
Revision as of 07:30, 7 July 2015
background: #dcdcdc
| This is the template sandbox page for Template:Gridiron alt primary color (diff). |
| This template uses Lua: |
| This template is used on approximately 20,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
| This template's accessibility is in question. The specific issue is: insufficient color contrast for some teams. Relevant discussion may be found on the talk page. Information on making articles more accessible can be found at WikiProject Accessibility. |
Usage
This template can be used to automatically fill the primary color 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 primary color|teamname|year=#### (optional)}}
Example:
{{Gridiron alt primary color|Buffalo Bills|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 primary color|Buffalo Bills 62thru01}} or {{Gridiron alt primary 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 primary 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
- {{Gridiron primary color}} & {{Gridiron primary color raw}} - background color
- {{Gridiron primary style}} - set font, background, and border on navboxes and tables
- {{Gridiron secondary color}} & {{Gridiron secondary color raw}} - font color
- {{Gridiron tertiary color raw}} - border color
- {{Gridiron alt primary color}}
- {{Gridiron alt primary style}}
- {{Gridiron alt secondary color}}
| The above documentation is transcluded from Template:Gridiron alt primary color/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |