Module:High-use: Difference between revisions
Jump to navigation
Jump to search
Link to https://linkcount.toolforge.org/ which is more detailed and mobile-friendly
m (1 revision imported) |
(Link to https://linkcount.toolforge.org/ which is more detailed and mobile-friendly) |
||
Line 85: | Line 85: | ||
systemMessages = nil | systemMessages = nil | ||
end | end | ||
local templateCount = ('on [https:// | -- This retrieves the project URL automatically to simplify localiation. | ||
mw.title.getCurrentTitle(). | local templateCount = ('on [https://linkcount.toolforge.org/index.php?project=%s&page=%s %s pages]'):format( | ||
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 |