2,873
edits
(Add one extra decimal place to dynamic rounding) |
m (Use autoround instead for rounding) |
||
Line 26: | Line 26: | ||
--return frame:preprocess(str) | --return frame:preprocess(str) | ||
end | end | ||
--- Formats a given string to TitleCase. | --- Formats a given string to TitleCase. | ||
Line 208: | Line 193: | ||
qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name)) | qtyCell:node(getErrorDiv("Unable to parse quantity for item: " .. i.name)) | ||
else | else | ||
local qty = num.autoround(i.amount) | |||
local qty = num. | |||
qtyCell:wikitext(num.formatnum(qty)) | qtyCell:wikitext(num.formatnum(qty)) | ||
end | end |
edits