Module:InterwikiTable

- -- This is a table of sites that are available through interwiki links -- -- from Gratispaideia. It can be accessed from Lua via the mw.loadData  -- -- function. It is currently used in Module:UrlToWiki and         -- -- Module:UserLinks. Feel free to add to its functionality and to -- -- include new sites. -- -

-- Example entry:

-- graispaideia = {                            -- This is a code that you can use to easily identify the project in the table. --     domain            = "miraheze.org",     -- The base domain name of the website, without any language codes or subdomain. (As at now, gratispaideia is currently using miraheze's subdomain) --     domain_primary    = true                -- Whether this is the primary entry for the domain. --     iw_prefix         = {"gp", "gratispaideia"}, -- A table of valid interwiki prefixes for the site. See w:Help:Interwiki linking. --     title_prefix      = "/wiki/",           -- The text between the domain name and the project's article titles. --     takes_lang_prefix = true                -- Whether the project has separate subdomains for different languages, e.g. es.wikipedia.org -- },

interwiki_table = {

-- Graispaideia projects --

gratispaideia = { domain           = "gratispaideia.miraheze.org", domain_primary   = true, iw_prefix        = {"gp", "gratispaideia"}, title_prefix     = "/wiki/", takes_lang_prefix = false },   gratisdata = { domain           = "gratisdata.miraheze.org", domain_primary   = true, iw_prefix        = {"d", "gratisdata"}, title_prefix     = "/wiki/", takes_lang_prefix = false }, --- -- General Miraheze projects -- ---

commons = { domain           = "commons.miraheze.org", domain_primary   = true, iw_prefix        = {"c", "commons"}, title_prefix     = "/wiki/", takes_lang_prefix = false },   meta = { domain = "meta.miraheze.org", domain_primary   = true, iw_prefix        = {"m", "meta", "metawiki"}, title_prefix     = "/wiki/", takes_lang_prefix = false },   mediawiki = { domain = "mediawiki.org", domain_primary   = true, iw_prefix        = {"mw", "mediawikiwiki"}, title_prefix     = "/wiki/", takes_lang_prefix = false },

--- -- Other Miraheze wikis -- ---

test = { domain           = "publictestwiki.com", domain_primary   = true, iw_prefix        = {"testwiki"}, title_prefix     = "/wiki/", takes_lang_prefix = false },   test3 = { domain           = "test3.miraheze.org", domain_primary   = true, iw_prefix        = {"test3wiki"}, title_prefix     = "/wiki/", takes_lang_prefix = false },

-- -- Miraheze non-wiki sites -- --

blog = { domain           = "blog.miraheze.org", domain_primary   = true, iw_prefix        = {"mhlblog", "mirahezeblog"}, title_prefix     = "/", takes_lang_prefix = false },   phabricator = { domain           = "phabricator.miraheze.org", domain_primary   = true, iw_prefix        = {"phabricator", "phab"}, title_prefix     = "/", takes_lang_prefix = false } } return interwiki_table