User:Pharap/Template Sandbox: Difference between revisions
From Guild of Archivists
(Add parameter presence checking.) |
(Expand template with further conditions and detail.) |
||
Line 1: | Line 1: | ||
{{#if: {{{1|}}} |{{#expr: 9375 + {{{1}}}}} DE|{{error| | {{#if: {{{1|{{{ordinal|}}}}}} || {{error|Parameters 1 or ordinal must be provided with a valid argument.}}}}<!-- | ||
-->{{#if: {{{1|{{{ordinal|}}}}}} | | |||
{{#ifexpr: (({{{1|{{{ordinal|0}}}}}} >= 0) and ({{{1|{{{ordinal|0}}}}}} <= 624)) | |||
| {{#expr: 9375 + {{{1}}}}} DE | |||
| {{error|Provided argument must be an integer between 0 and 624 inclusive.}} | |||
}} | |||
}} |
Revision as of 08:20, 29 November 2024
Parameters 1 or ordinal must be provided with a valid argument.