Difference between revisions of "Template:Max/4"

From blackwiki
Jump to navigation Jump to search
imported>Jimp
(to handle empty or non-numeric inputs)
imported>Dragons flight
(With Lua, one template does all)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#switch:<!--
+
#redirect [[Template:Max]]
-->{{#iferror:{{#expr:{{{1|}}}*1}}|0|1}}<!--
 
-->{{#iferror:{{#expr:{{{2|}}}*1}}|0|1}}<!--
 
-->{{#iferror:{{#expr:{{{3|}}}*1}}|0|1}}<!--
 
-->{{#iferror:{{#expr:{{{4|}}}*1}}|0|1}}
 
|1111={{max/2|{{max/2|{{{1}}}|{{{2}}}}}|{{max/2|{{{3}}}|{{{4}}}}}}}
 
|1110={{max/3|{{{1}}}|{{{2}}}|{{{3}}}}}
 
|1100={{max/2|{{{1}}}|{{{2}}}}}
 
|1000={{{1}}}
 
|1101={{max/3|{{{1}}}|{{{2}}}|{{{4}}}}}
 
|1011={{max/3|{{{1}}}|{{{3}}}|{{{4}}}}}
 
|0111={{max/3|{{{2}}}|{{{3}}}|{{{4}}}}}
 
|1010={{max/2|{{{1}}}|{{{3}}}}}
 
|1001={{max/2|{{{1}}}|{{{4}}}}}
 
|0110={{max/2|{{{2}}}|{{{3}}}}}
 
|0101={{max/2|{{{2}}}|{{{4}}}}}
 
|0011={{max/2|{{{3}}}|{{{4}}}}}
 
|0100={{{2}}}
 
|0010={{{3}}}
 
|0001={{{4}}}
 
}}</includeonly>
 

Latest revision as of 04:12, 22 February 2013

Redirect to: