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

Template:Max

  • Template
  • Talk
  • Language
  • Watch
  • View source
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

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

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

  • 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&oldid=772147328"
Last edited on 25 March 2017, at 16:04

Languages

    • Afrikaans
    • Alemannisch
    • Anarâškielâ
    • Ænglisc
    • العربية
    • অসমীয়া
    • Asturianu
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Башҡортса
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Български
    • Boarisch
    • Bosanski
    • Brezhoneg
    • Буряад
    • Català
    • Chavacano de Zamboanga
    • ChiShona
    • Dansk
    • الدارجة
    • Deutsch
    • ދިވެހިބަސް
    • Dolnoserbski
    • Eesti
    • Ελληνικά
    • Español
    • Esperanto
    • Euskara
    • فارسی
    • Fiji Hindi
    • Føroyskt
    • Français
    • Gaeilge
    • Gaelg
    • Galego
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Hausa
    • Հայերեն
    • हिन्दी
    • Hornjoserbsce
    • Ilokano
    • Bahasa Indonesia
    • Interlingua
    • IsiZulu
    • Íslenska
    • Italiano
    • Jawa
    • ქართული
    • Kongo
    • Kurdî
    • Ladin
    • Ladino
    • Latina
    • Latviešu
    • Lëtzebuergesch
    • Ligure
    • Madhurâ
    • मैथिली
    • Македонски
    • മലയാളം
    • Malti
    • मराठी
    • მარგალური
    • مصرى
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Мокшень
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • 日本語
    • Norsk bokmål
    • Novial
    • Occitan
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Pangasinan
    • ပအိုဝ်ႏဘာႏသာႏ
    • Papiamentu
    • پښتو
    • ភាសាខ្មែរ
    • Polski
    • Português
    • Română
    • Русский
    • Sakizaya
    • संस्कृतम्
    • Scots
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Sunda
    • Suomi
    • Svenska
    • Tagalog
    • தமிழ்
    • Taclḥit
    • Taqbaylit
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Tsetsêhestâhese
    • Türkçe
    • Українська
    • اردو
    • Tiếng Việt
    • Wolof
    • ייִדיש
    • 粵語
    • Zazaki
    • 中文
    • Batak Toba
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 25 March 2017, at 16:04 (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