Modul:High-use: Unterschied zwischen den Versionen
Clarification
(Stripped some of the formality and unnecessary verbiage that only takes space, decreasing the likelihood banners will actually be read) |
(Clarification) |
||
Zeile 36: | Zeile 36: | ||
if frame.args["all-pages"] and frame.args["all-pages"] ~= "" then | if frame.args["all-pages"] and frame.args["all-pages"] ~= "" then | ||
local percent = math.floor( ( (count/frame:callParserFunction('NUMBEROFPAGES', 'R') ) * 100) + 0.5) | local percent = math.floor( ( (count/frame:callParserFunction('NUMBEROFPAGES', 'R') ) * 100) + 0.5) | ||
return_value = string.format("%s pages, roughly %s%% of all", return_value, percent) | return_value = string.format("%s pages, or roughly %s%% of all", return_value, percent) | ||
end | end | ||
end | end |