Difference between revisions of "Module:Extension"

316 bytes removed ,  01:50, 24 June 2020
Undid revision 3925041 by André Costa (WMSE) (talk) Premature, change should not be pushed to module until template change is about to happen
>André Costa (WMSE)
(add mechanism for populating the mediawiki parameter)
>Pppery
(Undid revision 3925041 by André Costa (WMSE) (talk) Premature, change should not be pushed to module until template change is about to happen)
Line 376: Line 376:
end
end
return out
return out
end
function p.getMediawiki( frame )
    if frame.args[1] ~= nil and mw.text.trim(frame.args[1]) ~= "" then
    return frame.args[1]
    end
    local data = getExtData()
    if data ~= nil and data.requires ~= nil and data.requires.MediaWiki ~= nil then
    return data.requires.MediaWiki
    end
    return ''
end
end
function p.unmaintained(frame)
function p.unmaintained(frame)
Anonymous user