<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterwikiTable%2Fdoc</id>
	<title>Module:InterwikiTable/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterwikiTable%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:InterwikiTable/doc&amp;action=history"/>
	<updated>2026-04-05T22:32:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Module:InterwikiTable/doc&amp;diff=13278&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:InterwikiTable/doc&amp;diff=13278&amp;oldid=prev"/>
		<updated>2013-10-31T17:58:42Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a table of sites containing data about the interwiki prefixes of various Wikimedia sites. &lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
The module cannot be accessed directly from #invoke. It should be loaded from another Lua module using &amp;lt;code&amp;gt;mw.loadData&amp;lt;/code&amp;gt;, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local interwiki_table = mw.loadData('Module:InterwikiTable')&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Table fields ==&lt;br /&gt;
&lt;br /&gt;
The table is made up of subtables for each interwiki destination. For example, &amp;lt;code&amp;gt;interwiki_table.limswiki&amp;lt;/code&amp;gt; points to the entry for LIMSwiki. Entries usually correspond to a Wikimedia site, but not always. For example, both the &amp;quot;rev&amp;quot; and &amp;quot;mediawiki&amp;quot; subtables point to mediawiki.org.&lt;br /&gt;
&lt;br /&gt;
Each subtable has five fields:&lt;br /&gt;
* &amp;lt;code&amp;gt;domain&amp;lt;/code&amp;gt; - The base domain name of the website, without any language codes.&lt;br /&gt;
* &amp;lt;code&amp;gt;domain_primary&amp;lt;/code&amp;gt; - Whether this is the primary entry for the domain.&lt;br /&gt;
* &amp;lt;code&amp;gt;iw_prefix&amp;lt;/code&amp;gt; - A table of valid interwiki prefixes for the site. See [[Help:Interwiki linking]].&lt;br /&gt;
* &amp;lt;code&amp;gt;title_prefix&amp;lt;/code&amp;gt; - The text between the domain name and the project's article titles.&lt;br /&gt;
* &amp;lt;code&amp;gt;takes_lang_prefix&amp;lt;/code&amp;gt; - Whether the project has separate subdomains for different languages, e.g. es.wikipedia.org.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;interwiki_table.limswiki.domain&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;quot;limswiki.org&amp;quot;&lt;br /&gt;
* &amp;lt;code&amp;gt;interwiki_table.wikiversity.domain_primary&amp;lt;/code&amp;gt; &amp;amp;rarr; true&lt;br /&gt;
* &amp;lt;code&amp;gt;interwiki_table.mediawiki.iw_prefix[1]&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;quot;mw&amp;quot;&lt;br /&gt;
* &amp;lt;code&amp;gt;interwiki_table.wikibooks.title_prefix&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;quot;/wiki/&amp;quot;&lt;br /&gt;
* &amp;lt;code&amp;gt;interwiki_table.meta.takes_lang_prefix&amp;lt;/code&amp;gt; &amp;amp;rarr; false&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>