Template:Journal date: Difference between revisions

From Guild of Archivists
(Create 'Journal date' template for providing more comprehensive journal dates.)
 
(Update 'journal date' template to include 'dni' parameter.)
 
Line 7: Line 7:
{{#if: {{{2| {{{vailee| }}}}}} |
{{#if: {{{2| {{{vailee| }}}}}} |
{{#if: {{{1| {{{hahr| }}}}}} |
{{#if: {{{1| {{{hahr| }}}}}} |
{{hover text| {{abbreviated hahr| {{{1| {{{hahr| }}} }}} |suffix=yes}} {{vailee name| {{{2| {{{vailee| }}} }}} }} {{checked yahr| {{{3| {{{yahr| }}} }}} }} | [[{{abbreviated hahr| {{{1| {{{hahr| }}} }}} }} DE|{{{1| {{{hahr| }}} }}}]].{{{2| {{{vailee| }}} }}}.{{{3| {{{yahr| }}} }}} }}
{{hover text| {{abbreviated hahr| {{{1| {{{hahr| }}} }}} |suffix=yes}} {{vailee name| {{{2| {{{vailee| }}} }}} }} {{checked yahr| {{{3| {{{yahr| }}} }}} }} | {{#if: {{{dni|}}} | [[{{abbreviated hahr| {{{1| {{{hahr| }}} }}} }} DE|<dni>{{#invoke:Dni-numerals|number_to_dni_string| {{{1| {{{hahr| }}} }}} }}</dni>]] &bullet; <dni>{{#invoke:Dni-numerals|number_to_dni_string| {{{2| {{{vailee| }}} }}} }}</dni> &bullet; <dni>{{#invoke:Dni-numerals|number_to_dni_string| {{{3| {{{yahr| }}} }}} }}</dni> | [[{{abbreviated hahr| {{{1| {{{hahr| }}} }}} }} DE|{{{1| {{{hahr| }}} }}}]].{{{2| {{{vailee| }}} }}}.{{{3| {{{yahr| }}} }}} }} }}
}}
}}
}}
}}
}}</includeonly><!--
}}</includeonly><!--
--><noinclude>{{Documentation}}</noinclude>
--><noinclude>{{Documentation}}</noinclude>

Latest revision as of 03:10, 24 December 2024

Template documentation[view] [edit] [history] [purge]

A template useful for transcribing dates in journal date format from the journals of e.g. Atrus, Gehn. It provides both a hover text depicting the full date and a link to the page for the corresponding year.

Template parameters

ParameterDescriptionTypeStatus
Hahr (Short Form)1 hahr

The short form hahr as used in the typical journal date format. Must be an integer between 0 and 624 inclusive.

Numberrequired
Vailee2 vailee

The numeric value of the vailee used in the journal date. Must be an integer between 1 and 10 inclusive.

Suggested values
1 2 3 4 5 6 7 8 9 10
Numberrequired
Yahr3 yahr

The numeric value of the yahr used in a journal date. Must be an integer between 1 and 29 inclusive.

Suggested values
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Numberrequired
D'nidni

If nonempty, the template is formatted as a D'ni numeral date, as per Gehn's journals in the Riven remake.

Suggested values
yes
Stringoptional