Difference between revisions of "Lowest"
From Sega Retro
(Created page with "<includeonly>{{#ifexpr: {{{1|9999}}}>{{{2|9999}}} | {{#ifexpr: {{{2}}}>{{{3|9999}}} | {{{3}}} | {{{2}}} }} | {{#ifexpr: {{{1}}}>{{{3|9999}}} | {{{3}}} | {{{1}}} }} }}</include...") |
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
||
(12 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> | |
− | }}</ | + | This template returns the lowest number from a series of numbers. |
+ | |||
+ | 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.