• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Max/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Max
This is the template sandbox page for Template:Max (diff).
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on 252,000+ pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Math (sandbox)

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

edit
Syntax
{{max | value1 | value2 | value3 | value4 | ... }}
Examples
{{max}} →
{{max|}} →
{{max|-7}} → -7
{{max|-7|}} → -7
{{max|-7|5}} → 5
{{max|-7|5|}} → 5
{{max|-7|5|8}} → 8
{{max|40*41|300+30}} → 1640
{{max|100+10|300+30|200+20}} → 330

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Max in articles based on its TemplateData.

TemplateData for Max

Evaluates and returns the maximum of a list of numeric values.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
First value1

The first value, a number or expression, e.g. '10*20+30'

Stringrequired
Second value2

The second value, many more parameters can be specified

Stringoptional

See also

edit
  • Template:Min - for a minimum value, used the same way.
The above documentation is transcluded from Template:Max/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Max/sandbox&oldid=555705142"
Last edited on 18 May 2013, at 21:49

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 18 May 2013, at 21:49 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop