Template:Min: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
code like max
meta>Dragons flight
going ahead and switching min to Lua version. Less widely used that max, so if there is a problem won't have as much of an impact.
Line 1: Line 1:
<includeonly>{{#expr:{{#switch:<!--
<includeonly>{{#invoke:Math|min}}</includeonly><noinclude>
-->{{#iferror:{{#expr:({{{1|}}})*1}}|0|1}}<!--
-->{{#iferror:{{#expr:({{{2|}}})*1}}|0|1}}<!--
-->{{#iferror:{{#expr:({{{3|}}})*1}}|0|1}}
|111={{min/3|({{{1}}})|({{{2}}})|({{{3}}})}}
|110={{min/2|({{{1}}})|({{{2}}})}}
|100={{{1}}}
|101={{min/2|({{{1}}})|({{{3}}})}}
|011={{min/2|({{{2}}})|({{{3}}})}}
|010={{{2}}}
|001={{{3}}}
}}}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 02:26, 22 February 2013