Jump to content

Module:InterwikiTable/sandbox

From Wikipedia, the free encyclopedia
-------------------------------------------------------------------------
-- 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]] and          --
-- [[Module:UserLinks]]. 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.
--      prefixes = {"w", "wikipedia"},  -- A table of valid interwiki prefixes for the site. See [[Help:Interwiki linking]].
--      titlePath = "/wiki/",           -- The text between the domain name and the project's article titles.
--      takesLangPrefix = true,         -- Whether the project has separate subdomains for different languages, e.g. es.wikipedia.org
--      isWiki = true,                  -- Whether the project is a wiki.
--      indexPath = "/w/index.php"      -- The path from the domain name to index.php, if the site is a wiki.
--  },

interwikiTable = {

------------------------
-- Wikimedia projects --
------------------------

    wikipedia = {
        domain = "wikipedia.org",
        prefixes = {"w", "wikipedia"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wiktionary = {
        domain = "wiktionary.org",
        prefixes = {"wikt", "wiktionary"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikinews = {
        domain = "wikinews.org",
        prefixes = {"n", "wikinews"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikibooks = {
        domain = "wikibooks.org",
        prefixes = {"b", "wikibooks"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikiquote = {
        domain = "wikiquote.org",
        prefixes = {"q", "wikiquote"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikisource = {
        domain = "wikisource.org",
        prefixes = {"s", "wikisource"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikispecies = {
        domain = "species.wikimedia.org",
        prefixes = {"species", "wikispecies"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikiversity = {
        domain = "wikiversity.org",
        prefixes = {"v", "wikiversity"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikivoyage = {
        domain = "wikivoyage.org",
        prefixes = {"voy", "wikivoyage"},
        titlePath = "/wiki/",
        takesLangPrefix = true,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wmf = {
        domain = "wikimediafoundation.org",
        prefixes = {"wmf", "wikimedia", "foundation"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    commons = {
        domain = "commons.wikimedia.org",
        prefixes = {"commons"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikidata = {
        domain = "wikidata.org",
        prefixes = {"d", "wikidata"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    meta = {
        domain = "meta.wikimedia.org",
        prefixes = {"m", "metawikipedia", "meta"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    mediawiki = {
        domain = "mediawiki.org",
        prefixes = {"mw", "mediawikiwiki"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    
------------------------
-- Wikimedia chapters --
------------------------

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

---------------
-- Wikimania --
---------------

    wikimania2005 = {
        domain = "wikimania2005.wikimedia.org",
        prefixes = {"wm2005"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2006 = {
        domain = "wikimania2006.wikimedia.org",
        prefixes = {"wm2006"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2007 = {
        domain = "wikimania2007.wikimedia.org",
        prefixes = {"wm2007"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2008 = {
        domain = "wikimania2008.wikimedia.org",
        prefixes = {"wm2008"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2009 = {
        domain = "wikimania2009.wikimedia.org",
        prefixes = {"wm2009"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2010 = {
        domain = "wikimania2010.wikimedia.org",
        prefixes = {"wm2010"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2011 = {
        domain = "wikimania2011.wikimedia.org",
        prefixes = {"wm2011"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2012 = {
        domain = "wikimania2012.wikimedia.org",
        prefixes = {"wm2012"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2013 = {
        domain = "wikimania2013.wikimedia.org",
        prefixes = {"wm2013", "wmania"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    wikimania2014 = {
        domain = "wikimania2014.wikimedia.org",
        prefixes = {"wm2014"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },

---------------------------
-- Other Wikimedia wikis --
---------------------------

    betawikiversity = {
        domain = "beta.wikiversity.org",
        prefixes = {"betawikiversity"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    outreach = {
        domain = "outreach.wikimedia.org",
        prefixes = {"outreach"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    otrswiki = {
        domain = "otrs-wiki.wikimedia.org",
        prefixes = {"OTRSwiki"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    quality = {
        domain = "quality.wikimedia.org",
        prefixes = {"quality"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    spcom = {
        domain = "spcom.wikimedia.org",
        prefixes = {"spcom"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    spcom = {
        domain = "spcom.wikimedia.org",
        prefixes = {"spcom"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    tswiki = {
        domain = "wiki.toolserver.org",
        prefixes = {"tswiki"},
        titlePath = "/view/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    incubator = {
        domain = "incubator.wikimedia.org",
        prefixes = {"incubator"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    strategy = {
        domain = "strategy.wikimedia.org",
        prefixes = {"strategy"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    rev = {
        domain = "www.mediawiki.org",
        prefixes = {"rev"},
        titlePath = "/wiki/Special:Code/MediaWiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    test = {
        domain = "test.wikipedia.org",
        prefixes = {"testwiki"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },
    test2 = {
        domain = "test2.wikipedia.org",
        prefixes = {"test2wiki"},
        titlePath = "/wiki/",
        takesLangPrefix = false,
        isWiki = true,
        indexPath = "/w/index.php"
    },

------------------------------
-- Wikimedia non-wiki sites --
------------------------------

    bugzilla = {
        domain = "bugzilla.wikimedia.org",
        prefixes = {"bugzilla", "mediazilla"},
        titlePath = "/show_bug.cgi?id=",
        takesLangPrefix = false,
        isWiki = false
    },
    download = {
        domain = "dumps.wikimedia.org",
        prefixes = {"download"},
        titlePath = "/",
        takesLangPrefix = false,
        isWiki = false
    },
    gerrit = {
        domain = "gerrit.wikimedia.org",
        prefixes = {"gerrit"},
        titlePath = "/r/#/c/",
        takesLangPrefix = false,
        isWiki = false
    },
    mail = {
        domain = "lists.wikimedia.org",
        prefixes = {"mail"},
        titlePath = "/mailman/listinfo/",
        takesLangPrefix = false,
        isWiki = false
    },
    mailarchive = {
        domain = "lists.wikimedia.org",
        prefixes = {"mailarchive"},
        titlePath = "/pipermail/",
        takesLangPrefix = false,
        isWiki = false
    },
    otrs = {
        domain = "ticket.wikimedia.org",
        prefixes = {"otrs", "ticket"},
        titlePath = "/otrs/index.pl?Action=AgentTicketZoom&TicketID=",
        takesLangPrefix = false,
        isWiki = false
    },
    toolserver = {
        domain = "toolserver.org",
        prefixes = {"tools"},
        titlePath = "/",
        takesLangPrefix = false,
        isWiki = false
    },
    sulutil = {
        domain = "toolserver.org",
        prefixes = {"sulutil"},
        titlePath = "/~quentinv57/sulinfo/",
        takesLangPrefix = false,
        isWiki = false
    },
    svn = {
        domain = "svn.wikimedia.org",
        prefixes = {"svn"},
        titlePath = "/viewvc/mediawiki/",
        takesLangPrefix = false,
        isWiki = false
    }
}

return interwikiTable