|
|
(9 intermediate revisions by 8 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#if:{{{1|}}}|{{#expr:{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{#ifexpr:({{{1}}})<({{{2}}})|{{#ifexpr:({{{1}}})<({{{3}}})|{{{1}}}|{{{3}}}}}|{{#ifexpr:({{{2}}})<({{{3}}})|{{{2}}}|{{{3}}}}}}}|{{#ifexpr:({{{1}}})<({{{2}}})|{{{1}}}|{{{2}}}}}}}|{{{1}}}}}}}|}}</includeonly><noinclude>{{Template documentation}} | | <includeonly>{{#invoke:Math|min}}</includeonly><noinclude> |
| Evaluates and returns the minimum of a list of numeric values (with up to 3 parameters). The parameters can be numeric expressions that will be evaluated. Empty or missing parameters are ignored.
| | {{Documentation}} |
| | |
| ; Syntax<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{min|</nowiki></tt>''[value1]''<tt><nowiki>|</nowiki></tt>''[value2]''<tt><nowiki>|</nowiki></tt>''[value3]''<tt><nowiki>}}</nowiki></tt>
| |
| | |
| ; Examples<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{min}}</nowiki></tt> = "{{min}}".
| |
| : <tt><nowiki>{{min|}}</nowiki></tt> = "{{min|}}".
| |
| : <tt><nowiki>{{min|-7}}</nowiki></tt> = "{{min|-7}}".
| |
| : <tt><nowiki>{{min|-7|}}</nowiki></tt> = "{{min|-7|}}".
| |
| : <tt><nowiki>{{min|7|-5}}</nowiki></tt> = "{{min|7|-5}}".
| |
| : <tt><nowiki>{{min|7|-5|}}</nowiki></tt> = "{{min|7|-5|}}".
| |
| : <tt><nowiki>{{min|7|-5|-8}}</nowiki></tt> = "{{min|7|-5|-8}}".
| |
| : <tt><nowiki>{{min|40*41|300+30}}</nowiki></tt> = "{{min|40*41|300+30}}".
| |
| : <tt><nowiki>{{min|100+10|300+30|200+20}}</nowiki></tt> = "{{min|100+10|300+30|200+20}}".
| |
| | |
| ; See also<nowiki>:</nowiki>
| |
| * [[Template:Max]]
| |
| | |
| [[Category:Templates using ParserFunctions|Min]]
| |
| [[Category:Mathematical templates|Min]]
| |
| </noinclude> | | </noinclude> |