Module:Maintainers

-- Component information table -- local maintainers = { -- Format: -- [key]: Lowercase component name -- doc_page: Wiki page name on mediawiki.org. (optional) -- steward: Name of team holding the component's stewardship, linked. (optional) -- phab: Name of Phabricator tag. (optional) ["mediawiki-api"] = { steward = "Core Platform Team", phab = "mediawiki-api", },	["mediawiki-redirects"] = { phab = "mediawiki-redirects", },	["resourceloader"] = { steward = "Performance Team", phab = "mediawiki-resourceloader", } }

-- Lua methods to access the above information.

local function get_steward_link( key ) return maintainers[ key ] and maintainers[ key ].steward or "?" end

-- Exported lua module

local p = {} function p.link_stewardship( frame ) local key = string.lower( frame.args[1] ) return get_steward_link( key ) end function p.link_issues( frame ) local key = string.lower( frame.args[1] ) local phab = maintainers[ key ] and maintainers[ key ].phab if phab then return "[https://phabricator.wikimedia.org/tag/" .. mw.uri.encode( phab ) .. "/ Phabricator]" end return "" end function p.info( frame ) local key = string.lower( frame.args[1] ) local line = "* Maintained by " .. get_steward_link( key ) .. "."	local phab = maintainers[ key ] and maintainers[ key ].phab if phab then line = line .. "\n* Issue tracker: [https://phabricator.wikimedia.org/tag/" .. mw.uri.encode( phab ) .. "/ Phabricator]" .. " (mw.uri.encode( phab )			.. " Report an issue)" end return line end return p