Difference between revisions of "Template:Max"
Jump to navigation
Jump to search
(Created page with "{{#ifexpr:{{{1}}}>{{{2}}}|{{{1}}}|{{{2}}}}}") |
|||
Line 1: | Line 1: | ||
− | {{#ifexpr:{{{1}}}>{{{2}}}|{{{1}}}|{{{2}}}}} | + | <includeonly>{{#ifexpr:{{{1}}}>{{{2}}}|{{{1}}}|{{{2}}}}}</includeonly><noinclude> |
+ | {{Documentation}} | ||
+ | </noinclude> |
Latest revision as of 10:08, 26 December 2024
Returns the larger value from its 2 positional parameters.
Code | Result |
---|---|
{{Max|1|2}} | 2 |
{{Max|4.5|3.5}} | 4.5 |
The above documentation is transcluded from Template:Max/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |