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

From blackwiki
Jump to navigation Jump to search
imported>Jimp
m (moved Template:Max/729/doc to Template:Max/12/doc: 3^6 is overkill but a dozen is useful (12 months in a year))
imported>Jimp
Line 2: Line 2:
 
<includeonly>{{Intricate template}}</includeonly>
 
<includeonly>{{Intricate template}}</includeonly>
  
Evaluates and returns the maximum of a list of numeric values (with up to 729 parameters). The parameters can be numeric expressions that will be evaluated. Empty, missing, or skipped parameters are ignored.
+
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<nowiki>:</nowiki>
 
; Syntax<nowiki>:</nowiki>
: <pre>{{Max/729|[value1]|[value2]|etc.}}</pre>
+
: <pre>{{Max/12|[value1]|[value2]|etc.}}</pre>
  
 
; Examples:
 
; Examples:
: <tt><nowiki>{{Max/729}}</nowiki></tt> = "{{Max/729}}".
+
: <tt><nowiki>{{Max/12}}</nowiki></tt> = "{{Max/12}}".
: <tt><nowiki>{{Max/729|}}</nowiki></tt> = "{{Max/729|}}".
+
: <tt><nowiki>{{Max/12|}}</nowiki></tt> = "{{Max/12|}}".
: <tt><nowiki>{{Max/729|7}}</nowiki></tt> = "{{Max/729|7}}".
+
: <tt><nowiki>{{Max/12|7}}</nowiki></tt> = "{{Max/12|7}}".
: <tt><nowiki>{{Max/729|7|}}</nowiki></tt> = "{{Max/729|7|}}".
+
: <tt><nowiki>{{Max/12|7|}}</nowiki></tt> = "{{Max/12|7|}}".
: <tt><nowiki>{{Max/729|-5|7}}</nowiki></tt> = "{{Max/729|-5|7}}".
+
: <tt><nowiki>{{Max/12|-5|7}}</nowiki></tt> = "{{Max/12|-5|7}}".
: <tt><nowiki>{{Max/729|-5||||7}}</nowiki></tt> = "{{Max/729|-5||||7}}".
+
: <tt><nowiki>{{Max/12|-5||||7}}</nowiki></tt> = "{{Max/12|-5||||7}}".
: <tt><nowiki>{{Max/729|-5|-3|-1|1|7|9|11|13|15|17|19|21|23|22|20|18|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}</nowiki></tt> = "{{Max/729|-5|-3|-1|1|7|9|11|13|15|17|19|21|23|22|20|18|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}".
 
: <tt><nowiki>{{Max/729|-5|-3|-1|1|7|9|11|13|15|17|19|21||22|20|18|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}</nowiki></tt> = "{{Max/729|-5|-3|-1|1|7|9|11|13|15|17|19|21||22|20|18|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}".
 
: <tt><nowiki>{{Max/729|23|728 other numbers below 23|30}}</nowiki></tt> = "23".
 
: <tt><nowiki>{{Max/729|40*41}}</nowiki></tt> = "{{Max/729|40*41}}".
 
: <tt><nowiki>{{Max/729|1300+30|40*41}}</nowiki></tt> = "{{Max/729|1300+30|40*41}}".
 
: <tt><nowiki>{{Max/729|1300+30||||40*41}}</nowiki></tt> = "{{Max/729|1300+30||||40*41}}".
 
: <tt><nowiki>{{Max/729|1300+30|987+654|1234/2|1200-60|40*41}}</nowiki></tt> = "{{Max/729|1300+30|987+654|1234/2|1200-60|40*41}}".
 
  
 
== See also ==
 
== See also ==
 
* [[Template:Max]] - for the base template that this template uses, can only take three parameters, and no spaces.
 
* [[Template:Max]] - for the base template that this template uses, can only take three parameters, and no spaces.
* [[Template:Max/27]] - for the base template that this template uses, can only take up to 27 parameters.
+
* [[Template:Max/3]] and [[Template:Max/4]] - for the base templates that this template uses, can only take up to 3 & 4 parameters.
* [[Template:Min/729]] - for a minimum value, used the same way.
+
* [[Template:Min/12]] - for a minimum value, used the same way.
 +
 
 
<includeonly>
 
<includeonly>
[[Category:Mathematical function templates|Max/729]]
 
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
</includeonly>
 
</includeonly>

Revision as of 06:49, 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

  • Template:Max - for the base template that this template uses, can only take three parameters, and no spaces.
  • Template:Max/3 and Template:Max/4 - for the base templates that this template uses, can only take up to 3 & 4 parameters.
  • Template:Min/12 - for a minimum value, used the same way.