Template:Min: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Verdy p mNo edit summary |
meta>Verdy p mNo edit summary |
||
Line 2: | Line 2: | ||
Evaluates and returns the minimum of a list of numeric expressions (with up to 3 parameters). | Evaluates and returns the minimum of a list of numeric expressions (with up to 3 parameters). | ||
; Syntax<nowiki>:</nowiki> | ; 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> | ; Examples<nowiki>:</nowiki> | ||
: <tt><nowiki>{{min}}</nowiki></tt> = "{{min}}". | : <tt><nowiki>{{min}}</nowiki></tt> = "{{min}}". | ||
Line 14: | Line 15: | ||
; See also<nowiki>:</nowiki> | ; See also<nowiki>:</nowiki> | ||
* [[Template:Max]] | * [[Template:Max]] | ||
[[Category:Templates using ParserFunctions]] | [[Category:Templates using ParserFunctions|Min]] | ||
[[Category:Mathematical templates]] | [[Category:Mathematical templates|Min]] | ||
</noinclude> | </noinclude> |
Revision as of 22:04, 24 April 2006
Template:Template documentation Evaluates and returns the minimum of a list of numeric expressions (with up to 3 parameters).
- Syntax:
- {{min[|value1][|value2][|value3]}}
- Examples:
- {{min}} = "".
- {{min|}} = "".
- {{min|-7}} = "-7".
- {{min|-7|}} = "-7".
- {{min|7|-5}} = "-5".
- {{min|7|-5|}} = "-5".
- {{min|7|-5|-8}} = "-8".
- {{min|40*41|300+30}} = "330".
- {{min|100+10|300+30|200+20}} = "110".
- See also: