Zum Inhalt springen

Modul:High-use: Unterschied zwischen den Versionen

Keine Änderung der Größe ,  vor 3 Jahren
Remove all pages parameter as there should be no need to set that manually
(couple of mistakes)
(Remove all pages parameter as there should be no need to set that manually)
Zeile 34: Zeile 34:
end
end
-- Insert percent of pages
-- Insert percentage of pages if that is likely to be >= 1%
if frame.args["all-pages"] and frame.args["all-pages"] ~= "" then
if count and count > 250000 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, or roughly %s%% of all", return_value, percent)
return_value = string.format("%s pages, or roughly %s%% of all", return_value, percent)
Anonymer Benutzer