Jump to content

Module:High-use: Difference between revisions

m
→‎top: clean up, replaced: Wikipedia: → Bharatpedia:
m (1 revision imported)
m (→‎top: clean up, replaced: Wikipedia: → Bharatpedia:)
 
Line 36: Line 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, or 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
Line 79: Line 79:
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"),
(mw.title.getCurrentTitle().namespace == 828 and "module" or "template"),
title.fullText, title.fullText,
title.fullText, title.fullText,
(mw.title.getCurrentTitle().namespace == 828 and "." or ", or in your own [[Wikipedia:Subpages#How to create user subpages|user subpage]].")
(mw.title.getCurrentTitle().namespace == 828 and "." or ", or in your own [[Bharatpedia:Subpages#How to create user subpages|user subpage]].")
)
)
Bots, trusted
7,437

edits