Difference between revisions of "Template:Max/12/doc"
< Template:Max | 12
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 | + | 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/ | + | : <pre>{{Max/12|[value1]|[value2]|etc.}}</pre> |
; Examples: | ; Examples: | ||
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/12}}</nowiki></tt> = "{{Max/12}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/12|}}</nowiki></tt> = "{{Max/12|}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/12|7}}</nowiki></tt> = "{{Max/12|7}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/12|7|}}</nowiki></tt> = "{{Max/12|7|}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/12|-5|7}}</nowiki></tt> = "{{Max/12|-5|7}}". |
| − | : <tt><nowiki>{{Max/ | + | : <tt><nowiki>{{Max/12|-5||||7}}</nowiki></tt> = "{{Max/12|-5||||7}}". |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== 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/3]] and [[Template:Max/4]] - for the base templates that this template uses, can only take up to 3 & 4 parameters. |
| − | * [[Template:Min/ | + | * [[Template: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 06:49, 14 October 2011
| 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 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.