Template:SpecDate

From Sim Football Wiki
Jump to navigation Jump to search

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