Difference between revisions of "Lowest"
From NEC Retro
(Created page with "<includeonly>{{#vardefine:x|{{#expr:{{{1|9999}}} }} }}{{ #ifexpr:{{{2|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{2}}} }} }} |}}{{ #ifexpr:{{{3|9999}}}<{{#var:x}}|{{#vardefi...") |
m (Text replacement - "Category:NEC Retro templates" to "Category:Templates") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly>{{clearvar|lowest}}{{#fornumargs: |
− | + | | nnn | |
− | + | | {{#if: {{#var:nnn}} | {{#iferror: {{#expr:{{#var:nnn}}}} ||{{#if:{{#var:lowest}}||{{#vardefine:lowest|{{#var:nnn}}}}}}{{#ifexpr: {{#var:nnn}}<{{#var:lowest}} | {{#vardefine:lowest|{{#var:nnn}}}} }}}} }}}}{{#if:{{{var|}}}|{{#vardefine:{{{var|}}}|{{#var:lowest}}}}|{{#var:lowest}}}}</includeonly><noinclude> | |
− | |||
− | |||
− | |||
− | # | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | #ifexpr: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
This template returns the lowest number from a series of numbers. | This template returns the lowest number from a series of numbers. | ||
− | [[Category: | + | Use the parameter <tt>var</tt> to send the value to a variable instead of displaying it.{{lowest|poop}} |
+ | [[Category:Templates]]</noinclude> |
Latest revision as of 14:20, 1 January 2022
This template returns the lowest number from a series of numbers.
Use the parameter var to send the value to a variable instead of displaying it.