In /xowa/bin/any/xowa/cfg/wiki/api/, each folder has a sample file that can be used for a wiki. To use it do the following:
</p>
<ul>
<li>
Copy the "-sample.csv" file
</li>
<li>
Replace the "-sample" to the name of the wiki. For example, for nethackwiki.com, rename the file to "extensiontags-nethackwiki.com.csv". For English Wikipedia, use "extensiontags-en.wikipedia.org.csv"
</li>
<li>
Import the wiki. XOWA will use the data in the file when creating the wiki
</li>
</ul>
<p>
This data gets stored in the main ".xowa" database in the xowa_cfg table. For example, run the following SQL: SELECT * FROM xowa_cfg WHERE cfg_key = 'extensiontags';
</p>
<p>
The remainder of this article documents the purpose of each file.
The "extensiontags" file lists active extensions. For example, to enable only <ref> and <references>, use the following two lines:
</p>
<pre>
ref
references
</pre>
<p>
All other extension tags will be disabled. For example, <math> will show up as just <math> LaTeX source instead of being replaced with graphical equations
The main purpose of this functionality is to disable extensions in some wikis. For example, the <do> extension is only active in the Wikivoyage wiki. Otherwise, English Wikipedia has an article called <ahref="https://en.wikipedia.org/wiki/Type_system"rel="nofollow"class="external text">Type system</a> which will render incorrectly with the following fragment:
The "interwikimap" file lists active interwiki prefixes. For example, to enable only the interwiki prefix for commons, use the following:
</p>
<pre>
commons|https://commons.wikimedia.org/wiki/~{0}
</pre>
<p>
This will convert [[commons:Earth]] to a link to <ahref="https://commons.wikipedia.org/wiki/Earth"rel="nofollow"class="external free">https://commons.wikipedia.org/wiki/Earth</a>
<li><ahref="http://dumps.wikimedia.org/backup-index.html"title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
<li><ahref="https://archive.org/search.php?query=xowa"title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
<li><ahref="http://en.wikipedia.org"title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
</ul>
</div>
</div>
<divclass="portal"id='xowa-portal-donate'>
<h3>Donate</h3>
<divclass="body">
<ul>
<li><ahref="https://archive.org/donate/index.php"title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->