Template:Dnidatebase

From MYSTAges
Jump to: navigation, search

Documentation[edit]

This is an internal template that automatically converts a given D'ni date/hahr or range of dates/hahrtee into the corresponding Gregorian date(s), presenting them in an inline, readable format.

Note: As the D'ni New Hahr is slowly moving backwards through the Gregorian calendar year over time, this template will produce incorrect Gregorian conversions for dates in the far-future/past if the precision is 0 and no vaileetee are specified, due to the simplified conversion formula that this template uses. However, all relevant dates, from the earliest known Before Earth dates to the present day, are well within those boundaries.

Usage[edit]

In order to use this template in an article, one of the following wrapper templates should be used instead:

Examples of the usage of each are provided in their individual documentations. Each template has a few shortened redirects.

Parameters[edit]

Parameter Description
h1 Proleptic-hahr part of first D'ni date. Required.
v1 Vailee-of-hahr (name or number) part of first D'ni date. Optional. Requires h1.
y1 Yahr-of-vailee part of first D'ni date. Optional. Requires v1.
h2 Proleptic-hahr part of second D'ni date. Optional. Requires h1.
v2 Vailee-of-hahr (name or number) part of second D'ni date. Optional. Requires h2.
y2 Yahr-of-vailee part of second D'ni date. Optional. Requires v2.
precision Precision of the D'ni and Gregorian dates. 0 is hahr/year-level, 1 is vailee/month-level, and 2 is yahr/day-level. Required.
hidegregorian If filled, hides the Gregorian dates. Optional.
hidehahr If filled, hides the hahr part of the date if possible. Optional. Requires v1 to be filled, and requires either h2 to not be filled, or h1 and h2 to be equal.
largegregorian If filled, makes the Gregorian dates normal-sized (instead of small). Optional. Ignored if hidegregorian is filled.
nolink If filled, removes the link(s) to BE/DE, leaving the era unlinked. Optional. Ignored if hidehahr is filled.
sformat If filled, uses the "-s"/"c." format. Optional. Ignored if the vailee fields are filled.
tooltip If filled, places the Gregorian dates in a tooltip instead of in brackets. Optional. Ignored if hidegregorian is filled.