Module:Progression rainbow/sandbox: Difference between revisions

Content deleted Content added
wee
remove a couple tostrings
Line 14:
 
local function class_percent(param, total)
return string.format('%sf %%', tostring(round(100 * param / total)))
end
 
Line 20:
local remaining = sum - total
if remaining > 0 then
return string.format('%sf %%', tostring(round(-100 * remaining / total)))
else
return nil
Line 28:
local function category_count(category, project)
return mw.site.stats.pagesInCategory(
-- specious use of string.format
string.format('%s %s articles', category, project),
'pages'