Difference between revisions of "Template:Max"
From Self-sufficiency
m (1 revision) |
(ignore non-numeric non-empty input) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#expr:{{#switch:<!-- |
− | {{Documentation}}</noinclude> | + | -->{{#iferror:{{#expr:({{{1|}}})*1}}|0|1}}<!-- |
+ | -->{{#iferror:{{#expr:({{{2|}}})*1}}|0|1}}<!-- | ||
+ | -->{{#iferror:{{#expr:({{{3|}}})*1}}|0|1}} | ||
+ | |111={{max/3|({{{1}}})|({{{2}}})|({{{3}}})}} | ||
+ | |110={{max/2|({{{1}}})|({{{2}}})}} | ||
+ | |100={{{1}}} | ||
+ | |101={{max/2|({{{1}}})|({{{3}}})}} | ||
+ | |011={{max/2|({{{2}}})|({{{3}}})}} | ||
+ | |010={{{2}}} | ||
+ | |001={{{3}}} | ||
+ | }}}}</includeonly><noinclude> | ||
+ | {{Documentation}} | ||
+ | </noinclude> |
Revision as of 08:50, 14 October 2011
[edit]
Documentation