Difference between revisions of "Template:Max/4"
Jump to navigation
Jump to search
imported>Plastikspork m (<includeonly>) |
imported>Jimp (to handle empty or non-numeric inputs) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{max/2|{{max/2|{{{1}}}|{{{2}}}}}|{{max/2|{{{3}}}|{{{4}}}}}}}</includeonly> | + | <includeonly>{{#switch:<!-- |
| + | -->{{#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> | ||