Template:Abbreviated hahr: Difference between revisions
From Guild of Archivists
(Simplify definition and replace non-breaking space with ordinary space.) |
(Remove unintended trailing newline.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
-->{{#if: {{{1| {{{ordinal| }}} }}} | | -->{{#if: {{{1| {{{ordinal| }}} }}} | | ||
{{#ifexpr: (({{{1|{{{ordinal|0}}}}}} >= 0) and ({{{1|{{{ordinal|0}}}}}} <= 624)) | {{#ifexpr: (({{{1|{{{ordinal|0}}}}}} >= 0) and ({{{1|{{{ordinal|0}}}}}} <= 624)) | ||
| {{#expr:(9375 + {{{1}}})}}{{#ifeq:{{{suffix| | | {{#expr:(9375 + {{{1}}})}}{{#ifeq:{{{suffix|no}}}|yes| DE}} | ||
| {{error| | | {{error|Provided argument must be an integer between 0 and 624 inclusive.}} | ||
}} | }} | ||
}}</includeonly><!-- | |||
}}</includeonly> | --><noinclude>{{Documentation}}</noinclude> | ||
<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 01:52, 2 December 2024
Converts the abbreviated hahr format used in journals to a complete hahr value. The full hahr value is calculated by treating the abbreviated hahr as an offset from the hahr 9375, i.e. the beginning of the most recent hahrtee fahrah.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Hahr (Abbreviated) | 1 ordinal | The abbreviated hahr to be extended to a full hahr. | Number | required |
Suffix | suffix | When set to 'yes', includes " DE" as a suffix. When set to 'no', omits the " DE" suffix.
| String | optional |
The above documentation is transcluded from Template:Abbreviated hahr/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. |