User:Lakrits/templatesandbox: Difference between revisions

-
(-)
(-)
Line 1: Line 1:
{{#if:{{{num|}}}|{{#ifexpr:{{#expr:{{{num|}}} >= 2}}|{{#ifexpr:{{#expr:{{{num|}}} <= 10}}|{{#switch:{{{num|}}}
{{#if:{{{num|}}}|{{#ifexpr:{{#expr:{{{num|}}} >= 2}}|{{#ifexpr:{{#expr:{{{num|}}} <= 25}}|{{#switch:{{{num|}}}
  | 2 = {{{1}}}{{{1}}}
  | 2 = {{{1}}}{{{1}}}
  | 3 = {{{1}}}{{{1}}}{{{1}}}
  | 3 = {{{1}}}{{{1}}}{{{1}}}
Line 9: Line 9:
  | 9 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
  | 9 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
  | 10 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
  | 10 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
}}|{{#ifexpr:{{#expr:{{{num|}}} > 10}}|<span class="error">Error in {{tl|repeat}}: value for parameter <span style="color:#4d4e53;">{{samp|num}}</span> too high, maximum is 10.</span>}}}}|{{#ifexpr:{{#expr:{{{num|}}} < 2}}|<span class="error">Error in {{tl|repeat}}: value for parameter <span style="color:#4d4e53;">{{samp|num}}</span> too low, minimum is 2.</span>}}}}|{{{1}}}{{{1}}}}}
| 11 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
| 12 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
| 13 = {{{1}}}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1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
| 22 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
| 23 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
| 24 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
| 25 = {{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}{{{1}}}
}}|{{#ifexpr:{{#expr:{{{num|}}} > 25}}|<span class="error">Error in {{tl|repeat}}: value for parameter <span style="color:#4d4e53;">{{samp|num}}</span> too high, maximum is 25.</span>}}}}|{{#ifexpr:{{#expr:{{{num|}}} < 2}}|<span class="error">Error in {{tl|repeat}}: value for parameter <span style="color:#4d4e53;">{{samp|num}}</span> too low, minimum is 2.</span>}}}}|{{{1}}}{{{1}}}}}
3,860

edits