Module:High-use: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Changed protection settings for "Module:High-use": High-risk template or module: 3784 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite)))
(Link to https://linkcount.toolforge.org/ which is more detailed and mobile-friendly)
Line 85: Line 85:
systemMessages = nil
systemMessages = nil
end
end
-- This retrieves the project URL automatically to simplify localiation.
local templateCount = ('on [https://templatecount.toolforge.org/index.php?lang=en&namespace=%s&name=%s %s pages]'):format(
local templateCount = ('on [https://linkcount.toolforge.org/index.php?project=%s&page=%s %s pages]'):format(
mw.title.getCurrentTitle().namespace, mw.uri.encode(title.text), p.num(frame, count))
mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'),
mw.uri.encode(title.fullText), p.num(frame, count))
local used_on_text = "'''This " .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template") .. ' is used ';
local used_on_text = "'''This " .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template") .. ' is used ';
if systemMessages then
if systemMessages then