Difference between revisions of "Lowest"
From Sega Retro
(much better) |
|||
(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:Sega Retro | + | Use the parameter <tt>var</tt> to send the value to a variable instead of displaying it.{{lowest|poop}} |
+ | [[Category:Sega Retro templates]]</noinclude> |
Revision as of 16:54, 13 April 2018
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.