Difference between revisions of "Template:TeamYear"

From Sim Football Wiki
Jump to navigation Jump to search
(Created page with "{{#switch: {{{1}}} <!-- START NSFL teams --> |BAL = Baltimore Hawks |#default = NSFL }} season {{{2}}}|{{#expr:2015+{{#if:{{{2|}}}|{{{2}}}|2}}}} {{#switch: {{{1}}} <!-- STA...")
 
Line 1: Line 1:
 
[[{{#switch: {{{1}}}
 
[[{{#switch: {{{1}}}
 
<!-- START NSFL teams -->
 
<!-- START NSFL teams -->
|BAL = Baltimore Hawks
+
|BAL = Baltimore Hawks
 +
|ARI  = Arizona Outlaws
 +
|COL  = Colorado Yeti
 +
|YKW  = Yellowknife Wraiths
 +
|LVL  = Las Vegas Legion
 +
|NO  = New Orleans Second Line
 +
|NOLA = New Orleans Second Line
 +
|SJS  = San Jose Sabercats
 +
|OCO  = Orange County Otters
 +
|PHI  = Philadelphia Liberty
 +
<!-- START DSFL teams -->
 +
|TIJ  = Tijuana Luchadores
 +
|POR  = Portland Pythons
 +
|NOR  = Norfolk Seawolves
 +
|CHI  = Chicago Blues
 +
|SA  = San Antonio Marshals
 +
|SAM  = San Antonio Marshals
 +
|PB  = Palm Beach Solar Bears
 +
<!-- DEFAULT -->
 
|#default = NSFL
 
|#default = NSFL
 
}} season {{{2}}}|{{#expr:2015+{{#if:{{{2|}}}|{{{2}}}|2}}}}  
 
}} season {{{2}}}|{{#expr:2015+{{#if:{{{2|}}}|{{{2}}}|2}}}}  
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
 
<!-- START NSFL teams -->
 
<!-- START NSFL teams -->
|BAL = Baltimore Hawks
+
|BAL = Baltimore Hawks
 +
|ARI  = Arizona Outlaws
 +
|COL  = Colorado Yeti
 +
|YKW  = Yellowknife Wraiths
 +
|LVL  = Las Vegas Legion
 +
|NO  = New Orleans Second Line
 +
|NOLA = New Orleans Second Line
 +
|SJS  = San Jose Sabercats
 +
|OCO  = Orange County Otters
 +
|PHI  = Philadelphia Liberty
 +
<!-- START DSFL teams -->
 +
|TIJ  = Tijuana Luchadores
 +
|POR  = Portland Pythons
 +
|NOR  = Norfolk Seawolves
 +
|CHI  = Chicago Blues
 +
|SA  = San Antonio Marshals
 +
|SAM  = San Antonio Marshals
 +
|PB  = Palm Beach Solar Bears
 +
<!-- DEFAULT -->
 
|#default = NSFL
 
|#default = NSFL
 
}} season]]<noinclude>
 
}} season]]<noinclude>

Revision as of 10:31, 30 April 2018

[[NSFL season {{{2}}}|2017 NSFL season]]

Documentation

Converts season number to an actual year when linking to a team season page

Use as follows: {{TeamYear|Team abbreviation|Season number}}

For example, {{TeamYear|BAL|2}} will return 2017 Baltimore Hawks season