Difference between revisions of "Template:Gridiron primary color/testcases"
Jump to navigation
Jump to search
imported>Matt Fitzpatrick (adding visible text to secondary color tests) |
imported>JJMC89 (Detroit Lions) |
||
| Line 16: | Line 16: | ||
!Note | !Note | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions|year=2015}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions|year=2015}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions|year=2015}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions|year=2010}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions|year=2010}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions|year=2010}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions|year=2005}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions|year=2005}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions|year=2005}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions|year=1980}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions|year=1980}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions|year=1980}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions|year=1940}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions|year=1940}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions|year=1940}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions|year=1900}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions|year=1900}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions|year=1900}}" | |
| Team not in existence in given year; default to current color | | Team not in existence in given year; default to current color | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions 12thru16}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions 12thru16}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions 12thru16}}" | |
| Alternate (old) method for assigning previous color scheme | | Alternate (old) method for assigning previous color scheme | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions 09thru11|year=2013}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions 09thru11|year=2013}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions 09thru11|year=2013}}" | |
| Alternate (old) method; note ''year'' is ignored | | Alternate (old) method; note ''year'' is ignored | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions 03thru08|year=1901}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions 03thru08|year=1901}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions 03thru08|year=1901}}" | |
| Alternate (old) method; note ''year'' is ignored | | Alternate (old) method; note ''year'' is ignored | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions 70thru02}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions 70thru02}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions 70thru02}}" | |
| Alternate (old) method | | Alternate (old) method | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions 34thru69}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions 34thru69}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions 34thru69}}" | |
| Alternate (old) method | | Alternate (old) method | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor/sandbox| | + | |<nowiki>{{NFLPrimaryColor/sandbox|Detroit Lions 60thru96}}</nowiki> |
| − | | {{NFLPrimaryColor/sandbox| | + | | {{NFLPrimaryColor/sandbox|Detroit Lions 60thru96}} |
| − | | style="{{NFLPrimaryColor/sandbox| | + | | style="{{NFLPrimaryColor/sandbox|Detroit Lions 60thru96}}" | |
| − | | '' | + | | ''Detroit Lions 60thru96'' not defined in template; assigns default value |
|- | |- | ||
|<nowiki>{{NFLPrimaryColor/sandbox|San Francisco 49ers}}</nowiki> | |<nowiki>{{NFLPrimaryColor/sandbox|San Francisco 49ers}}</nowiki> | ||
| Line 162: | Line 162: | ||
!Note | !Note | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions|year=2014}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions|year=2014}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions|year=2014}}" | |
| note that ''year'' parameter has no effect | | note that ''year'' parameter has no effect | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions|year=2000}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions|year=2000}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions|year=2000}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions|year=1974}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions|year=1974}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions|year=1974}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions|year=1962}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions|year=1962}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions|year=1962}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions|year=1960}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions|year=1960}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions|year=1960}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions|year=1901}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions|year=1901}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions|year=1901}}" | |
| | | | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions 97thru11}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions 97thru11}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions 97thru11}}" | |
| Existing method for assigning previous color scheme | | Existing method for assigning previous color scheme | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions 97thru11|year=2013}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions 97thru11|year=2013}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions 97thru11|year=2013}}" | |
| Existing method; note ''year'' is ignored | | Existing method; note ''year'' is ignored | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions 97thru11|year=1901}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions 97thru11|year=1901}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions 97thru11|year=1901}}" | |
| Existing method; note ''year'' is ignored | | Existing method; note ''year'' is ignored | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions 62thru96}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions 62thru96}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions 62thru96}}" | |
| Existing method | | Existing method | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions 60thru61}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions 60thru61}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions 60thru61}}" | |
| Existing method | | Existing method | ||
|- | |- | ||
| − | |<nowiki>{{NFLPrimaryColor| | + | |<nowiki>{{NFLPrimaryColor|Detroit Lions 60thru96}}</nowiki> |
| − | | {{NFLPrimaryColor| | + | | {{NFLPrimaryColor|Detroit Lions 60thru96}} |
| − | | style="{{NFLPrimaryColor| | + | | style="{{NFLPrimaryColor|Detroit Lions 60thru96}}" | |
| − | | '' | + | | ''Detroit Lions 60thru96'' not defined in template; assigns default value |
|- | |- | ||
|<nowiki>{{NFLPrimaryColor|San Francisco 49ers}}</nowiki> | |<nowiki>{{NFLPrimaryColor|San Francisco 49ers}}</nowiki> | ||
Revision as of 04:05, 22 April 2017
| This is the template test cases page for the sandbox of Template:Gridiron primary color. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Testing sandbox version
{{Gridiron_primary_color/sandbox}}
No parameters:
background: #DCDCDC
| Input | Output | Swatch | Note |
|---|---|---|---|
| {{NFLPrimaryColor/sandbox|Detroit Lions}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Detroit Lions|year=2015}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Detroit Lions|year=2010}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Detroit Lions|year=2005}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Detroit Lions|year=1980}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Detroit Lions|year=1940}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Detroit Lions|year=1900}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | Team not in existence in given year; default to current color |
| {{NFLPrimaryColor/sandbox|Detroit Lions 12thru16}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | Alternate (old) method for assigning previous color scheme |
| {{NFLPrimaryColor/sandbox|Detroit Lions 09thru11|year=2013}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | Alternate (old) method; note year is ignored |
| {{NFLPrimaryColor/sandbox|Detroit Lions 03thru08|year=1901}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | Alternate (old) method; note year is ignored |
| {{NFLPrimaryColor/sandbox|Detroit Lions 70thru02}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | Alternate (old) method |
| {{NFLPrimaryColor/sandbox|Detroit Lions 34thru69}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | Alternate (old) method |
| {{NFLPrimaryColor/sandbox|Detroit Lions 60thru96}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | Detroit Lions 60thru96 not defined in template; assigns default value |
| {{NFLPrimaryColor/sandbox|San Francisco 49ers}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|San Francisco 49ers|year=1965}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Cleveland Rams 38thru45|year=1936}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Cleveland Rams}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Cleveland Rams|year=1938}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLPrimaryColor/sandbox|Cleveland Rams|year=1936}} | Template:NFLPrimaryColor/sandbox | style="Template:NFLPrimaryColor/sandbox" | | |
| {{NFLSecondaryColor|San Francisco 49ers}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|San Francisco 49ers|year=1965}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams 38thru45|year=1936}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|New Orleans Saints}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams|year=1938}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams|year=1936}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text |
Testing main template
background: #DCDCDC
| Input | Output | Swatch | Note |
|---|---|---|---|
| {{NFLPrimaryColor|Detroit Lions}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Detroit Lions|year=2014}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | note that year parameter has no effect |
| {{NFLPrimaryColor|Detroit Lions|year=2000}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Detroit Lions|year=1974}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Detroit Lions|year=1962}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Detroit Lions|year=1960}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Detroit Lions|year=1901}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Detroit Lions 97thru11}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | Existing method for assigning previous color scheme |
| {{NFLPrimaryColor|Detroit Lions 97thru11|year=2013}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | Existing method; note year is ignored |
| {{NFLPrimaryColor|Detroit Lions 97thru11|year=1901}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | Existing method; note year is ignored |
| {{NFLPrimaryColor|Detroit Lions 62thru96}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | Existing method |
| {{NFLPrimaryColor|Detroit Lions 60thru61}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | Existing method |
| {{NFLPrimaryColor|Detroit Lions 60thru96}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | Detroit Lions 60thru96 not defined in template; assigns default value |
| {{NFLPrimaryColor|San Francisco 49ers}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|San Francisco 49ers|year=1965}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Cleveland Rams 38thru45|year=1936}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Cleveland Rams}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Cleveland Rams|year=1938}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLPrimaryColor|Cleveland Rams|year=1936}} | Template:NFLPrimaryColor | style="Template:NFLPrimaryColor" | | |
| {{NFLSecondaryColor|San Francisco 49ers}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|San Francisco 49ers|year=1965}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams 38thru45|year=1936}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|New Orleans Saints}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams|year=1938}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text | |
| {{NFLSecondaryColor|Cleveland Rams|year=1936}} | Template:NFLSecondaryColor | style="Template:NFLSecondaryColor" | text |