User:Pharap/Template Sandbox: Difference between revisions
From Guild of Archivists
(Expand template with further conditions and detail.) |
(Last test.) |
||
Line 1: | Line 1: | ||
{{#if: {{{1|{{{ordinal|}}}}}} || {{error|Parameters 1 or ordinal must be provided with a valid argument.}}}}<!-- | <includeonly>{{#if: {{{1|{{{ordinal|}}}}}} || {{error|Parameters 1 or ordinal must be provided with a valid argument.}}}}<!-- | ||
-->{{#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}}}}} DE | | {{#expr: 9375 + {{{1}}}}}{{#ifeq: {{{suffix|yes}}}|yes| DE|}} | ||
| {{error|Provided argument must be an integer between 0 and 624 inclusive.}} | | {{error|Provided argument must be an integer between 0 and 624 inclusive.}} | ||
}} | }} | ||
}} | }}</includeonly> |