Jump to content

Template:Max: Difference between revisions

From IdeaWazaWiki
wikademia>Verdy p
mNo edit summary
wikademia>Verdy p
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#expr:
<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{#ifexpr:({{{1}}})>({{{2}}})|{{#ifexpr:({{{1}}})>({{{3}}})|{{{1}}}|{{{3}}}}}|{{#ifexpr:({{{2}}})>({{{3}}})|{{{2}}}|{{{3}}}}}}}|{{#ifexpr:({{{1}}})>({{{2}}})|{{{1}}}|{{{2}}}}}}}|{{{1}}}}}|}}</includeonly><noinclude>
  {{#if:{{{2|}}}|
    {{#if:{{{3|}}}|
      {{#ifexpr:({{{1}}})>({{{2}}})
      | {{#ifexpr:({{{1}}})>({{{3}}})|{{{1}}}|{{{3}}}}}
      | {{#ifexpr:({{{2}}})>({{{3}}})|{{{2}}}|{{{3}}}}}
      }}
    | {{#ifexpr:({{{1}}})>({{{2}}})|{{{1}}}|{{{2}}}}}
    }}
  |{{{1}}}
  }}
}}|}}</includeonly><noinclude>
Evaluates and returns the maximum of a list of numeric expressions (with up to 3 parameters).
Evaluates and returns the maximum of a list of numeric expressions (with up to 3 parameters).
; Syntax<nowiki>:</nowiki>
; Syntax<nowiki>:</nowiki>

Revision as of 15:37, 24 April 2006

Evaluates and returns the maximum of a list of numeric expressions (with up to 3 parameters).

Syntax:
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}} = "40*41".
{{max|100+10|300+30|200+20}} = "300+30".