Template:SpecDate/doc: Difference between revisions
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
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. | 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. | ||
Where SpecDate is required, use either full form (SpecDate|ref) or the appropriate formatted version from below: | Where SpecDate is required, use either full form (SpecDate|ref) or the appropriate formatted version template from the table below: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 18: | Line 18: | ||
| yyyy-mm-dd | | yyyy-mm-dd | ||
| {{SpecDate dev}} | | {{SpecDate dev}} | ||
|}</noinclude> | |} | ||
Here is a list of all events available for use in the templates, and their corresponding start dates for ease of reference: | |||
{| class="wikitable" | |||
|- | |||
!Reference | |||
!Event | |||
!Start Date | |||
|- | |||
|AOCAF49 | |||
|{{aocaf|49|a}} | |||
|2224-06-14 | |||
|- | |||
|RUT40 or RUT2220 | |||
|{{rut|2220|a}} | |||
|2220-07-22 | |||
|- | |||
|RUT41 or RUT2222 | |||
|{{rut|2222|a}} | |||
|2222-07-27 | |||
|} | |||
</noinclude> |
Latest revision as of 09:10, 23 March 2016
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 14 June, 2224 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/09/2230 |
SpecDate dev | yyyy-mm-dd | 2230-09-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 |
---|---|---|
AOCAF49 | AOCAF 49 | 2224-06-14 |
RUT40 or RUT2220 | RUT 2220 | 2220-07-22 |
RUT41 or RUT2222 | RUT 2222 | 2222-07-27 |