Template:Min: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Patrick
meta>Verdy p
mNo edit summary
Line 1: Line 1:
<includeonly>{{#ifexpr: {{{1}}} < {{{2}}}|{{{1}}}|{{{2}}}}}</includeonly><noinclude>
<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}}
 
Evaluates and returns the minimum of a list of numeric expressions (with up to 3 parameters).
<pre>Example:
; Syntax<nowiki>:</nowiki>
{{min|7|5}}</pre> = {{min|7|5}}
; 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]]
[[Category:Templates using ParserFunctions]]
[[Category:Mathematical templates]]
[[Category:Mathematical templates]]
</noinclude>
</noinclude>

Revision as of 15:44, 24 April 2006

Template:Template documentation Evaluates and returns the minimum of a list of numeric expressions (with up to 3 parameters).

Syntax:
Examples:
{{min}} = "".
{{min|}} = "".
{{min|-7}} = "-7".
{{min|-7|}} = "-7".
{{min|-7|5}} = "-7".
{{min|-7|5|}} = "-7".
{{min|-7|5|8}} = "-7".
{{min|40*41|300+30}} = "330".
{{min|100+10|300+30|200+20}} = "110".
See also: