Template:AgeOSR

From NationStates Sports Wiki
Revision as of 15:39, 2 June 2024 by Osarius (talk | contribs) (edited to include the birth date as well, like the other birth date and age templates)
Jump to navigation Jump to search

Usage

Template specifically for figuring out ages based on the Osarian/Cobre calendar. Requires a birth date in yyyy-mm-dd format in parameters 1, 2, and 3. Also takes an optional "code" referring to an event, or a "year" parameter.

Specify an event

Events can be specified using a code. The list of which can be seen at SpecDate/OSR.

For example: {{AgeOSR|2190|9|1|code=AOCAF50}} will return (2190-09-01)September 1, 2190 (age 35), which is the age of a person born on September 1st, 2200 at the start of AOCAF Cup 50.

Specify a year

Alternatively, a year parameter can be passed (or set to "dy"; this will default to an approximation based on the RL date).

For example: {{AgeOSR|2200|9|1|year=2230}} will return (2200-09-01)September 1, 2200 (age 29-30), which is the possible ages of a person born on September 1st, 2200 at an undetermined point in the year 2230.

Similarly, {{AgeOSR|2300|9|1|year=df}} will return (2300-09-01)September 1, 2300 (age 38-39), which is the possible ages of a person born on September 1st, 2300 at an undetermined point in the estimated "current" year (2339) based on the RL date (06:39, Saturday, May 16, 2026 (UTC)).