User:Pharap/Template Sandbox: Difference between revisions

From Guild of Archivists
m (Add error case.)
(Create candidate for 'yahr range' template.)
Line 1: Line 1:
{{#switch: {{{1}}}
{{#if: {{{1|}}}|{{#ifexpr: (({{{1}}} >= 1) and ({{{1}}} <= 29)) | {{{1}}} | {{error|Yahr parameter must be between 1 and 29 inclusive}} }}|{{error|Parameter 1 must be provided}}}}
| 1 = Leefo
| 2 = Leebro
| 3 = Leesahn
| 4 = Leetar
| 5 = Leevot
| 6 = Leevofo
| 7 = Leevobro
| 8 = Leevosahn
| 9 = Leevotar
| 10 = Leenovoo
| {{error|Provided value must be an integer between 1 and 10 inclusive}}
}}

Revision as of 06:57, 29 November 2024

Parameter 1 must be provided