Difference between revisions of "Module:Extension"

Jump to navigation Jump to search
106 bytes added ,  20:52, 24 May 2020
Respect templatemode=nocats in automatic unmaintained box
>Pppery
(Add a function to check whether an extension is hosted in Gerrit, to be used by Template:Unmaintained extension)
>Pppery
(Respect templatemode=nocats in automatic unmaintained box)
Line 367: Line 367:
if not content:find("{{[uU]nmaintained extension") and not content:find("{{TNT|[uU]nmaintained extension")  
if not content:find("{{[uU]nmaintained extension") and not content:find("{{TNT|[uU]nmaintained extension")  
and not content:find("{{User:Jeroen[ _]De[ _]Dauw/unmaintained") then
and not content:find("{{User:Jeroen[ _]De[ _]Dauw/unmaintained") then
return frame:expandTemplate{title="Unmaintained extension",args={}}
local args = {}
if frame:getParent().args.templatemode == "nocats" then
args.nocat = "yes"
end
return frame:expandTemplate{title="Unmaintained extension",args=args}
end
end
end
end
Anonymous user

Navigation menu