قالب:Max/27
< قالب:Max
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk 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}} = "".
- {{Max/27|}} = "".
- {{Max/27|7}} = "7".
- {{Max/27|7|}} = "7".
- {{Max/27|-5|7}} = "7".
- {{Max/27|-5||||7}} = "7".
- {{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}} = "17".
- {{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}} = "16".
- {{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}} = "17".
- {{Max/27|40*41}} = "1640".
- {{Max/27|1300+30|40*41}} = "1640".
- {{Max/27|1300+30||||40*41}} = "1640".
- {{Max/27|1300+30|987+654|1234/2|1200-60|40*41}} = "1641".
See also
- Template:Max - for the base template that this template uses, can only take three parameters, and no spaces.
- Template:Min/27 - for a minimum value, used the same way.
The above documentation is transcluded from قالب:Max/27/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |