User:Pharap/Template Sandbox: Difference between revisions
From Guild of Archivists
(Create candidate for 'yahr range' template.) |
(Implement 'checked time unit' template.) |
||
Line 1: | Line 1: | ||
{{#if: {{{1|}}}|{{#ifexpr: | {{#if: {{{1|{{{ordinal|}}}}}} || {{error|Parameters 1 or ordinal must be provided with a valid argument.}}}} | ||
{{#if: {{{2|{{{minimum|}}}}}} || {{error|Parameters 2 or minimum must be provided with a valid argument.}}}} | |||
{{#if: {{{3|{{{maximum|}}}}}} || {{error|Parameters 3 or maximum must be provided with a valid argument.}}}} | |||
{{#if: {{{3|{{{maximum|}}}}}} | | |||
{{#if: {{{2|{{{minimum|}}}}}} | | |||
{{#if: {{{1|{{{ordinal|}}}}}} | | |||
{{#ifexpr: ({{{1|{{{ordinal|0}}}}}} >= {{{2|{{{minimum|0}}}}}}) and ({{{1|{{{ordinal|0}}}}}} <= {{{3|{{{maximum|0}}}}}})) | |||
| {{{1}}} | |||
| {{error|Provided argument must be an integer between {{{2|{{{minimum|0}}}}}} and {{{3|{{{maximum|0}}}}}} inclusive.}} | |||
}} | |||
}} | |||
}} | |||
}} |
Revision as of 07:18, 29 November 2024
Parameters 1 or ordinal must be provided with a valid argument. Parameters 2 or minimum must be provided with a valid argument. Parameters 3 or maximum must be provided with a valid argument.