Difference between revisions of "Template:SpecDate"

From Sim Football Wiki
Jump to navigation Jump to search
m (1 revision imported)
 
Line 3: Line 3:
 
Edit the subpages for [[Template:SpecDay|day]], [[Template:SpecMth|month]], and [[Template:SpecYr|year]] to maintain correct date here and in templates.
 
Edit the subpages for [[Template:SpecDay|day]], [[Template:SpecMth|month]], and [[Template:SpecYr|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, <nowiki>{{SpecDate|AOCAF49}}</nowiki> returns {{SpecDate|AOCAF49}} 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.
+
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, <nowiki>{{SpecDate|NSFL1}}</nowiki> returns {{SpecDate|NSFL1}} as this is the corresponding start date of [[NSFL Season 1|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:
 
Where SpecDate is required, use either full form (SpecDate|ref) or the appropriate formatted version template from the table below:
Line 28: Line 28:
 
!Start Date
 
!Start Date
 
|-
 
|-
|AOCAF50
+
|NSFL1
|{{aocaf|50|a}}
+
|{{nsfl|1|a}}
|2226-06-10
+
|2016-09-04
 
|-
 
|-
|WCQ74
+
|NSFL2
|{{wcq|74|a}}
+
|{{nsfl|2|a}}
|2224-09-01
+
|2017-09-03
 
|-
 
|-
|AOCAF49
+
|NSFL3
|{{aocaf|49|a}}
+
|{{nsfl|3|a}}
|2224-06-14
+
|2018-09-02
 
|-
 
|-
|RUT40 or RUT2220
+
|NSFL4
|{{rut|2220|a}}
+
|{{nsfl|4|a}}
|2220-07-22
+
|2019-09-01
 
|-
 
|-
|RUT41 or RUT2222
+
|NSFL5
|{{rut|2222|a}}
+
|{{nsfl|5|a}}
|2222-07-27
+
|2020-08-30
|-
 
|EAGLE6
 
|[[Eagle's Cup VI]]
 
|2228-05-02
 
|-
 
|RUT45 or RUT2230
 
|{{rut|2230|a}}
 
|2230-07-24
 
|-
 
|WCQ77
 
|{{wcq|77|a}}
 
|2230-09-04
 
|-
 
|WC77
 
|{{wc|77|a}}
 
|2231-06-05
 
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 10:52, 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|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
  1. REDIRECT Template:International Simulation Football League
2016-09-04
NSFL2 2017-09-03
NSFL3 2018-09-02
NSFL4 2019-09-01
NSFL5 2020-08-30