Difference between revisions of "Template:ISFL Year"
37thchamber (talk | contribs) (allow custom link for wfc argument) |
37thchamber (talk | contribs) (updated to automatically include the season number) |
||
Line 1: | Line 1: | ||
{{#switch: {{{2}}} | {{#switch: {{{2}}} | ||
<!-- Different output based on second argument passed --> | <!-- Different output based on second argument passed --> | ||
− | |year = [[ISFL season {{{1}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays as the corresponding year --> | + | |year = [[ISFL season {{{1}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays as the corresponding year --> |
|full = [[ISFL season {{{1}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL season}}]] <!-- displays as the corresponding year --> | |full = [[ISFL season {{{1}}}|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL season}}]] <!-- displays as the corresponding year --> | ||
<!-- draft links --> | <!-- draft links --> | ||
− | |draft-full = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL Draft}}]] <!-- displays as "XXXX NSFL draft" --> | + | |draft-full = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL Draft}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays as "XXXX NSFL draft" --> |
− | |draft = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} Draft}}]] <!-- displays as "XXXX draft" --> | + | |draft = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} Draft}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays as "XXXX draft" --> |
− | |d = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays as corresponding year --> | + | |d = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays as corresponding year --> |
|draft-ny = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|draft}}]] <!-- displays as "draft" with no year --> | |draft-ny = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|draft}}]] <!-- displays as "draft" with no year --> | ||
|d-ny = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|draft}}]] <!-- displays as "draft" with no year --> | |d-ny = [[Season {{{1}}} ISFL Draft|{{#if:{{{3|}}}|{{{3}}}|draft}}]] <!-- displays as "draft" with no year --> | ||
<!-- offseason links --> | <!-- offseason links --> | ||
− | |offseason = [[Year {{{1}}} Offseason|{{#if:{{{3|}}}|{{{3}}}|{{#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|{{#if:{{{3|}}}|{{{3}}}|{{#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|{{#if:{{{3|}}}|{{{3}}}|offseason}}]] | |off-ny = [[Year {{{1}}} Offseason|{{#if:{{{3|}}}|{{{3}}}|offseason}}]] | ||
<!-- postseason links --> | <!-- postseason links --> | ||
− | |postseason = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL post-season}}]] <!-- displays like "2018 NSFL post-season --> | + | |postseason = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL post-season}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2018 NSFL post-season --> |
− | |po = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL playoffs}}]] <!-- displays like "2018 NSFL playoffs --> | + | |po = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL playoffs}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2018 NSFL playoffs --> |
− | |post = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | + | |post = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays only the year --> |
|post-ny = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|post-season}}]] <!-- displays just "post-season" --> | |post-ny = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|post-season}}]] <!-- displays just "post-season" --> | ||
|po-ny = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|playoffs}}]] <!-- displays just "playoffs" --> | |po-ny = [[ISFL season {{{1}}} playoffs|{{#if:{{{3|}}}|{{{3}}}|playoffs}}]] <!-- displays just "playoffs" --> | ||
<!-- conf champs links --> | <!-- conf champs links --> | ||
− | |asfc = [[Season {{{1}}} ASFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ASFC Championship}}]] <!-- displays like "2018 ASFC Championship" --> | + | |asfc = [[Season {{{1}}} ASFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ASFC Championship}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2018 ASFC Championship" --> |
− | |nsfc = [[Season {{{1}}} NSFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} NSFC Championship}}]] <!-- displays like "2018 NSFC Championship" --> | + | |nsfc = [[Season {{{1}}} NSFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} NSFC Championship}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2018 NSFC Championship" --> |
− | |asfc-y = [[Season {{{1}}} ASFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | + | |asfc-y = [[Season {{{1}}} ASFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays only the year --> |
|nsfc-y = [[Season {{{1}}} NSFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] | |nsfc-y = [[Season {{{1}}} NSFC Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] | ||
<!-- ultimus links --> | <!-- ultimus links --> | ||
Line 31: | Line 31: | ||
|ult = [[Ultimus Bowl {{#roman:{{{1}}}}}|{{#roman:{{{1}}}}} ({{#expr:2016+{{#if:{{{1|}}}|{{{1}}}|1}}}})]] <!-- displays as roman numeral and year of the actual game in brackets; e.g. I (2017) --> | |ult = [[Ultimus Bowl {{#roman:{{{1}}}}}|{{#roman:{{{1}}}}} ({{#expr:2016+{{#if:{{{1|}}}|{{{1}}}|1}}}})]] <!-- displays as roman numeral and year of the actual game in brackets; e.g. I (2017) --> | ||
<!-- combine links --> | <!-- combine links --> | ||
− | |combine = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL scouting combine}}]] <!-- displays like 2016 NSFL scouting combine --> | + | |combine = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL scouting combine}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like 2016 NSFL scouting combine --> |
|comb = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | |comb = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | ||
|combine-ny = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|scouting combine}}]] <!-- just displays "scouting combine" --> | |combine-ny = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|scouting combine}}]] <!-- just displays "scouting combine" --> | ||
|comb-ny = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|scouting combine}}]] | |comb-ny = [[ISFL season {{{1}}} Scouting Combine|{{#if:{{{3|}}}|{{{3}}}|scouting combine}}]] | ||
<!-- pro bowl links --> | <!-- pro bowl links --> | ||
− | |probowl = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL Pro Bowl}}]] <!-- displays like "2016 NSFL Pro Bowl" --> | + | |probowl = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL Pro Bowl}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2016 NSFL Pro Bowl" --> |
|pb = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | |pb = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | ||
|probowl-ny = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|Pro Bowl}}]] <!-- just displays "Pro Bowl" --> | |probowl-ny = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|Pro Bowl}}]] <!-- just displays "Pro Bowl" --> | ||
|pb-ny = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|Pro Bowl}}]] | |pb-ny = [[Season {{{1}}} ISFL Pro Bowl|{{#if:{{{3|}}}|{{{3}}}|Pro Bowl}}]] | ||
<!-- all-pro links --> | <!-- all-pro links --> | ||
− | |allpro = [[Season {{{1}}} ISFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL All-Pro selection}}]] <!-- displays like "2016 ISFL All-Pro selection" --> | + | |allpro = [[Season {{{1}}} ISFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} ISFL All-Pro selection}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] <!-- displays like "2016 ISFL All-Pro selection" --> |
|ap = [[Season {{{1}}} ISFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | |ap = [[Season {{{1}}} ISFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}}}]] <!-- displays only the year --> | ||
|allpro-ny = [[Season {{{1}}} ISFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|All-Pro}}]] <!-- just displays "All-Pro" --> | |allpro-ny = [[Season {{{1}}} ISFL All-Pro selection|{{#if:{{{3|}}}|{{{3}}}|All-Pro}}]] <!-- just displays "All-Pro" --> | ||
Line 47: | Line 47: | ||
<!-- WFC links --> | <!-- WFC links --> | ||
<!-- displays like "2045 World Football Championship", or third argument passed --> | <!-- displays like "2045 World Football Championship", or third argument passed --> | ||
− | |wfc = [[{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} World Football Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} World Football Championship}}]] | + | |wfc = [[{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} World Football Championship|{{#if:{{{3|}}}|{{{3}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} World Football Championship}} {{#ifeq:{{{s}}}|no||(S{{{1}}})}}]] |
|wfc-y = [[{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} World Football Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]] <!-- displays year only but links to "2045 World Football Championship" --> | |wfc-y = [[{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} World Football Championship|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]] <!-- displays year only but links to "2045 World Football Championship" --> | ||
<!-- 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}}}} | ||
<!-- default value goes to ISFL season page, link displays as year --> | <!-- default value goes to ISFL season page, link displays as year --> | ||
− | |#default = [[ISFL season {{{1}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}}]] | + | |#default = [[ISFL season {{{1}}}|{{#expr:2015+{{#if:{{{1|}}}|{{{1}}}|1}}}} (S{{{1}}})]] |
}}<noinclude>{{documentation}} | }}<noinclude>{{documentation}} | ||
[[Category:Date Shortcuts]]</noinclude> | [[Category:Date Shortcuts]]</noinclude> |
Revision as of 09:34, 7 October 2022
[[ISFL season {{{1}}}|2016 (S{{{1}}})]]
Usage
Use this template to link to pages that refer to a specific season (e.g. "ISFL Season 1" or "Season 1 ISFL Draft") or to display the in-context year for a specific season (e.g. Season 1 displays as 2016). It can be used as either {{ISFL Year|1}} or {{isfly|1}} to produce the same result: 2016 (S1). Some arguments allow a third value to be passed, to replace the link text. For example {{isfly|30|wfc|Reykjavik}} would return Reykjavik (S30)
Most parameters will now automatically display the season number (as shown in the table below). To remove this, add "|s=no" to the template call. For example, {{isfly|38|year|s=no}}, which will then render as 2053 instead of 2053 (S38). Where this does not appear by default, you will need to add "|s=yes" to make it appear. For example, {{isfly|38|comb}} will display as 2053, but {{isfly|38|comb|s=yes}} will display as 2053.
The template requires at least a season number to be passed, to link to the correct season-related page. You can also optionally pass one of the following:
Parameter | Links to[1] | Shows as |
---|---|---|
year | ISFL season (X) | 2016 (S1) |
full | 2016 ISFL season 2016 ISFL season | |
draft | Season (X) ISFL Draft | 2016 Draft (S1) |
draft-full | 2016 ISFL Draft (S1) | |
d | 2016 (S1) | |
draft-ny | draft | |
d-ny | draft | |
postseason | ISFL Season (X) playoffs | 2016 ISFL post-season (S1) |
po | 2016 ISFL playoffs (S1) | |
post | 2016 (S1) | |
post-ny | post-season | |
po-ny | playoffs | |
asfc | Season (X) ASFC Championship | 2016 ASFC Championship (S1) |
asfc-y | 2016 (S1) | |
nsfc | Season (X) NSFC Championship | 2016 NSFC Championship (S1) |
nsfc-y | 2016 | |
ultimus | Ultimus Bowl (Y)[2] | Ultimus Bowl I |
ultimus-ny | Ultimus | |
ult-y | 2017 | |
ult-r | I | |
ult | I (2017) I (2017) | |
combine | ISFL season (X) Scouting Combine | 2016 ISFL scouting combine (S1) |
comb | 2016 | |
combine-ny | scouting combine | |
comb-ny | scouting combine | |
probowl | Season (X) ISFL Pro Bowl | 2016 ISFL Pro Bowl (S1) |
pb | 2016 | |
probowl-ny | Pro Bowl | |
pb-ny | Pro Bowl | |
allpro | Season (X) ISFL All-Pro selection | 2016 ISFL All-Pro selection (S1) |
ap | 2016 | |
allpro-ny | All-Pro | |
ap-ny | All-Pro | |
wfc | (x) World Football Championship | 2045 World Football Championship (S30) |
wfc (custom) | 2045 Reykjavik (S30) | |
wfc-y | 2045 | |
nolink | Does not link | 2016 |
An optional third parameter can be passed if the other two are present, which allows you to customise the text shown as a link. For example, {{isfly|1|pb|the league's first pro bowl}} will display the league's first pro bowl.
See also
Other templates that provide similar functionality are:
- {{DSFL Year}} (effectively the same template, but linking to DSFL related articles instead of NSFL)
- Category:Date Shortcuts
- {{TeamYearShort}}
- {{TeamYearMid}}
- {{TeamYear}}