Difference between revisions of "Template:GetDate/doc"
37thchamber (talk | contribs) m |
37thchamber (talk | contribs) m (added GetDateLong to examples table, since I'm transcluding this documentation to GetDateLong template page also) |
||
Line 18: | Line 18: | ||
==Accepted params== | ==Accepted params== | ||
+ | These params are also accepted for "GetDateLong", and the outputs are shown for both templates below. Just replace "GetDate" with "GetDateLong". | ||
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! Param !! Desc !! Example !! Returns | + | ! Param !! Desc !! Example !! Returns !! LongForm |
|- | |- | ||
− | | Px || Preseason week x || <nowiki>{{GetDate|1|P1}}</nowiki> || {{GetDate|1|P1}} | + | | Px || Preseason week x || <nowiki>{{GetDate|1|P1}}</nowiki> || {{GetDate|1|P1}} || {{GetDateLong|1|P1}} |
|- | |- | ||
− | | x || Regular season week x || <nowiki>{{GetDate|1|10}}</nowiki> || {{GetDate|1|10}} | + | | x || Regular season week x || <nowiki>{{GetDate|1|10}}</nowiki> || {{GetDate|1|10}} || {{GetDateLong|1|10}} |
|- | |- | ||
− | | CC || rowspan="2" | Conference championships || <nowiki>{{GetDate|1|CC}}</nowiki> || {{GetDate|1|CC}} | + | | CC || rowspan="2" | Conference championships || <nowiki>{{GetDate|1|CC}}</nowiki> || {{GetDate|1|CC}} || {{GetDateLong|1|CC}} |
|- | |- | ||
− | | ConfChamps || <nowiki>{{GetDate|1|ConfChamps}}</nowiki> || {{GetDate|1|ConfChamps}} | + | | ConfChamps || <nowiki>{{GetDate|1|ConfChamps}}</nowiki> || {{GetDate|1|ConfChamps}} || {{GetDateLong|1|ConfChamps}} |
|- | |- | ||
− | | 15 || rowspan="2" | Playoffs round one (or week 15) || <nowiki>{{GetDate|1|15}}</nowiki> || {{GetDate|1|15}} | + | | 15 || rowspan="2" | Playoffs round one (or week 15) || <nowiki>{{GetDate|1|15}}</nowiki> || {{GetDate|1|15}} || {{GetDateLong|1|15}} |
|- | |- | ||
− | | PO1 || <nowiki>{{GetDate|1|PO1}}</nowiki> || {{GetDate|1|PO1}} | + | | PO1 || <nowiki>{{GetDate|1|PO1}}</nowiki> || {{GetDate|1|PO1}} || {{GetDateLong|1|PO1}} |
|- | |- | ||
− | | 16 || rowspan="4" | Pro Bowl (or week 16) || <nowiki>{{GetDate|1|16}}</nowiki> || {{GetDate|1|16}} | + | | 16 || rowspan="4" | Pro Bowl (or week 16) || <nowiki>{{GetDate|1|16}}</nowiki> || {{GetDate|1|16}} || {{GetDateLong|1|16}} |
|- | |- | ||
− | | PB || <nowiki>{{GetDate|1|16}}</nowiki> || {{GetDate|1|16}} | + | | PB || <nowiki>{{GetDate|1|16}}</nowiki> || {{GetDate|1|16}} || {{GetDateLong|1|16}} |
|- | |- | ||
− | | ProBowl || <nowiki>{{GetDate|1|ProBowl}}</nowiki> || {{GetDate|1|ProBowl}} | + | | ProBowl || <nowiki>{{GetDate|1|ProBowl}}</nowiki> || {{GetDate|1|ProBowl}} || {{GetDateLong|1|ProBowl}} |
|- | |- | ||
− | | Pro Bowl || <nowiki>{{GetDate|1|Pro Bowl}}</nowiki> || {{GetDate|1|Pro Bowl}} | + | | Pro Bowl || <nowiki>{{GetDate|1|Pro Bowl}}</nowiki> || {{GetDate|1|Pro Bowl}} || {{GetDateLong|1|Pro Bowl}} |
|- | |- | ||
− | | 17 || rowspan="5" | Ultimus (or week 17) || <nowiki>{{GetDate|1|17}}</nowiki> || {{GetDate|1|17}} | + | | 17 || rowspan="5" | Ultimus (or week 17) || <nowiki>{{GetDate|1|17}}</nowiki> || {{GetDate|1|17}} || {{GetDateLong|1|17}} |
|- | |- | ||
− | | U || <nowiki>{{GetDate|1|U}}</nowiki> || {{GetDate|1|U}} | + | | U || <nowiki>{{GetDate|1|U}}</nowiki> || {{GetDate|1|U}} || {{GetDateLong|1|U}} |
|- | |- | ||
− | | Ultimus || <nowiki>{{GetDate|1|Ultimus}}</nowiki> || {{GetDate|1|Ultimus}} | + | | Ultimus || <nowiki>{{GetDate|1|Ultimus}}</nowiki> || {{GetDate|1|Ultimus}} || {{GetDateLong|1|Ultimus}} |
|- | |- | ||
− | | F || <nowiki>{{GetDate|1|F}}</nowiki> || {{GetDate|1|F}} | + | | F || <nowiki>{{GetDate|1|F}}</nowiki> || {{GetDate|1|F}} || {{GetDateLong|1|F}} |
|- | |- | ||
− | | Final || <nowiki>{{GetDate|1|Final}}</nowiki> || {{GetDate|1|Final}} | + | | Final || <nowiki>{{GetDate|1|Final}}</nowiki> || {{GetDate|1|Final}} || {{GetDateLong|1|Final}} |
|} | |} |
Revision as of 05:46, 31 October 2019
Usage
General usage is {{GetDate|Season|Week}}. A full list of "week" parameters is below.
{{GetDate|3|2}} will return 2018-10-07, which is the game date for week two of the regular season, season three in ISO format (YYYY-MM-DD).
Notes
For consistency, it is assumed that the NSFL preseason begins on the 35th Sunday of the year.
The season progresses at a rate of one game day per Sunday from that point onward, until the end of the regular season.
There is a one week gap between the end of the regular season and the start of playoffs, and another between Conference Championships and Ultimus. The Pro Bowl takes place during the latter.
This means that the playoffs begin on the first Sunday of the following year (53 weeks after the first Sunday of the season's start year), with the Ultimus Bowl taking place two Sundays after that.
DSFL operates on the same schedule for simplicity (in future this can be adjusted to the Thursday before the same week's NSFL games maybe, I'll have to do some fiddling around).
The template will also automatically adjust for the schedule changes that occurred after season 15.
Accepted params
These params are also accepted for "GetDateLong", and the outputs are shown for both templates below. Just replace "GetDate" with "GetDateLong".
Param | Desc | Example | Returns | LongForm |
---|---|---|---|---|
Px | Preseason week x | {{GetDate|1|P1}} | 2016-08-28 | 28 August, 2016 |
x | Regular season week x | {{GetDate|1|10}} | 2016-11-27 | 27 November, 2016 |
CC | Conference championships | {{GetDate|1|CC}} | 2017-01-08 | 08 January, 2017 |
ConfChamps | {{GetDate|1|ConfChamps}} | 2017-01-08 | 08 January, 2017 | |
15 | Playoffs round one (or week 15) | {{GetDate|1|15}} | Error: Invalid time. | Error: Invalid time. |
PO1 | {{GetDate|1|PO1}} | 2017-01-08 | 08 January, 2017 | |
16 | Pro Bowl (or week 16) | {{GetDate|1|16}} | Error: Invalid time. | Error: Invalid time. |
PB | {{GetDate|1|16}} | Error: Invalid time. | Error: Invalid time. | |
ProBowl | {{GetDate|1|ProBowl}} | 2017-01-15 | 15 January, 2017 | |
Pro Bowl | {{GetDate|1|Pro Bowl}} | 2017-01-15 | 15 January, 2017 | |
17 | Ultimus (or week 17) | {{GetDate|1|17}} | Error: Invalid time. | Error: Invalid time. |
U | {{GetDate|1|U}} | 2017-01-22 | 22 January, 2017 | |
Ultimus | {{GetDate|1|Ultimus}} | 2017-01-22 | 22 January, 2017 | |
F | {{GetDate|1|F}} | 2017-01-22 | 22 January, 2017 | |
Final | {{GetDate|1|Final}} | 2017-01-22 | 22 January, 2017 |