Module:InterwikiTable

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

-- Example entry:

-- wikipedia = {                   -- This is a code that you can use to easily identify the project in the table. --     domain = "wikipedia.org",   -- The base domain name of the website, without any language codes. --     iw_prefix = "w",            -- The interwiki prefix the project uses. See Help:Intewiki 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 = {

-- Wikimedia projects --

wikipedia = { domain = "wikipedia.org", iw_prefix = "w", title_prefix = "/wiki/", takes_lang_prefix = true },   wiktionary = { domain = "wiktionary.org", iw_prefix = "wikt", title_prefix = "/wiki/", takes_lang_prefix = true },   wikinews = { domain = "wikinews.org", iw_prefix = "n", title_prefix = "/wiki/", takes_lang_prefix = true },   wikibooks = { domain = "wikibooks.org", iw_prefix = "b", title_prefix = "/wiki/", takes_lang_prefix = true },   wikiquote = { domain = "wikiquote.org", iw_prefix = "q", title_prefix = "/wiki/", takes_lang_prefix = true },   wikisource = { domain = "wikisource.org", iw_prefix = "s", title_prefix = "/wiki/", takes_lang_prefix = true },   wikispecies = { domain = "species.wikimedia.org", iw_prefix = "species", title_prefix = "/wiki/", takes_lang_prefix = false },   wikiversity = { domain = "wikiversity.org", iw_prefix = "v", title_prefix = "/wiki/", takes_lang_prefix = true },   wikivoyage = { domain = "wikivoyage.org", iw_prefix = "voy", title_prefix = "/wiki/", takes_lang_prefix = true },   wmf = { domain = "wikimediafoundation.org", iw_prefix = "wmf", title_prefix = "/wiki/", takes_lang_prefix = false },   commons = { domain = "commons.wikimedia.org", iw_prefix = "commons", title_prefix = "/wiki/", takes_lang_prefix = false },   wikidata = { domain = "wikidata.org", iw_prefix = "d", title_prefix = "/wiki/", takes_lang_prefix = false },   meta = { domain = "meta.wikimedia.org", iw_prefix = "m", title_prefix = "/wiki/", takes_lang_prefix = false },   incubator = { domain = "incubator.wikimedia.org", iw_prefix = "incubator", title_prefix = "/wiki/", takes_lang_prefix = false },   strategy = { domain = "strategy.wikimedia.org", iw_prefix = "strategy", title_prefix = "/wiki/", takes_lang_prefix = false },   mediawiki = { domain = "mediawiki.org", iw_prefix = "mw", title_prefix = "/wiki/", takes_lang_prefix = false },   bugzilla = { domain = "bugzilla.wikimedia.org", iw_prefix = "bugzilla", title_prefix = "/show_bug.cgi?id=", takes_lang_prefix = false },   test = { domain = "test.wikipedia.org", iw_prefix = "testwiki", title_prefix = "/wiki/", takes_lang_prefix = false },

-- Wikimedia chapters --

wmar = { domain = "wikimedia.org.ar", iw_prefix = "wmar", title_prefix = "/wiki/", takes_lang_prefix = false },   wmau = { domain = "wikimedia.org.au", iw_prefix = "wmau", title_prefix = "/wiki/", takes_lang_prefix = false },   wmbe = { domain = "be.wikimedia.org", iw_prefix = "wmbe", title_prefix = "/wiki/", takes_lang_prefix = false },   wmca = { domain = "wikimedia.ca", iw_prefix = "wmca", title_prefix = "/wiki/", takes_lang_prefix = false },   wmde = { domain = "wikimedia.de", iw_prefix = "wmde", title_prefix = "/wiki/", takes_lang_prefix = false },   wmfi = { domain = "fi.wikimedia.org", iw_prefix = "wmfi", title_prefix = "/wiki/", takes_lang_prefix = false },   wmhk = { domain = "wikimedia.hk", iw_prefix = "wmhk", title_prefix = "/index.php/", takes_lang_prefix = false },   wmhu = { domain = "wikimedia.hu", iw_prefix = "wmhu", title_prefix = "/wiki/", takes_lang_prefix = false },   wmin = { domain = "wiki.wikimedia.in", iw_prefix = "wmin", title_prefix = "/", takes_lang_prefix = false },   wmid = { domain = "wikimedia.org.id", iw_prefix = "wmid", title_prefix = "/wiki/", takes_lang_prefix = false },   wmil = { domain = "wikimedia.org.il", iw_prefix = "wmil", title_prefix = "/", takes_lang_prefix = false },   wmit = { domain = "wikimedia.it", iw_prefix = "wmit", title_prefix = "/wiki/", takes_lang_prefix = false },   wmnl = { domain = "nl.wikimedia.org", iw_prefix = "wmnl", title_prefix = "/wiki/", takes_lang_prefix = false },   wmno = { domain = "no.wikimedia.org", iw_prefix = "wmno", title_prefix = "/wiki/", takes_lang_prefix = false },   wmpl = { domain = "pl.wikimedia.org", iw_prefix = "wmpl", title_prefix = "/wiki/", takes_lang_prefix = false },   wmru = { domain = "ru.wikimedia.org", iw_prefix = "wmru", title_prefix = "/wiki/", takes_lang_prefix = false },   wmrs = { domain = "rs.wikimedia.org", iw_prefix = "wmrs", title_prefix = "/wiki/", takes_lang_prefix = false },   wmse = { domain = "se.wikimedia.org", iw_prefix = "wmse", title_prefix = "/wiki/", takes_lang_prefix = false },   wmch = { domain = "wikimedia.ch", iw_prefix = "wmch", title_prefix = "/", takes_lang_prefix = false },   wmtw = { domain = "tw.wikimedia.org", iw_prefix = "wmtw", title_prefix = "/wiki/index.php5/", takes_lang_prefix = false },   wmuk = { domain = "uk.wikimedia.org", iw_prefix = "wmuk", title_prefix = "/wiki/", takes_lang_prefix = false }, }

return interwiki_table