Template:Max/27

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Documentation icon Documentation[view] [edit] [history] [purge]

This documentation is transcluded from Template:Max/27/doc.


Template:Intricate template Template:High-use

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[edit]

  • 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.
http://commons.wikimedia.org/wiki/Template:Max/27
commons.wikimedia.org
crawl=CC-MAIN-2014-23
25987
application/http; msgtype=response
sha1:PZ57I6AB4A72IW7DWE5FFFRTE2HQIEZU
<urn:uuid:c6ca5a69-0a87-435a-a064-2108aac5f94c>
2014-07-24T00:17:04Z
198.35.26.96
sha1:VHCHRAKSEXMLHADHNVTV3VRYKS62GJ5M
<urn:uuid:c2da131c-4626-4993-9b83-f906cc40e6a5>
http://commons.wikimedia.org/wiki/Template:Max/27
response
<urn:uuid:00aa0def-7d3a-4f99-99ce-afd779f97da7>
robots: classic
hostname: ip-10-33-131-23.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-23
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for July 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf