Content deleted Content added
→parameter warnings=true: new section |
|||
Line 77:
* <nowiki>{{Convert/sandboxlua|5|km|mi|warnings=true}}</nowiki> → {{Convert/sandboxlua|5|km|mi|warnings=true}}
* <nowiki>{{Convert/sandboxlua|5|km|mi|warnings=false}}</nowiki> → {{Convert/sandboxlua|5|km|mi|warnings=false}}
* <nowiki>{{Convert/sandboxlua|5|km|mi|foo=true}}</nowiki> → {{Convert/sandboxlua|5|km|mi|foo=true}}
I find this code confusing, because the parameter name "warnings" is used (checked) twice for apparently opposing values
▲I find this code confusing, because the parameter name "warnings" is used (checked) twice for apparently opposing values:
<syntaxhighlight lang="lua">
local function add_warning(parms, mcode, text)
Line 88:
end
end
</syntaxhighlight>
-[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 15:49, 19 September 2013 (UTC)
|