Difference between revisions of "Template:Max/12/doc"
< Template:Max | 12
Jump to navigation
Jump to search
imported>117Avenue |
imported>117Avenue |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <includeonly>{{Intricate template}}</includeonly> | + | <includeonly>{{Intricate template}} |
| + | {{High-use}}</includeonly> | ||
| − | Evaluates and returns the maximum of a list of numeric values (with up to | + | Evaluates and returns the maximum of a list of numeric values (with up to 27 parameters). 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/ | + | : <pre style=overflow:auto>{{Max/27|[value1]|[value2]|[value3]|[value4]|[value5]|[value6]|[value7]|[value8]|[value9]|[value10]|[value11]|[value12]|[value13]|[value14]|[value15]|[value16]|[value17]|[value18]|[value19]|[value20]|[value21]|[value22]|[value23]|[value24]|[value25]|[value26]|[value27]}}</pre> |
; Examples: | ; Examples: | ||
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27}}</nowiki></tt> = "{{Max/27}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|}}</nowiki></tt> = "{{Max/27|}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|7}}</nowiki></tt> = "{{Max/27|7}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|7|}}</nowiki></tt> = "{{Max/27|7|}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|-5|7}}</nowiki></tt> = "{{Max/27|-5|7}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|-5||||7}}</nowiki></tt> = "{{Max/27|-5||||7}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|-5|-3|-1|1|7|9|11|13|15|17|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}</nowiki></tt> = "{{Max/27|-5|-3|-1|1|7|9|11|13|15|17|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|-5|-3|-1|1|7|9|11|13|15||16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}</nowiki></tt> = "{{Max/27|-5|-3|-1|1|7|9|11|13|15||16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|-5|-3|-1|1|7|9|11|13|15|17|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7|20}}</nowiki></tt> = "{{Max/27|-5|-3|-1|1|7|9|11|13|15|17|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7|20}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|40*41}}</nowiki></tt> = "{{Max/27|40*41}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|1300+30|40*41}}</nowiki></tt> = "{{Max/27|1300+30|40*41}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|1300+30||||40*41}}</nowiki></tt> = "{{Max/27|1300+30||||40*41}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/27|1300+30|987+654|1234/2|1200-60|40*41}}</nowiki></tt> = "{{Max/27|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/ | + | * [[Template:Max/729]] - for a template that can take up to 729 parameters. |
| − | * [[Template:Min/ | + | * [[Template:Min/27]] - for a minimum value, used the same way. |
<includeonly> | <includeonly> | ||
| − | [[Category:Mathematical function templates|Max/ | + | [[Category:Mathematical function templates|Max/27]] |
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
</includeonly> | </includeonly> | ||
Revision as of 22:57, 2 December 2010
| This is a documentation subpage for Template:Max/12. It contains usage information, categories and other content that is not part of the original template page. |
Evaluates and returns the maximum of a list of numeric values (with up to 27 parameters). The parameters can be numeric expressions that will be evaluated. Empty, missing, or skipped parameters are ignored.
- Syntax:
{{Max/27|[value1]|[value2]|[value3]|[value4]|[value5]|[value6]|[value7]|[value8]|[value9]|[value10]|[value11]|[value12]|[value13]|[value14]|[value15]|[value16]|[value17]|[value18]|[value19]|[value20]|[value21]|[value22]|[value23]|[value24]|[value25]|[value26]|[value27]}}
- Examples
- {{Max/27}} = "Template:Max/27".
- {{Max/27|}} = "Template:Max/27".
- {{Max/27|7}} = "Template:Max/27".
- {{Max/27|7|}} = "Template:Max/27".
- {{Max/27|-5|7}} = "Template:Max/27".
- {{Max/27|-5||||7}} = "Template:Max/27".
- {{Max/27|-5|-3|-1|1|7|9|11|13|15|17|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}} = "Template:Max/27".
- {{Max/27|-5|-3|-1|1|7|9|11|13|15||16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7}} = "Template:Max/27".
- {{Max/27|-5|-3|-1|1|7|9|11|13|15|17|16|14|12|10|8|6|4|2|0|3|5|-6|-8|-10|-11|-9|-7|20}} = "Template:Max/27".
- {{Max/27|40*41}} = "Template:Max/27".
- {{Max/27|1300+30|40*41}} = "Template:Max/27".
- {{Max/27|1300+30||||40*41}} = "Template:Max/27".
- {{Max/27|1300+30|987+654|1234/2|1200-60|40*41}} = "Template:Max/27".
See also
- Template:Max - for the base template that this template uses, can only take three parameters, and no spaces.
- Template:Max/729 - for a template that can take up to 729 parameters.
- Template:Min/27 - for a minimum value, used the same way.