Difference between revisions of "Template:DSFL Year"

From Sim Football Wiki
Jump to navigation Jump to search
m (updated ultimini number calculation. DSFL seasons are still in line with NSFL seasons, though)
m
Line 1: Line 1:
 
{{#switch: {{{2}}}
 
{{#switch: {{{2}}}
 
<!-- Different output based on second argument passed -->
 
<!-- Different output based on second argument passed -->
|year        = [[DSFL season {{{1}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]                    <!-- displays as the corresponding year -->
+
|year        = [[DSFL season {{{1}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]                    <!-- displays as the corresponding year -->
|full        = [[DSFL season {{{1}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL season]]        <!-- displays as the corresponding year -->
+
|full        = [[DSFL season {{{1}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL season]]        <!-- displays as the corresponding year -->
 
<!-- draft links -->
 
<!-- draft links -->
|draft-full  = [[Season {{{1}}} DSFL Draft|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Draft]]    <!-- displays as "XXXX DSFL draft" -->
+
|draft-full  = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Draft]]    <!-- displays as "XXXX DSFL draft" -->
|draft      = [[Season {{{1}}} DSFL Draft|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Draft]]    <!-- displays as "XXXX draft" -->
+
|draft      = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Draft]]    <!-- displays as "XXXX draft" -->
|d          = [[Season {{{1}}} DSFL Draft|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]              <!-- displays as corresponding year -->
+
|d          = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]              <!-- displays as corresponding year -->
|draft-ny    = [[Season {{{1}}} DSFL Draft|DSFL Draft]]                                              <!-- displays as "draft" with no year -->
+
|draft-ny    = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|DSFL Draft]]                                              <!-- displays as "DSFL draft" with no year -->
|d-ny        = [[Season {{{1}}} DSFL Draft|draft]]                                                  <!-- displays as "draft" with no year -->
+
|d-ny        = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|draft]]                                                  <!-- displays as "draft" with no year -->
 
<!-- offseason links -->
 
<!-- offseason links -->
|offseason  = [[Year {{{1}}} Offseason|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} offseason]]
+
|offseason  = [[Year {{{1}}} Offseason|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} offseason]]
|off        = [[Year {{{1}}} Offseason|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|off        = [[Year {{{1}}} Offseason|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
|off-ny      = [[Year {{{1}}} Offseason|offseason]]
+
|off-ny      = [[Year {{{1}}} Offseason|{{#if:{{{3|}}}|{{{3}}}|offseason]]
 
<!-- postseason links -->
 
<!-- postseason links -->
 
|postseason = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL post-season}}]]          <!-- displays like "2018 DSFL post-season -->
 
|postseason = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL post-season}}]]          <!-- displays like "2018 DSFL post-season -->
Line 20: Line 20:
 
|po-ny      = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|playoffs}}]]                                                            <!-- displays just "playoffs" -->
 
|po-ny      = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|playoffs}}]]                                                            <!-- displays just "playoffs" -->
 
<!-- conf champs links -->
 
<!-- conf champs links -->
|sfc        = [[Season {{{1}}} SFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} SFC Championship]]
+
|sfc        = [[Season {{{1}}} SFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} SFC Championship]]
|nfc        = [[Season {{{1}}} NFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} NFC Championship]]
+
|nfc        = [[Season {{{1}}} NFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} NFC Championship]]
|south      = [[Season {{{1}}} SFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} SFC Championship]]
+
|south      = [[Season {{{1}}} SFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} SFC Championship]]
|north      = [[Season {{{1}}} NFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} NFC Championship]]
+
|north      = [[Season {{{1}}} NFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} NFC Championship]]
|east        = [[Season {{{1}}} DSFL East Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL East Championship]]
+
|east        = [[Season {{{1}}} DSFL East Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL East Championship]]
|west        = [[Season {{{1}}} DSFL West Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL West Championship]]
+
|west        = [[Season {{{1}}} DSFL West Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL West Championship]]
|sfc-y      = [[Season {{{1}}} SFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|sfc-y      = [[Season {{{1}}} SFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
|nfc-y      = [[Season {{{1}}} NFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|nfc-y      = [[Season {{{1}}} NFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
|south-y    = [[Season {{{1}}} SFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|south-y    = [[Season {{{1}}} SFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
|north-y    = [[Season {{{1}}} NFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|north-y    = [[Season {{{1}}} NFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
|east-y      = [[Season {{{1}}} DSFL East Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|east-y      = [[Season {{{1}}} DSFL East Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
|west-y      = [[Season {{{1}}} DSFL West Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|west-y      = [[Season {{{1}}} DSFL West Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
<!-- ultimus links -->
+
<!-- ultimini links -->
|ultimini    = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}]]
+
|ultimini    = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}}}]]                                                                                     <!-- displays as "Ultimini #" -->
|ultimini-ny = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}|Ultimini]]
+
|ultimini-ny = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}}}|{{#if:{{{3|}}}|{{{3}}}|Ultimini}}]]                                                    <!-- just displays "Ultimini" -->
 +
|ult-y      = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2016+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]]                  <!-- displays year of the actual game only -->
 +
|ult        = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}}}|{{#roman:{{#expr:{{{1}}}-2}}}}}} ({{#expr:2016+{{#if:{{{1|}}}|{{{1}}}|1}}}})]]         <!-- displays as roman numeral and year of the actual game in brackets; e.g. I (2017) -->
 
<!-- pro bowl links -->
 
<!-- pro bowl links -->
|probowl    = [[Season {{{1}}} DSFL Pro Bowl|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Pro Bowl]]
+
|probowl    = [[Season {{{1}}} DSFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Pro Bowl]]
|pb          = [[Season {{{1}}} DSFL Pro Bowl|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|pb          = [[Season {{{1}}} DSFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
|probowl-ny  = [[Season {{{1}}} DSFL Pro Bowl|Pro Bowl]]
+
|probowl-ny  = [[Season {{{1}}} DSFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|DSFL Pro Bowl]]
|pb-ny      = [[Season {{{1}}} DSFL Pro Bowl|Pro Bowl]]
+
|pb-ny      = [[Season {{{1}}} DSFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|DSFL Pro Bowl]]
 
<!-- just show the year, no link -->
 
<!-- just show the year, no link -->
 
|nolink      = {{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}
 
|nolink      = {{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}

Revision as of 07:21, 1 November 2019

{{#switch: {{{2}}} |year = [[DSFL season {{{1}}}|{{#if:|{{{3}}}|2016]] |full = [[DSFL season {{{1}}}|{{#if:|{{{3}}}|2016 DSFL season]] |draft-full = [[Season {{{1}}} DSFL Draft|{{#if:|{{{3}}}|2016 DSFL Draft]] |draft = [[Season {{{1}}} DSFL Draft|{{#if:|{{{3}}}|2016 DSFL Draft]] |d = [[Season {{{1}}} DSFL Draft|{{#if:|{{{3}}}|2016]] |draft-ny = [[Season {{{1}}} DSFL Draft|{{#if:|{{{3}}}|DSFL Draft]] |d-ny = [[Season {{{1}}} DSFL Draft|{{#if:|{{{3}}}|draft]] |offseason = [[Year {{{1}}} Offseason|{{#if:|{{{3}}}|2016 offseason]] |off = [[Year {{{1}}} Offseason|{{#if:|{{{3}}}|2016]] |off-ny = [[Year {{{1}}} Offseason|{{#if:|{{{3}}}|offseason]] |postseason = [[DSFL season {{{1}}} playoffs|2016 DSFL post-season]] |po = [[DSFL season {{{1}}} playoffs|2016 DSFL playoffs]] |post = [[DSFL season {{{1}}} playoffs|2016]] |post-ny = [[DSFL season {{{1}}} playoffs|post-season]] |po-ny = [[DSFL season {{{1}}} playoffs|playoffs]] |sfc = [[Season {{{1}}} SFC Championship|{{#if:|{{{3}}}|2016 SFC Championship]] |nfc = [[Season {{{1}}} NFC Championship|{{#if:|{{{3}}}|2016 NFC Championship]] |south = [[Season {{{1}}} SFC Championship|{{#if:|{{{3}}}|2016 SFC Championship]] |north = [[Season {{{1}}} NFC Championship|{{#if:|{{{3}}}|2016 NFC Championship]] |east = [[Season {{{1}}} DSFL East Championship|{{#if:|{{{3}}}|2016 DSFL East Championship]] |west = [[Season {{{1}}} DSFL West Championship|{{#if:|{{{3}}}|2016 DSFL West Championship]] |sfc-y = [[Season {{{1}}} SFC Championship|{{#if:|{{{3}}}|2016]] |nfc-y = [[Season {{{1}}} NFC Championship|{{#if:|{{{3}}}|2016]] |south-y = [[Season {{{1}}} SFC Championship|{{#if:|{{{3}}}|2016]] |north-y = [[Season {{{1}}} NFC Championship|{{#if:|{{{3}}}|2016]] |east-y = [[Season {{{1}}} DSFL East Championship|{{#if:|{{{3}}}|2016]] |west-y = [[Season {{{1}}} DSFL West Championship|{{#if:|{{{3}}}|2016]] |ultimini = [[Ultimini 537}}]] |ultimini-ny = [[Ultimini 537}}|Ultimini]] |ult-y = [[Ultimini 537}}|2017]] |ult = [[Ultimini 537}}|537}} (2017)]] |probowl = [[Season {{{1}}} DSFL Pro Bowl|{{#if:|{{{3}}}|2016 DSFL Pro Bowl]] |pb = [[Season {{{1}}} DSFL Pro Bowl|{{#if:|{{{3}}}|2016]] |probowl-ny = [[Season {{{1}}} DSFL Pro Bowl|{{#if:|{{{3}}}|DSFL Pro Bowl]]

|pb-ny = [[Season {{{1}}} DSFL Pro Bowl|DSFL Pro Bowl]]