Template:SpecDate/OSR

From NationStates Sports Wiki
Revision as of 16:33, 25 January 2025 by Osarius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1 June, 2339

Usage

Edit the subpages for day, month, and year to maintain correct date (in the Osarian calendar) here and in templates. The defaults to be shown when no competition code is entered should be June 1st of a year calculated based on the assumption that World Cup 49 took place in 2170 in the Osarian calendar, 112 RL days pass between each subsequent World Cup, and there was a 62-year time-skip in Osarius at some point since World Cup 49.

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/OSR|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/06/2339
SpecDate dev yyyy-mm-dd 2339-06-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 AOCAF 50 2226-06-10
WCQ74 WCQ 74 2224-09-01
AOCAF49 AOCAF 49 2224-06-14
RUT40 RUT 2220 2220-07-22
RUT41 RUT 2222 2222-07-27
EAGLE6 Eagle's Cup VI 2228-05-02
RUT45 RUT 2230 2230-07-24
WCQ77 WCQ 77 2230-09-04
WC77 WC 77 2231-06-05
WCQ98 WCQ 98 2230-09-01
COH90 COH 90 2331-11-29