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>]] • <dni>{{#invoke:Dni-numerals|number_to_dni_string| {{{2| {{{vailee| }}} }}} }}</dni> • <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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
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. | Number | required |
Vailee | 2 vailee | The numeric value of the vailee used in the journal date. Must be an integer between 1 and 10 inclusive.
| Number | required |
Yahr | 3 yahr | The numeric value of the yahr used in a journal date. Must be an integer between 1 and 29 inclusive.
| Number | required |
D'ni | dni | If nonempty, the template is formatted as a D'ni numeral date, as per Gehn's journals in the Riven remake.
| String | optional |
The above documentation is transcluded from Template:Journal date/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |