Difference between revisions of "Lowest"
From Sega Retro
(extended to 20 params) |
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
||
(3 intermediate revisions by 2 users 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 13:18, 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.