Difference between revisions of "Template:GetDate/doc"
37thchamber (talk | contribs) |
37thchamber (talk | contribs) m (updated param list) |
||
Line 24: | Line 24: | ||
! Param !! Desc !! Example !! Returns !! LongForm | ! Param !! Desc !! Example !! Returns !! LongForm | ||
|- | |- | ||
− | | | + | | Combine|| [[NSFL Scouting Combine]] week || <nowiki>{{GetDate|1|Combine}}</nowiki> || {{GetDate|1|Combine}} || {{GetDateLong|1|Combine}} |
+ | |- | ||
+ | | PreDraft || [[NSFL Draft]] build-up || <nowiki>{{GetDate|1|PreDraft}}</nowiki> || {{GetDate|1|PreDraft}} || {{GetDateLong|1|PreDraft}} | ||
+ | |- | ||
+ | | Draft || [[NSFL Draft]] week || <nowiki>{{GetDate|1|Draft}}</nowiki> || {{GetDate|1|Draft}} || {{GetDateLong|1|Draft}} | ||
|- | |- | ||
| Off || Offseason || <nowiki>{{GetDate|1|Off}}</nowiki> || {{GetDate|1|Off}} || {{GetDateLong|1|Off}} | | Off || Offseason || <nowiki>{{GetDate|1|Off}}</nowiki> || {{GetDate|1|Off}} || {{GetDateLong|1|Off}} | ||
+ | |- | ||
+ | | OTA || OTAs begin || <nowiki>{{GetDate|1|OTA}}</nowiki> || {{GetDate|1|OTA}} || {{GetDateLong|1|OTA}} | ||
+ | |- | ||
+ | | Camp || Training Camp begins || <nowiki>{{GetDate|1|Camp}}</nowiki> || {{GetDate|1|Camp}} || {{GetDateLong|1|Camp}} | ||
|- | |- | ||
| Px || Preseason week x || <nowiki>{{GetDate|1|P1}}</nowiki> || {{GetDate|1|P1}} || {{GetDateLong|1|P1}} | | Px || Preseason week x || <nowiki>{{GetDate|1|P1}}</nowiki> || {{GetDate|1|P1}} || {{GetDateLong|1|P1}} |
Revision as of 11:42, 20 February 2020
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 four Sundays after that (to account for expanded playoffs and pro bowl)
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 |
---|---|---|---|---|
Combine | NSFL Scouting Combine week | {{GetDate|1|Combine}} | 2016-03-13 | 13 March, 2016 |
PreDraft | NSFL Draft build-up | {{GetDate|1|PreDraft}} | 2016-03-27 | 27 March, 2016 |
Draft | NSFL Draft week | {{GetDate|1|Draft}} | 2016-04-10 | 10 April, 2016 |
Off | Offseason | {{GetDate|1|Off}} | 2016-05-22 | 22 May, 2016 |
OTA | OTAs begin | {{GetDate|1|OTA}} | 2016-07-10 | 10 July, 2016 |
Camp | Training Camp begins | {{GetDate|1|Camp}} | 2016-07-31 | 31 July, 2016 |
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 (assumes old format, with two playoff rounds only) |
{{GetDate|1|CC}} | 2017-01-08 | 08 January, 2017 |
ConfChamps | {{GetDate|1|ConfChamps}} | 2017-01-08 | 08 January, 2017 | |
POx | Playoffs round x | {{GetDate|1|PO1}} | 2017-01-08 | 08 January, 2017 |
PB | Pro Bowl | {{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 | |
U | Ultimus | {{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 |