Module:High-use: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump 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:// |
local templateCount = ('on [https://linkcount.toolforge.org/index.php?project=%s&page=%s %s pages]'):format( |
||
⚫ | |||
mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'), |
|||
⚫ | |||
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 |