Template:Abbreviated hahr: Difference between revisions

From Guild of Archivists
(Simplify definition and replace non-breaking space with ordinary space.)
m (Remove quotes.)
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|yes}}}|yes|" DE"}}
| {{#expr:(9375 + {{{1}}})}}{{#ifeq:{{{suffix|yes}}}|yes| DE}}
| {{error|Parameter suffix may only have a value of 'yes' or 'no'.}}
| {{error|Parameter suffix may only have a value of 'yes' or 'no'.}}
}}
}}

Revision as of 01:34, 2 December 2024

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

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hahr (Abbreviated)1 ordinal

The abbreviated hahr to be extended to a full hahr.

Numberrequired
Suffixsuffix

When set to 'yes', includes " DE" as a suffix. When set to 'no', omits the " DE" suffix.

Suggested values
yes no
Auto value
no
Stringoptional