Difference between revisions of "Module:Extension"
Jump to navigation
Jump to search
add mechanism for populating the mediawiki parameter
>Tacsipacsi (manifest version 1 uses a special _prefix key in the config object, not a config_prefix key in the root object, to set the config key prefix) |
>André Costa (WMSE) (add mechanism for populating the mediawiki parameter) |
||
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) |