Template:Max/doc
Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
Evaluates and returns the maximum of a list of numeric values. The parameters can be numeric expressions that will be evaluated. Empty or missing parameters are ignored.
Usage
- Syntax
{{max | value1 | value2 | value3 | value4 | ... }}
- Examples
{{max}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|-7}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|-7|}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|-7|5}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|-7|5|}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|-7|5|8}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|40*41|300+30}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory{{max|100+10|300+30|200+20}}
→ Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory
TemplateData
TemplateData for Max
Evaluates and returns the maximum of a list of numeric values.
Parameter | Description | Type | Status | |
---|---|---|---|---|
First value | 1 | The first value, a number or expression, e.g. '10*20+30' | String | required |
Second value | 2 | The second value, many more parameters can be specified | String | optional |
See also
- Template:Min - for a minimum value, used the same way.