<spanclass="mw-cite-backlink"><ahref="#cite_ref-enabled_0-0">^</a></span><spanclass="reference-text">Handles {{#invoke:Module:Module_name|Function_name|Arguments}} (default is <code>checked</code>)</span>
<ul>
<li>
<spanclass="reference-text"><b>checked</b> to process #invoke statements</span>
</li>
<li>
<spanclass="reference-text"><b>unchecked</b> to render #invoke as text only</span>
<spanclass="mw-cite-backlink"><ahref="#cite_ref-engine_type_1-0">^</a></span><spanclass="reference-text">Select lua engine. See <ahref="http://xowa.org/home/wiki/App/Xtn/Mediawiki/Scribunto.html#Engines"id="xolnki_2"title="App/Xtn/Mediawiki/Scribunto">App/Xtn/Mediawiki/Scribunto#Engines</a> (default is <code>luaj</code>)</span>
<spanclass="reference-text"><b>luaj</b>: lua code will be processed through the <ahref="http://luaj.org/luaj/README.html"rel="nofollow"class="external text">luaj</a> jar at /bin/any/java/luaj/.</span>
</li>
<li>
<spanclass="reference-text"><b>lua</b> : lua code will be processed through the <ahref="http://lua.org/about"rel="nofollow"class="external text">lua</a> binary at /bin/os_name/lua/.</span>
</li>
</ul><spanclass="reference-text"><b>Note for Lua engine users:</b></span>
<ul>
<li>
<spanclass="reference-text"><b>executable permissions</b>: Linux / Mac OS X users may need to grant execute permission to the Lua binary. To ensure proper setup, please do the following:</span>
<spanclass="reference-text">If the page fails, then see <ahref="http://xowa.org/home/wiki/App/Xtn/Mediawiki/Scribunto.html#Permissions"id="xolnki_4"title="App/Xtn/Mediawiki/Scribunto">App/Xtn/Mediawiki/Scribunto#Permissions</a></span>
</li>
</ul>
</li>
<li>
<spanclass="reference-text"><b>NTFS partitions</b>: Linux users with NTFS partitions will need to run a command like the following:</span>
</li>
</ul>
<dl>
<dd>
<spanclass="reference-text"><code>sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever</code></span>
</dd>
<dd>
<spanclass="reference-text">See <ahref="http://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition"rel="nofollow"class="external free">http://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition</a> (Thanks to Anselm)</span>
</dd>
</dl>
</li>
<liid="cite_note-lua_path-2">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-lua_path_2-0">^</a></span><spanclass="reference-text">Path to Lua binary. Only applies to the <code>lua</code>engine.</span>
</li>
<liid="cite_note-lua_log_enabled-3">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-lua_log_enabled_3-0">^</a></span><spanclass="reference-text">Choose one of the following (default is <code>unchecked</code>)</span>
<ul>
<li>
<spanclass="reference-text"><b>checked</b> to output Lua send / recv statements to a log file (/xowa/user/anonymous/app/tmp/log)</span>
</li>
<li>
<spanclass="reference-text"><b>unchecked</b> to output nothing</span>
</li>
</ul>
</li>
<liid="cite_note-lua_timeout-4">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-lua_timeout_4-0">^</a></span><spanclass="reference-text"># of milliseconds before canceling Lua call (default is <code>4000</code>)</span>
</li>
<liid="cite_note-lua_timeout_polling-5">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-lua_timeout_polling_5-0">^</a></span><spanclass="reference-text"># of milliseconds before checking for timeout. (default is <code>1</code>) For example, with a timeout of 4000:</span>
<dl>
<dd>
<spanclass="reference-text">A timeout polling of 1 will check roughly 4000 times before timing out.</span>
</dd>
<dd>
<spanclass="reference-text">A timeout polling of 1000 will check roughly 4 times before timing out.</span>
</dd>
</dl><spanclass="reference-text">This setting should be left at 1. It is meant to "tweak" certain outlier situations should they arise.</span>
</li>
<liid="cite_note-lua_timeout_busy_wait-6">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-lua_timeout_busy_wait_6-0">^</a></span><spanclass="reference-text"># of milliseconds before entering timeout poll (default is <code>250</code>) This setting should be left at 250 (or higher). It is also meant to "tweak" certain outlier situations.<br>
Background:</span>
<ul>
<li>
<spanclass="reference-text">On Windows, a sleep call can take 15 ms. This could potentially cause each Lua call to take 15 ms.</span>
</li>
<li>
<spanclass="reference-text">Some pages / templates will call Lua hundreds of times. (For example: the Weather Box on <ahref="http://en.wikipedia.org/wiki/Aruba"rel="nofollow"class="external free">http://en.wikipedia.org/wiki/Aruba</a> or the Citations on <ahref="http://en.wikipedia.org/wiki/Earth"rel="nofollow"class="external free">http://en.wikipedia.org/wiki/Earth</a> )</span>
</li>
<li>
<spanclass="reference-text">The busy wait is a primitive way to limit a wait to 1 ms (or less) before entering a more expensive sleep</span>
</li>
<li>
<spanclass="reference-text">A higher timeout busy wait value is more performant, but the disadvantage is that the UI will be locked up for longer</span>
</li>
</ul>
<dl>
<dd>
<spanclass="reference-text">For example, a busy wait of 250 means that the code will loop for 250 milliseconds before entering a sleep.</span>
</dd>
<dd>
<spanclass="reference-text">For sub-second values, this freezing will be unnoticeable</span>
</dd>
</dl><spanclass="reference-text">For reference, here is the corresponding code</span>
<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/ -->