|
|
Line 1: |
Line 1: |
− | <includeonly>{{#vardefine:x|{{#expr:{{{1|9999}}} }} }}{{ | + | <includeonly>{{clearvar|lowest}}{{#fornumargs: |
− | #ifexpr:{{{2|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{2}}} }} }} |}}{{
| + | | nnn |
− | #ifexpr:{{{3|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{3}}} }} }} |}}{{
| + | | {{#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:{{{4|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{4}}} }} }} |}}{{
| |
− | #ifexpr:{{{5|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{5}}} }} }} |}}{{
| |
− | #ifexpr:{{{6|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{6}}} }} }} |}}{{
| |
− | #ifexpr:{{{7|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{7}}} }} }} |}}{{ | |
− | #ifexpr:{{{8|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{8}}} }} }} |}}{{
| |
− | #ifexpr:{{{9|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{9}}} }} }} |}}{{
| |
− | #ifexpr:{{{10|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{10}}} }} }} |}}{{
| |
− | #ifexpr:{{{11|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{11}}} }} }} |}}{{
| |
− | #ifexpr:{{{12|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{12}}} }} }} |}}{{
| |
− | #ifexpr:{{{13|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{13}}} }} }} |}}{{
| |
− | #ifexpr:{{{14|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{14}}} }} }} |}}{{
| |
− | #ifexpr:{{{15|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{15}}} }} }} |}}{{
| |
− | #ifexpr:{{{16|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{16}}} }} }} |}}{{
| |
− | #ifexpr:{{{17|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{17}}} }} }} |}}{{ | |
− | #ifexpr:{{{18|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{18}}} }} }} |}}{{
| |
− | #ifexpr:{{{19|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{19}}} }} }} |}}{{
| |
− | #ifexpr:{{{20|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{20}}} }} }} |}}{{
| |
− | #ifexpr:{{{21|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{21}}} }} }} |}}{{
| |
− | #ifexpr:{{{22|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{22}}} }} }} |}}{{
| |
− | #ifexpr:{{{23|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{23}}} }} }} |}}{{
| |
− | #ifexpr:{{{24|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{24}}} }} }} |}}{{
| |
− | #ifexpr:{{{25|9999}}}<{{#var:x}}|{{#vardefine:x|{{#expr:{{{25}}} }} }} |}}{{#var:x}}</includeonly><noinclude>
| |
| This template returns the lowest number from a series of numbers. | | 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:NEC Retro templates]]</noinclude> | | [[Category:NEC Retro templates]]</noinclude> |