<spanclass='xoimg_btn_x16 xoimg_help_tip'href='javascript:void(0)'onclick='return xo.help.toggle("xowa.addon.scribunto.enabled")'title='view more info'> </span>
<spanclass='xoimg_btn_x16 xoimg_list_undo'onclick='return xo.cfg_edit.delete__send("xowa.addon.scribunto.enabled")'title="reset to "y""> </span>
<li><b>unchecked</b> to render #invoke as text only
</li>
</ul>
</div>
</div>
<divclass="xocfg_row flex_div">
<!-- BTN:help_item -->
<divclass='xocfg_itm_help'>
<spanclass='xoimg_btn_x16 xoimg_help_tip'href='javascript:void(0)'onclick='return xo.help.toggle("xowa.addon.scribunto.engine")'title='view more info'> </span>
<spanclass='xoimg_btn_x16 xoimg_list_undo'onclick='return xo.cfg_edit.delete__send("xowa.addon.scribunto.engine")'title="reset to "luaj""> </span>
<divid='xowa.addon.scribunto.engine_help_msg'class='xohelp_msg'><p>Select lua engine. See <ahref="/wiki/App/Xtn/Mediawiki/Scribunto#Engines"id="xolnki_29"title="App/Xtn/Mediawiki/Scribunto"tabindex="-1">App/Xtn/Mediawiki/Scribunto#Engines</a>
</p>
<ul>
<li><b>luaj</b>: lua code will be processed through the <ahref="http://luaj.org/luaj/README.html"rel="nofollow"class="external text"tabindex="-1">luaj</a> jar at /bin/any/java/luaj/.
</li>
<li><b>lua</b> : lua code will be processed through the <ahref="http://lua.org/about"rel="nofollow"class="external text"tabindex="-1">lua</a> binary at /bin/os_name/lua/.
</li>
</ul>
<p><b>Note for Lua engine users:</b>
</p>
<ul>
<li><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:
<ul>
<li> Open <ahref="/wiki/Diagnostics/Scribunto/All"id="xolnki_30"title="Diagnostics/Scribunto/All"class="xowa-visited"tabindex="-1">Diagnostics/Scribunto/All</a>
</li>
<li> If the page fails, then see <ahref="/wiki/App/Xtn/Mediawiki/Scribunto#Permissions"id="xolnki_31"title="App/Xtn/Mediawiki/Scribunto"tabindex="-1">App/Xtn/Mediawiki/Scribunto#Permissions</a>
</li>
</ul>
</li>
<li><b>NTFS partitions</b>: Linux users with NTFS partitions will need to run a command like the following:
</li>
</ul>
<dl>
<dd><code>sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever</code>
</dd>
<dd> See <ahref="http://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition"rel="nofollow"class="external free"tabindex="-1">http://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition</a> (Thanks to Anselm)
</dd>
</dl>
</div>
</div>
<h2>Lua options</h2>
<divclass="xocfg_row flex_div">
<!-- BTN:help_item -->
<divclass='xocfg_itm_help'>
<spanclass='xoimg_btn_x16 xoimg_help_tip'href='javascript:void(0)'onclick='return xo.help.toggle("xowa.addon.scribunto.lua.cmd")'title='view more info'> </span>
<spanclass='xoimg_btn_x16 xoimg_list_undo'onclick='return xo.cfg_edit.delete__send("xowa.addon.scribunto.lua.cmd")'title="reset to "~{<>bin_plat_dir<>}lua\lua5.1.exe|""> </span>
<divid='xowa.addon.scribunto.lua.cmd_help_msg'class='xohelp_msg'><p>Path to Lua binary. Only applies to the <code>lua</code>engine.
</p>
</div>
</div>
<divclass="xocfg_row flex_div">
<!-- BTN:help_item -->
<divclass='xocfg_itm_help'>
<spanclass='xoimg_btn_x16 xoimg_help_tip'href='javascript:void(0)'onclick='return xo.help.toggle("xowa.addon.scribunto.lua.timeout")'title='view more info'> </span>
<spanclass='xoimg_btn_x16 xoimg_list_undo'onclick='return xo.cfg_edit.delete__send("xowa.addon.scribunto.lua.timeout")'title="reset to "4000""> </span>
<divid='xowa.addon.scribunto.lua.timeout_help_msg'class='xohelp_msg'><p># of milliseconds before canceling Lua call
</p>
</div>
</div>
<divclass="xocfg_row flex_div">
<!-- BTN:help_item -->
<divclass='xocfg_itm_help'>
<spanclass='xoimg_btn_x16 xoimg_help_tip'href='javascript:void(0)'onclick='return xo.help.toggle("xowa.addon.scribunto.lua.timeout_polling")'title='view more info'> </span>
<spanclass='xoimg_btn_x16 xoimg_list_undo'onclick='return xo.cfg_edit.delete__send("xowa.addon.scribunto.lua.timeout_polling")'title="reset to "1""> </span>
<divid='xowa.addon.scribunto.lua.timeout_polling_help_msg'class='xohelp_msg'><p># of milliseconds before checking for timeout.
For example, with a timeout of 4000:
</p>
<dl>
<dd> A timeout polling of 1 will check roughly 4000 times before timing out.
</dd>
<dd> A timeout polling of 1000 will check roughly 4 times before timing out.
</dd>
</dl>
<p>This setting should be left at 1. It is meant to "tweak" certain outlier situations should they arise.
</p>
</div>
</div>
<divclass="xocfg_row flex_div">
<!-- BTN:help_item -->
<divclass='xocfg_itm_help'>
<spanclass='xoimg_btn_x16 xoimg_help_tip'href='javascript:void(0)'onclick='return xo.help.toggle("xowa.addon.scribunto.lua.timeout_busy_wait")'title='view more info'> </span>
<spanclass='xoimg_btn_x16 xoimg_list_undo'onclick='return xo.cfg_edit.delete__send("xowa.addon.scribunto.lua.timeout_busy_wait")'title="reset to "250""> </span>
<divid='xowa.addon.scribunto.lua.timeout_busy_wait_help_msg'class='xohelp_msg'><p># of milliseconds before entering timeout poll
This setting should be left at 250 (or higher). It is also meant to "tweak" certain outlier situations.
<br/>
Background:
</p>
<ul>
<li> On Windows, a sleep call can take 15 ms. This could potentially cause each Lua call to take 15 ms.
</li>
<li> Some pages / templates will call Lua hundreds of times. (For example: the Weather Box on <ahref="/site/en.wikipedia.org/wiki/Aruba"tabindex="-1">http://en.wikipedia.org/wiki/Aruba</a> or the Citations on <ahref="/site/en.wikipedia.org/wiki/Earth"tabindex="-1">http://en.wikipedia.org/wiki/Earth</a> )
</li>
<li> The busy wait is a primitive way to limit a wait to 1 ms (or less) before entering a more expensive sleep
</li>
<li> A higher timeout busy wait value is more performant, but the disadvantage is that the UI will be locked up for longer
</li>
</ul>
<dl>
<dd> For example, a busy wait of 250 means that the code will loop for 250 milliseconds before entering a sleep.
</dd>
<dd> For sub-second values, this freezing will be unnoticeable
<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/ -->