Modul:Transclusion count: Unterschied zwischen den Versionen

Make argument 2 optional
K (move comment)
(Make argument 2 optional)
Zeile 42: Zeile 42:
-- Round and insert "apprxomimately" or "+" when appropriate
-- Round and insert "apprxomimately" or "+" when appropriate
if frame.args[2] == "yes" then
if (frame.args[2] == "yes") or (mw.ustring.sub(frame.args[1],-1) == "+") then
-- Round down
-- Round down
return_value = mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) ) * (10^(f))) .. "+"
return_value = mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) ) * (10^(f))) .. "+"
Anonymer Benutzer