Difference between revisions of "Module:Extension"

No change in size ,  04:54, 6 January 2021
Fix comments
>Pppery
(Support skins too)
>Pppery
(Fix comments)
Line 397: Line 397:
local out = ""
local out = ""
local content = mw.title.new(base):getContent()
local content = mw.title.new(base):getContent()
-- Check if the source page was deleted or not
-- Check if the source page was archived or not
if content:find("{{[aA]rchived ?[Ee]xtension") or content:find("{{TNT|[Aa]rchived ?[Ee]xtension") then
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>"
return "<span style='display:none'>[[Template:Extension/archived]]</span>"
--Check if the source page was archived or not
--Check if the source page was deleted or not
elseif content:find("{{[dD]eleted extension security warning") then
elseif content:find("{{[dD]eleted extension security warning") then
return "<span style='display:none'>[[Template:Extension/vulnerabilities]]</span>"
return "<span style='display:none'>[[Template:Extension/vulnerabilities]]</span>"
Anonymous user