Difference between revisions of "Template:Max/12/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jimp
imported>Jimp
Line 16: Line 16:
  
 
== See also ==
 
== See also ==
* [[Template:Max]] - for the base template that this template uses, can only take three parameters, and no spaces.
+
* {{tl|Max}} takes up to three optional parameters (ignors empty and non-numeric parameters)
* [[Template:Max/3]] and [[Template:Max/4]] - for the base templates that this template uses, can only take up to 3 & 4 parameters.
+
* {{tl|Max/2}} takes exactly two numeric parameters
* [[Template:Min/12]] - for a minimum value, used the same way.
+
* {{tl|Max/3}} takes exactly three numeric parameters
 +
* {{tl|Max/4}} takes up to four optional parameters (ignors empty and non-numeric parameters)
 +
* {{tl|Min/12}} - for a minimum value, used the same way.
  
 
<includeonly>
 
<includeonly>
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
</includeonly>
 
</includeonly>

Revision as of 08:02, 14 October 2011


Evaluates and returns the maximum of a list of up to twelve numeric values. The parameters can be numeric expressions that will be evaluated. Empty, missing, or skipped parameters are ignored.

Syntax:
{{Max/12|[value1]|[value2]|etc.}}
Examples
{{Max/12}} = "".
{{Max/12|}} = "".
{{Max/12|7}} = "7".
{{Max/12|7|}} = "7".
{{Max/12|-5|7}} = "7".
{{Max/12|-5||||7}} = "7".

See also

  • {{Max}} takes up to three optional parameters (ignors empty and non-numeric parameters)
  • {{Max/2}} takes exactly two numeric parameters
  • {{Max/3}} takes exactly three numeric parameters
  • {{Max/4}} takes up to four optional parameters (ignors empty and non-numeric parameters)
  • {{Min/12}} - for a minimum value, used the same way.