Difference between revisions of "Module:Extension"

Jump to navigation Jump to search
667 bytes added ,  22:16, 5 May 2020
Undid revision 3826428 by Pppery (talk)
>Pppery
(Undid revision 3826387 by Pppery (talk))
>Pppery
(Undid revision 3826428 by Pppery (talk))
Line 356: Line 356:
end
end
return out
return out
end
function p.maintenanceLinks(frame)
local base = frame:expandTemplate{title="translatable"}
if base == mw.title.getCurrentTitle().prefixedText then
return
end
local out = ""
local content = mw.title.new(base):getContent()
-- Check if the source page was deleted or not
if content:find("{{[aA]rchived ?[Ee]xtension") or content:find("{{TNT|[Aa]rchived ?[Ee]xtension") then
return "<span style='display:none'>[[Template:Extension/archived]]</span>"
--Check if the source page was archived or not
elseif content:find("{{[dD]eleted extension security warning") then
return "<span style='display:none'>[[Template:Extension/vulnerabilities]]</span>"
end
end
end
return p
return p
Anonymous user

Navigation menu