Difference between revisions of "Template:SpecDate"
37thchamber (talk | contribs) |
37thchamber (talk | contribs) m |
||
Line 29: | Line 29: | ||
|- | |- | ||
|NSFL1 | |NSFL1 | ||
− | |{{ | + | |{{nsfly|1|a}} |
|2016-09-04 | |2016-09-04 | ||
|- | |- | ||
|NSFL2 | |NSFL2 | ||
− | |{{ | + | |{{nsfly|2|a}} |
|2017-09-03 | |2017-09-03 | ||
|- | |- | ||
|NSFL3 | |NSFL3 | ||
− | |{{ | + | |{{nsfly|3|a}} |
|2018-09-02 | |2018-09-02 | ||
|- | |- | ||
|NSFL4 | |NSFL4 | ||
− | |{{ | + | |{{nsfly|4|a}} |
|2019-09-01 | |2019-09-01 | ||
|- | |- | ||
|NSFL5 | |NSFL5 | ||
− | |{{ | + | |{{nsfly|5|a}} |
|2020-08-30 | |2020-08-30 | ||
|} | |} | ||
</noinclude> | </noinclude> |
Revision as of 11:15, 2 July 2019
1 January, 2017
Usage
Edit the subpages for day, month, and year to maintain correct date here and in templates.
The "ref" parameter passed should be parsed by the switch function to return the correct values for day, month, and year (corresponding to the start of the referenced event or period). For example, {{SpecDate|NSFL1}} returns 4 September, 2016 as this is the corresponding start date of NSFL S1, as stored in the templates. If a reference is not passed, the template should return the equivalent of January 1st 2017 in whichever format you have called.
Where SpecDate is required, use either full form (SpecDate|ref) or the appropriate formatted version template from the table below:
Subpage | Output Format | Example |
---|---|---|
SpecDate short | dd/mm/yy | 01/01/2017 |
SpecDate dev | yyyy-mm-dd | 2017-01-01 |
Here is a list of all events available for use in the templates, and their corresponding start dates for ease of reference:
Reference | Event | Start Date |
---|---|---|
NSFL1 | 2016 (S1) | 2016-09-04 |
NSFL2 | 2017 (S2) | 2017-09-03 |
NSFL3 | 2018 (S3) | 2018-09-02 |
NSFL4 | 2019 (S4) | 2019-09-01 |
NSFL5 | 2020 (S5) | 2020-08-30 |