![]() |
Template:Min is permanently
protected from editing because it is a
heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's
documentation to add usage notes or
categories.
Any contributor may edit the template's sandbox. This template does not have a testcases subpage. You can create the testcases subpage here. |
There are no records of vandalism. Semi-protection should be sufficient. This stops normal users who want to make changes unable to do so! >.< -- Jutiphan 18:14, 24 December 2006 (UTC)
En wiki just love to protect everything.. ~>< Somebody please add interwiki link: th:แม่แบบ:Min Thanks -- Jutiphan 01:08, 15 January 2007 (UTC)
{{ editprotected}}
Please add {{pp-template|small=yes}}. Thanks. Rocket000 21:27, 16 October 2007 (UTC)
{{
editprotected}}
Can you replace {{
Min/doc}} to {{
Documentation}} in <noinclude> tag? Thanks. --
fryed-peach (
talk)
18:41, 13 July 2008 (UTC)
I've created a Lua implementation that allows for arbitrary number of parameters:
If one wants to ensure that expression such as 4*41 and 600+30 are evaluated correctly (as is the current practice), then they need to be wrapped in {{#expr: }}
So it should be possible to replace the current template with:
Which will duplicate current functionality, or add additional parameters to extend functionality.
Test Cases:
Test | {{min}} | {{min/sandbox}} |
---|---|---|
{{min}} | ||
{{min|}} | ||
{{min|-7}} | -7 | -7 |
{{min|-7|}} | -7 | -7 |
{{min|7|-5}} | -5 | -5 |
{{min|7|-5|}} | -5 | -5 |
{{min|7|-5|-8}} | -8 | -8 |
{{min|40*41|300+30}} | 330 | 330 |
{{min|100+10|300+30|200+20}} | 110 | 110 |
If people know of other edge cases, I would welcome additional testing. Dragons flight ( talk) 17:24, 21 February 2013 (UTC)