Difference between revisions of "Template:NFLPrimaryColor"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(I updated the colors for the Tennessee Titans and Denver Broncos.)
(I updated the Cleveland/Los Angeles/St. Louis Rams colors.)
Line 235: Line 235:
 
     |background: #00338D <!-- encompasses LA Rams -->
 
     |background: #00338D <!-- encompasses LA Rams -->
 
     |{{#ifexpr: {{{year}}} >= 1938
 
     |{{#ifexpr: {{{year}}} >= 1938
     |background: blue <!-- encompasses LA and Cleveland Rams -->
+
     |background: #FBBE00 <!-- encompasses LA and Cleveland Rams -->
 
     |{{#ifexpr: {{{year}}} >= 1936
 
     |{{#ifexpr: {{{year}}} >= 1936
       |background: black <!-- Cleveland Rams -->
+
       |background: #000000 <!-- Cleveland Rams -->
 
       |background: #002244
 
       |background: #002244
 
       }}
 
       }}
Line 252: Line 252:
 
   |background: #00338D <!-- encompasses LA Rams -->
 
   |background: #00338D <!-- encompasses LA Rams -->
 
   |{{#ifexpr: {{{year}}} >= 1938
 
   |{{#ifexpr: {{{year}}} >= 1938
     |background: blue <!-- encompasses LA and Cleveland Rams -->
+
     |background: #FBBE00 <!-- encompasses LA and Cleveland Rams -->
 
     |{{#ifexpr: {{{year}}} >= 1936
 
     |{{#ifexpr: {{{year}}} >= 1936
     |background: black <!-- Cleveland Rams -->
+
     |background: #000000 <!-- Cleveland Rams -->
 
     |background: #00338D
 
     |background: #00338D
 
     }}
 
     }}
Line 263: Line 263:
 
|Los Angeles Rams 73thru94 =background: #00338D
 
|Los Angeles Rams 73thru94 =background: #00338D
 
|Los Angeles Rams 64thru72
 
|Los Angeles Rams 64thru72
|Los Angeles Rams 46thru63 =background: blue
+
|Los Angeles Rams 46thru63 =background: #FBBE00
 
|Cleveland Rams =
 
|Cleveland Rams =
 
  {{#if: {{{year|}}} |
 
  {{#if: {{{year|}}} |
 
   {{#ifexpr: {{{year}}} >= 1938
 
   {{#ifexpr: {{{year}}} >= 1938
   |background: blue
+
   |background: #FBBE00
 
   |{{#ifexpr: {{{year}}} >= 1936
 
   |{{#ifexpr: {{{year}}} >= 1936
     |background: black
+
     |background: #000000
     |background: blue
+
     |background: #FBBE00
 
     }}
 
     }}
 
   }}
 
   }}
   |background: blue
+
   |background: #FBBE00
 
  }}
 
  }}
|Cleveland Rams 38thru45 =background: blue
+
|Cleveland Rams 38thru45 =background: #FBBE00
|Cleveland Rams 36thru37 =background: black
+
|Cleveland Rams 36thru37 =background: #000000
 
|San Francisco 49ers =background: #AA0000
 
|San Francisco 49ers =background: #AA0000
 
|Seattle Seahawks =
 
|Seattle Seahawks =

Revision as of 22:03, 4 October 2015

background: #dcdcdc

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

Usage

This template can be used to automatically fill the primary color used by each respective team in the National Football League. It can be used in conjunction with {{NFLSecondaryColor}} and other NFL color templates. 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

{{NFLPrimaryColor|''teamname''|year=2013}}

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, {{NFLPrimaryColor|Denver Broncos 97thru11}} would yield the primary color in use by the Broncos from 1997 through 2011. A simpler way to achieve this same result using the year parameter would be {{NFLPrimaryColor|Denver Broncos|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.

See also