Difference between revisions of "Module:Extension"

348 bytes added ,  22:27, 21 May 2020
Adding logic to automatically add {{unmaintained extension}} to extension pages that have status=unmaintained but lack the template
>Pppery
(Allow repository name to be passed as a parameter to Template:Extension, useful for extensions whose repo has a different name than the page on MediaWiki.org, like Extension:StructuredDiscussions)
>Pppery
(Adding logic to automatically add {{unmaintained extension}} to extension pages that have status=unmaintained but lack the template)
Line 362: Line 362:
end
end
return out
return out
end
function p.unmaintained(frame)
local content = mw.title.getCurrentTitle():getContent()
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
return frame:expandTemplate{title="Unmaintained extension",args={}}
end
end
end
function p.maintenanceLinks(frame)
function p.maintenanceLinks(frame)
Anonymous user