Difference between revisions of "Template:ISFL Year/doc"
37thchamber (talk | contribs) (update documentation to show how to use WFC params) |
37thchamber (talk | contribs) (show example with custom link for wfc) |
||
Line 3: | Line 3: | ||
=== Usage === | === 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 <nowiki>{{ISFL Year|1}}</nowiki> or <nowiki>{{isfly|1}}</nowiki> to produce the same result: {{isfly|1}}. | + | 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 <nowiki>{{ISFL Year|1}}</nowiki> or <nowiki>{{isfly|1}}</nowiki> to produce the same result: {{isfly|1}}. Some arguments allow a third value to be passed, to replace the link text. For example <nowiki>{{isfly|30|wfc|Reykjavik}}</nowiki> would return {{isfly|30|wfc|Reykjavik}} |
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: | 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: | ||
Line 77: | Line 77: | ||
| ap-ny || {{nsfly|1|ap-ny}} | | ap-ny || {{nsfly|1|ap-ny}} | ||
|- | |- | ||
− | | wfc || rowspan=" | + | | wfc || rowspan="3" | (x) World Football Championship || {{nsfly|30|wfc}} |
+ | |- | ||
+ | | wfc (custom) || {{nsfly|30|wfc|2045 Reykjavik}} | ||
|- | |- | ||
| wfc-y || {{nsfly|30|wfc-y}} | | wfc-y || {{nsfly|30|wfc-y}} |
Revision as of 12:40, 17 May 2022
This is a documentation subpage for Template:ISFL Year. It may contain usage information, categories and other content that is not part of the original template page. |
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)
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 | |
draft | Season (X) ISFL Draft | 2016 Draft (S1) |
draft-full | 2016 ISFL Draft (S1) | |
d | 2016 | |
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 (S1) | |
ultimus | Ultimus Bowl (Y)[2] | Ultimus Bowl I |
ultimus-ny | Ultimus | |
ult-y | 2017 | |
ult-r | I | |
ult | I (2017, S1) | |
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 ISFL 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}}