Difference between revisions of "Module:Extension"
Jump to navigation
Jump to search
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 |