Module:Maintainers

-- Component information table -- local stewards = { ["core-platform-team"] = { name = "Core Platform Team", },	["performance-team"] = { name = "Performance Team", } } local maintainers = { -- Format: -- [key]: Lowercase component name (used via Template:Component) -- 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-jobqueue"] = { steward = "core-platform-team", phab = "mediawiki-jobqueue", },	["mediawiki-redirects"] = { phab = "mediawiki-redirects", },	["mediawiki-interface"] = { phab = "mediawiki-interface", },	["resourceloader"] = { steward = "performance-team", phab = "mediawiki-resourceloader", },	["navigationtiming"] = { steward = "performance-team", phab = "MediaWiki-extensions-NavigationTiming", },	["cdb"] = { steward = "performance-team", phab = "wikimedia-cdb", },	["wrappedstring"] = { steward = "performance-team", phab = "WrappedString", },	["waitconditionloop"] = { steward = "performance-team", phab = "waitconditionloop", } }

-- Lua methods to access the above information.

local function get_steward_link( key ) local steward = maintainers[ key ] and maintainers[ key ].steward or "?" local link = stewards[ steward ] and stewards[ steward ].name or "?" return link 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