Difference between revisions of "Template:Max"

From Self-sufficiency
Jump to: navigation, search
m (1 revision)
m (1 revision)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#expr:{{#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>{{pp-template|small=yes}}
+
<includeonly>{{#expr:{{#switch:<!--
{{Documentation, template}}</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>

Latest revision as of 13:55, 10 December 2011