Template:Dnihahr2

From MYSTAges
Jump to: navigation, search

Documentation[edit]

This template can be used to present a range of D'ni hahrtee, alongside the corresponding Gregorian years, in a readable format. This is a wrapper template for Template:dnidatebase, alongside Template:dnihahr, Template:dnidate, Template:dnidate2, and Template:journaldate.

Vaileetee and yahrtee are optional and will not be displayed, though are regardless taken into account when calculating the Gregorian years.

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 no vaileetee/yahrtee 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.

Parameters[edit]

Parameter Description
1 h1 Proleptic-hahr part of first D'ni date. The proleptic hahr is negative for BE hahrtee; eg. 207 BE would be -207. Required.
2 h2 Proleptic-hahr part of second D'ni date. Optional. Requires h1.
3 v1 Vailee-of-hahr (name or number) part of first D'ni date. Not displayed. Optional. Requires h1.
4 v2 Vailee-of-hahr (name or number) part of second D'ni date. Not displayed. Optional. Requires h2.
5 y1 Yahr-of-vailee part of first D'ni date. Not displayed. Optional. Requires v1.
6 y2 Yahr-of-vailee part of second D'ni date. Not displayed. Optional. Requires v2.
hidegregorian If filled, hides the Gregorian dates. Optional.
hg
largegregorian If filled, makes the Gregorian dates normal-sized (instead of small). Optional. Ignored if hidegregorian is filled.
lg
nolink If filled, removes the link(s) to BE/DE, leaving the era unlinked. Optional.
nl
sformat If filled, uses the "-s"/"c." format; see examples below. Optional. Requires h2.
tooltip If filled, places the Gregorian dates in a tooltip instead of in brackets. Optional. Ignored if hidegregorian is filled.
tt

Examples[edit]

Wikitext Output
{{dnihahr2|5540|5541}}
5540–5541 DE (2117–2115 BCE)
{{dnihahr2|8100|8199|sformat=y}}
8100s DE (c. 444–544 CE)
{{dnihahr2|7512|7514|Leesahn|Leefo}}
7512–7514 DE (145–143 BCE)
{{dnihahr2|7600|7700}}
7600–7700 DE (57 BCE – 45 CE)
{{dnihahr2|-207|120|hg=y}}
207 BE – 120 DE
{{dnihahr2|9673|9674|Leevotar|Leevobro|14|24|lg=y}}
9673–9674 DE (2018 CE)
{{dnihahr2|8462|8462|nl=y}}
8462 DE (806–807 CE)
{{dnihahr2|1200|1353|tt=y}}
1200–1353 DE

Redirects[edit]