Difference between revisions of "Template:DSFL Year"

From Sim Football Wiki
Jump to navigation Jump to search
m (fixed season number in full link)
 
(15 intermediate revisions by the same user not shown)
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}}}}}} {{#ifeq:{{{s}}}|no||(S{{{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}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}} DSFL season}}]]   <!-- displays as the corresponding year -->
 
<!-- draft links -->
 
<!-- draft links -->
|draft       = [[DSFL season {{{1}}} Draft|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL draft]]   <!-- displays as "XXXX draft" -->
+
|draft-full  = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Draft}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]    <!-- displays as "XXXX DSFL draft" -->
|d          = [[DSFL season {{{1}}} Draft|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]              <!-- displays as corresponding year -->
+
|draft      = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} Draft}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]         <!-- displays as "XXXX draft" -->
|draft-ny    = [[DSFL season {{{1}}} Draft|DSFL draft]]                                             <!-- displays as "draft" with no year -->
+
|d          = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}}]]              <!-- displays as corresponding year -->
|d-ny        = [[DSFL season {{{1}}} Draft|draft]]                                                  <!-- displays as "draft" with no year -->
+
|draft-ny    = [[Season {{{1}}} DSFL Draft|{{#if:{{{3|}}}|{{{3}}}|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}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]
|off        = [[Year {{{1}}} Offseason|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|off        = [[Year {{{1}}} Offseason|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{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|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} post-season]]
+
|postseason  = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL post-season}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]          <!-- displays like "2018 DSFL post-season -->
|post        = [[DSFL season {{{1}}} playoffs|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|po          = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL playoffs}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]             <!-- displays like "2018 DSFL playoffs -->
|post-ny    = [[DSFL season {{{1}}} playoffs|post-season]]
+
|post        = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]                           <!-- displays only the year -->
 +
|post-ny    = [[DSFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|post-season}}]]                                                          <!-- displays just "post-season" -->
 +
|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}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2018 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}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2018 NFC Championship" -->
|east        = [[Season {{{1}}} DSFL East Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL East Championship]]
+
|sfc-y      = [[Season {{{1}}} SFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]                   <!-- displays only the year -->
|west        = [[Season {{{1}}} DSFL West Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL West Championship]]
+
|nfc-y      = [[Season {{{1}}} NFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]
|sfc-y      = [[Season {{{1}}} SFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
<!-- ultimini links -->
|nfc-y      = [[Season {{{1}}} NFC Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|ultimini    = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}]]                                                                        <!-- e.g. 12 would display as "Ultimini X" -->
|east-y      = [[Season {{{1}}} DSFL East Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|ultimini-ny = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}|{{#if:{{{3|}}}|{{{3}}}|Ultimini}}]]                                     <!-- just displays "Ultimini" -->
|west-y     = [[Season {{{1}}} DSFL West Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|ult-r      = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}|{{#if:{{{3|}}}|{{{3}}}|{{#roman:{{#expr:{{{1}}}-2}}}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}}]]               <!-- just displays roman numeral -->
<!-- ultimus links -->
+
|ult-y       = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2016+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}}]]     <!-- displays year of the actual game only -->
|ultimini    = [[Season {{{1}}} DSFL Pro Bowl|Ultimini {{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|ult        = [[Ultimini {{#roman:{{#expr:{{{1}}}-2}}}}|{{#roman:{{#expr:{{{1}}}-2}}}} ({{#expr:2016+{{#if:{{{1|}}}|{{{1}}}|1}}}})]]         <!-- displays as roman numeral and year in brackets; e.g. I (2017) -->
|ultimini-ny = [[Season {{{1}}} DSFL Pro Bowl|Ultimini]]
 
 
<!-- combine links -->
 
<!-- combine links -->
|combine    = [[NSFL season {{{1}}} Scouting Combine|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} scouting combine]]
+
|combine    = [[DSFL season {{{1}}} Workout Day|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Workout Day}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]   <!-- displays like 2016 DSFL workout day -->
|comb        = [[NSFL season {{{1}}} Scouting Combine|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|comb        = [[DSFL season {{{1}}} Workout Day|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}}]]                         <!-- displays only the year -->
|combine-ny  = [[NSFL season {{{1}}} Scouting Combine|scouting combine]]
+
|combine-ny  = [[DSFL season {{{1}}} Workout Day|{{#if:{{{3|}}}|{{{3}}}|workout day}}]]                                                  <!-- just displays "scouting combine" -->
|comb-ny    = [[NSFL season {{{1}}} Scouting Combine|scouting combine]]
+
|comb-ny    = [[DSFL season {{{1}}} Workout Day|{{#if:{{{3|}}}|{{{3}}}|workout day}}]]
 
<!-- pro bowl links -->
 
<!-- pro bowl links -->
|probowl    = [[Season {{{1}}} DSFL Pro Bowl|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} Pro Bowl]]
+
|probowl    = [[Season {{{1}}} DSFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL Pro Bowl}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]   <!-- displays like "2016 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}}}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}}]]                 <!-- displays only the year -->
|probowl-ny  = [[Season {{{1}}} DSFL Pro Bowl|Pro Bowl]]
+
|probowl-ny  = [[Season {{{1}}} DSFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|Pro Bowl}}]]                                                   <!-- just displays "Pro Bowl" -->
|pb-ny      = [[Season {{{1}}} DSFL Pro Bowl|Pro Bowl]]
+
|pb-ny      = [[Season {{{1}}} DSFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|Pro Bowl}}]]
 +
<!-- all-pro links -->
 +
|allpro    = [[Season {{{1}}} DSFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} DSFL All-Pro selection}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]]    <!-- displays like "2016 DSFL All-Pro selection" -->
 +
|ap        = [[Season {{{1}}} DSFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}}]]                  <!-- displays only the year -->
 +
|allpro-ny  = [[Season {{{1}}} DSFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|All-Pro}}]]                                                  <!-- just displays "All-Pro" -->
 +
|ap-ny      = [[Season {{{1}}} DSFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|All-Pro}}]]
 
<!-- 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}}}} {{#ifeq:{{{s}}}|yes|(S{{{1}}})}}
 
<!-- default value goes to DSFL season page, link displays as year -->
 
<!-- default value goes to DSFL season page, link displays as year -->
|#default    = [[DSFL season {{{1}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]]
+
|#default    = [[DSFL season {{{1}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} (S{{{1}}})]]
}}
+
}}<noinclude>{{documentation}}
 +
[[Category:Date Shortcuts]]</noinclude>

Latest revision as of 11:21, 9 February 2023

[[DSFL season {{{1}}}|2016 (S{{{1}}})]]