Module:High-use: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(couple of mistakes) |
(Remove all pages parameter as there should be no need to set that manually) |
||
Line 34: | Line 34: | ||
end |
end |
||
-- Insert |
-- Insert percentage of pages if that is likely to be >= 1% |
||
if |
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) |