Difference between revisions of "Template:SpecDate"

From Sim Football Wiki
Jump to navigation Jump to search
m (1 revision imported)
(No difference)

Revision as of 10:38, 24 January 2018

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|AOCAF49}} returns 1 January, 2017 as this is the corresponding start date of AOCAF 49, as stored in the templates. If a reference is not passed, the template should return the equivalent of January 1st 2224 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
AOCAF50 Template:Aocaf 2226-06-10
WCQ74 Template:Wcq 2224-09-01
AOCAF49 Template:Aocaf 2224-06-14
RUT40 or RUT2220 Template:Rut 2220-07-22
RUT41 or RUT2222 Template:Rut 2222-07-27
EAGLE6 Eagle's Cup VI 2228-05-02
RUT45 or RUT2230 Template:Rut 2230-07-24
WCQ77 Template:Wcq 2230-09-04
WC77 Template:Wc 2231-06-05