This page provides options for Popups. Note that configuration changes will apply automatically to new tabs and new pages. However, any currently loaded pages must be reloaded to pick up the new configuration change.
</p>
<p>
You can also test your configuration changes by hovering over this link: <ahref="http://xowa.org/home/wiki/Main_Page.html"id="xolnki_2"title="Main Page"class="xowa-visited">XOWA Main Page</a>.
</p>
<p>
For more infomation, visit the <ahref="http://xowa.org/home/wiki/App/Xtn/Html/Popups.html"id="xolnki_3"title="App/Xtn/Html/Popups"class="xowa-visited">Popups help page</a>
Number of words to show for "more": <supid="cite_ref-show_more_word_count_2-0"class="reference"><ahref="#cite_note-show_more_word_count-2">[3]</a></sup>
Automatically show "all" if page is less than: <supid="cite_ref-show_all_if_less_than_3-0"class="reference"><ahref="#cite_note-show_all_if_less_than-3">[4]</a></sup>
Maximum width of window when "show all": <supid="cite_ref-win_show_all_max_w_11-0"class="reference"><ahref="#cite_note-win_show_all_max_w-11">[12]</a></sup>
Ignore HTML elements with the following ids: <supid="cite_ref-xnde_ignore_ids_16-0"class="reference"><ahref="#cite_note-xnde_ignore_ids-16">[17]</a></sup>
Popup HTML format default: <supid="cite_ref-html_fmtr_popup_19-0"class="reference"><ahref="#cite_note-html_fmtr_popup-19">[20]</a></sup>
</td>
</tr>
</table>
<h2>
<spanclass="mw-headline"id="Notes">Notes</span>
</h2>
<olclass="references">
<liid="cite_note-enabled-0">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-enabled_0-0">^</a></span><spanclass="reference-text">Controls popup functionality (default is <code>checked</code>)</span>
<ul>
<li>
<spanclass="reference-text"><b>checked</b> to show popups when hovering over links</span>
</li>
<li>
<spanclass="reference-text"><b>unchecked</b> to not show popups when hovering over links</span>
</li>
</ul>
</li>
<liid="cite_note-show_init_word_count-1">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-show_init_word_count_1-0">^</a></span><spanclass="reference-text">Number of words to show in popup (default is <code>128</code>)<br>
</span>
<ul>
<li>
<spanclass="reference-text">For slower machines, decrease the number of words to 32. Note that the number must be greater than 0.</span>
</li>
<li>
<spanclass="reference-text">For faster machines, increase the number of words as per your liking.</span>
</li>
</ul>
</li>
<liid="cite_note-show_more_word_count-2">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-show_more_word_count_2-0">^</a></span><spanclass="reference-text">Number of additional words to show when "show more" is clicked (default is <code>192</code>)<br>
</span>
<ul>
<li>
<spanclass="reference-text">For slower machines, decrease the number of words to 32. Note that the number must be greater than 0.</span>
</li>
<li>
<spanclass="reference-text">For faster machines, increase the number of words as per your liking.</span>
</li>
</ul>
</li>
<liid="cite_note-show_all_if_less_than-3">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-show_all_if_less_than_3-0">^</a></span><spanclass="reference-text">Automatically show the entire article if article is less than these number of bytes (default is <code>-1</code>) (recommended is <code>4096</code>)<br>
This feature is intended for small articles whose entire text...</span>
<ul>
<li>
<spanclass="reference-text">Will always be parsed quickly</span>
</li>
<li>
<spanclass="reference-text">Will generally show in one window without a horizontal scroll bar.</span>
</li>
</ul><spanclass="reference-text">It allows a complete preview of small articles without having to click "more" or "all"<br>
To deactivate this feature, set the number to -1</span>
</li>
<liid="cite_note-read_til_stop_fwd-4">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-read_til_stop_fwd_4-0">^</a></span><spanclass="reference-text">Number of extra words to read forward to look for a header (default is <code>32</code>)<br>
This option tries to stop the popup text right before a header.</span>
<ul>
<li>
<spanclass="reference-text">the advantage is that the popup will not stop a few words short of the header</span>
</li>
<li>
<spanclass="reference-text">the disadvantage is that the size of the popup is irregular. i.e.: sometimes it returns 128 words, sometimes 140, sometimes 150, etc<br>
</span>
</li>
</ul><spanclass="reference-text">To deactivate this option, set it to -1.<br>
Technical details follow.</span>
<hr>
<spanclass="reference-text">The approach works in the following manner:</span>
<ul>
<li>
<spanclass="reference-text">Reads forward an additional # of words</span>
</li>
<li>
<spanclass="reference-text">If a header is found within the # of words, it extends the popup text to the last word before the header</span>
</li>
<li>
<spanclass="reference-text">If a header is not found, it returns the original # of words</span>
<spanclass="reference-text">Show-init is set to 5</span>
</li>
<li>
<spanclass="reference-text">Read-fwd is set to 4</span>
</li>
<li>
<spanclass="reference-text">The initial number of words is read and collects 5 words: <code>01 02 03 04 05</code></span>
</li>
<li>
<spanclass="reference-text">The parser then reads forward 4 more words: <code>06 07 ==08== 09</code></span>
</li>
<li>
<spanclass="reference-text">It finds a header at <code>==08==</code></span>
</li>
<li>
<spanclass="reference-text">It then extends the selction to the word just before the header: <code>01 02 03 04 05 06 07</code></span>
</li>
<li>
<spanclass="reference-text">Note that if <code>==08==</code> was just <code>08</code>, then it would just have returned the original: <code>01 02 03 04 05</code></span>
</li>
</ul>
</li>
<liid="cite_note-read_til_stop_bwd-5">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-read_til_stop_bwd_5-0">^</a></span><spanclass="reference-text">Number of words to read backward to remove header at end (default is <code>16</code>)<br>
This option tries to stop a header from appearing at the end of the popup text.</span>
<ul>
<li>
<spanclass="reference-text">the advantage is that a popup will not end at a header with just a few words after it.</span>
</li>
<li>
<spanclass="reference-text">the disadvantage is that sometimes the number of words returned will be less originally requested. i.e.: 128 was requested, but only 112 is returned</span>
</li>
</ul><spanclass="reference-text">To deactivate this option, set it to -1<br>
Technical details follow.</span>
<hr>
<spanclass="reference-text">The approach works in the following manner:</span>
<ul>
<li>
<spanclass="reference-text">Reads backwards a # of words from the end of the popup</span>
</li>
<li>
<spanclass="reference-text">If a header is found within the # of words, it truncates the output to the text before the header</span>
</li>
<li>
<spanclass="reference-text">If a header is not found, it returns the original # of words</span>
<spanclass="reference-text">It finds a header at <code>==08==</code></span>
</li>
<li>
<spanclass="reference-text">It then truncates the popup to the word just before the header: <code>01 02 03 04 05 06 07</code></span>
</li>
<li>
<spanclass="reference-text">Note that if <code>==08==</code> was just <code>08</code>, then it would just have returned the original: <code>01 02 03 04 05 06 07 08 09</code></span>
</li>
</ul>
</li>
<liid="cite_note-stop_if_hdr_after-6">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-stop_if_hdr_after_6-0">^</a></span><spanclass="reference-text">Stops reading if a header is found after # of words (default is <code>96</code>)<br>
This option will stop reading if a header is found after the # of words. It is useful for increasing the probability that a popup will end at a header.</span>
<ul>
<li>
<spanclass="reference-text">the advantage is that a popup can be made to stop at a header. If you never want the popup to show a header, set the value to 1.</span>
</li>
<li>
<spanclass="reference-text">the disadvantage is that sometimes the number of words returned will be less originally requested. i.e.: 128 was requested, but only 96 is returned</span>
</li>
</ul><spanclass="reference-text">To deactivate this option, set it to -1. This will always show as much content as possible<br>
Technical details follow.</span>
<hr>
<spanclass="reference-text">The following is a simplified example:</span>
<spanclass="reference-text">Once it finds a header, it checks if it is greater than stop-hdr</span>
<ul>
<li>
<spanclass="reference-text"><code>==06==</code> is found, but it is less than 8. The parser continues.</span>
</li>
<li>
<spanclass="reference-text"><code>==10==</code> is found, and it is greater than 8. The parser stops there and returns <code>01 02 03 04 05 ==06== 07 08 09</code></span>
</li>
</ul>
</li>
</ul><spanclass="reference-text">Note the following variations:</span>
<ul>
<li>
<spanclass="reference-text">If stop-hdr was set to 1, then it would have stopped at <code>==06==</code> and returned <code>01 02 03 04 05</code></span>
</li>
<li>
<spanclass="reference-text">If stop-hdr was set to 14, then it would have returned the entire text: <code>01 02 03 04 05 ==06== 07 08 09 ==10== 11 12 13 14 15 16</code></span>
</li>
</ul><spanclass="reference-text">Note that the the read-bwd setting is still applied after the stop-hdr setting.</span>
</li>
<liid="cite_note-win_show_delay-7">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-win_show_delay_7-0">^</a></span><spanclass="reference-text">Number of milliseconds to wait before showing popup (default is <code>600</code>)<br>
</span>
<ul>
<li>
<spanclass="reference-text">A higher number prevents accidental hovers over links while moving the mouse / scrolling the page</span>
</li>
<li>
<spanclass="reference-text">A lower number allows faster popup display</span>
</li>
</ul><spanclass="reference-text">Note that popup data will only be retrieved after the popup starts showing. For example:</span>
<ul>
<li>
<spanclass="reference-text">If the show delay is set to 2 seconds</span>
</li>
<li>
<spanclass="reference-text">and a popup takes 1 second to retrieve the html</span>
</li>
<li>
<spanclass="reference-text">then the total time till the popup is visible is 3 seconds, not 2 (2 seconds to wait before showing + 1 second to retrieve data)</span>
</li>
</ul>
</li>
<liid="cite_note-win_hide_delay-8">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-win_hide_delay_8-0">^</a></span><spanclass="reference-text">Number of milliseconds to wait before hiding popup (default is <code>600</code>)<br>
</span>
<ul>
<li>
<spanclass="reference-text">A higher number allows the popup to linger longer on the screen before disappearing.</span>
</li>
<li>
<spanclass="reference-text">A lower number hides the popup faster</span>
</li>
</ul>
</li>
<liid="cite_note-win_max_w-9">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-win_max_w_9-0">^</a></span><spanclass="reference-text">Maximum width of popup in pixels (default is <code>-1</code>)<br>
</span>
<ul>
<li>
<spanclass="reference-text">-1 indicates no maximum width</span>
</li>
</ul>
</li>
<liid="cite_note-win_max_h-10">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-win_max_h_10-0">^</a></span><spanclass="reference-text">Maximum height of popup in pixels (default is <code>-1</code>)<br>
</span>
<ul>
<li>
<spanclass="reference-text">-1 indicates no maximum height</span>
</li>
</ul>
</li>
<liid="cite_note-win_show_all_max_w-11">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-win_show_all_max_w_11-0">^</a></span><spanclass="reference-text">Maximum width of popup in pixels when show all is clicked (default is <code>-1</code>) (recommended is <code>800</code>)<br>
This option was added because:</span>
<ul>
<li>
<spanclass="reference-text">The normal popup window is generally smaller (500 pixels)</span>
</li>
<li>
<spanclass="reference-text">Show all often returns a lot of article text which looks constrained within a 500 pixel window</span>
</li>
<li>
<spanclass="reference-text">A "Show all" maxiumum width allows for automatic switching to a wider window for the larger article content</span>
</li>
</ul><spanclass="reference-text">Note that -1 indicates no maximum width, which defaults to about 500 pixels</span>
</li>
<liid="cite_note-win_bind_focus_blur-12">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-win_bind_focus_blur_12-0">^</a></span><spanclass="reference-text">Shows popup when link receives focus (tabbed into) (default is <code>false</code>)<br>
This option allows keyboard users to use popups whenever a link is focused. Specifically:</span>
<ul>
<li>
<spanclass="reference-text">A link can be focused by pressing tab on the keyboard until a dotted focus box surrounds the desired link.</span>
</li>
<li>
<spanclass="reference-text">A link can be focused by finding and then selecting:</span>
<ul>
<li>
<spanclass="reference-text">Find a word on the page. For example, press Ctrl + F and type "r i b". This will highlight the Scribunto link</span>
</li>
<li>
<spanclass="reference-text">Press Ctrl + G and then Ctrl + G again. This will focus the Scribunto link and show the popup for it.</span>
</li>
</ul>
</li>
</ul>
</li>
<liid="cite_note-tmpl_tkn_max-13">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-tmpl_tkn_max_13-0">^</a></span><spanclass="reference-text">Maximum length of template token (in bytes) to evaluate (default is <code>8192</code>)<br>
This option allows faster popups, but at the cost of accuracy:</span>
<ul>
<li>
<spanclass="reference-text"><b>Fast but sometimes inaccurate</b>: For slow machines or wikis that use templates heavily, decrease the number. Note that setting the number to 0 means "never evaluate templates". If popups are slow, try setting the number to 0, and see if the results are satisfactory.</span>
</li>
<li>
<spanclass="reference-text"><b>Slow but always accurate</b>: For fast machines or wikis that do not use templates heavily, increase the number. Note that setting the number to 2,147,483,647 means "always evaluate templates". You can also use "-1" as a shortcut for "2,147,483,647". If popups have garbled text or are missing words, try setting the number to -1.</span>
</li>
</ul>
<hr>
<spanclass="reference-text">A more detailed explanation follows:<br>
</span>
<hr>
<p>
<spanclass="reference-text">Templates are wikitext of the form <code>{{Name|Arg_1|Arg_2|...}}</code>. They are used throughout a wiki to perform functions ranging from unit conversion (like converting kilometers to miles), or generating large pieces of HTML (like rendering entire InfoBoxes). However, these templates are the "slowest" pieces of wikitext to parse, particularly if they call other templates or Scribunto</span>
</p>
<p>
<spanclass="reference-text">Ideally, popups should skip templates that produce structural html (like infoboxes), while still trying to render templates that do smaller functions (like converting units). This option attempts a heuristic that says "if the template is long, assume it's an infobox and should be skipped". It counts the total number of bytes in a template, and skips it if it's greater than the max. For example, <code>{{Name|Arg_1}}</code> has a length of 10, and will be skipped if the max length is set to 8. If the max length is set to 16, then the template won't be skipped.</span>
</p>
<p>
<spanclass="reference-text">This option is imperfect, but should work well enough on most cases. Note that Navigation Popups does something similar by skipping template text, but without any configuration. (always set to 0).</span>
</p>
</li>
<liid="cite_note-tmpl_keeplist-14">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-tmpl_keeplist_14-0">^</a></span><spanclass="reference-text">Specifies templates to be shown in popup (default is <code>see below</code>)<br>
This is a performance optimization for English Wikipedia. It only evaluates listed templates.<br>
The format is as follows</span>
<ul>
<li>
<spanclass="reference-text">Each rule is in a separate line</span>
</li>
<li>
<spanclass="reference-text">Each rule has three parts</span>
<ul>
<li>
<spanclass="reference-text">Wiki domain: Wiki which will be affected by rule</span>
</li>
<li>
<spanclass="reference-text">Keep-names: Names of templates which will be shown in popup. Note that these names:</span>
<spanclass="reference-text">Match any case of the title. For example, "NAme", matches "NAME", "name", "naME", etc.</span>
</li>
<li>
<spanclass="reference-text">Match space or underscore. For example, "two_words" matches "two_words" and "two words"</span>
</li>
<li>
<spanclass="reference-text">Have one of the following three match patterns</span>
<ul>
<li>
<spanclass="reference-text">Exact name: For example, "name" matches only "name", and all lowercase/uppercase variants</span>
</li>
<li>
<spanclass="reference-text">Name at start: For example, "name*" will match anything starting with "name" such as "Names"</span>
</li>
<li>
<spanclass="reference-text">Name at end: For example, "*name" will match anything ending with "name" such as "Fullname"</span>
</li>
</ul>
</li>
</ul>
</li>
<li>
<spanclass="reference-text">Unless-names: Names of templates which should not be included, even if the keep-name is matched. For example, <code>en.wikipedia.org|name*|name_to_always_skip</code> will match any template that starts with "name" unless the template is named "name_to_always_skip". Note that unless-names have the same rules as keep-names (semi-colon separator; wildcards)<br>
</span>
</li>
</ul>
</li>
</ul><spanclass="reference-text">To disable this option, replaces the keep-names with a *. For example: <code>en.wikipedia.org|*|</code></span>
<spanclass="mw-cite-backlink"><ahref="#cite_ref-ns_allowed_15-0">^</a></span><spanclass="reference-text">Restrict popups to certain namespaces (default is <code> </code>)<br>
This option allows popups to be suppressed for namespaces that would ordinarily generate no content. For example, Portal pages are often contained in a table / div, whereas Module pages are code.<br>
Note the following:</span>
<ul>
<li>
<spanclass="reference-text">Only namespace names are valid. See the table below for examples of valid names</span>
</li>
<li>
<spanclass="reference-text">Multiple names must be separated with the pipe character (<code>|</code>). For example, <code>(Main)|Help</code></span>
</li>
<li>
<spanclass="reference-text">Namespaces names are the canonical English names of the namespace, except for "(Main)"</span>
</li>
<li>
<spanclass="reference-text">Non-English names will work, but are not supported. For example, <code>Aide</code> would only allow the Help namespace in French wikis, wheras <code>Help</code> will allow the Help namespace across all wikis.</span>
</li>
<li>
<spanclass="reference-text">Invalid names are ignored</span>
</li>
<li>
<spanclass="reference-text">Deactivate this feature by blanking the field</span>
</li>
</ul>
<tableclass='wikitable'>
<tr>
<th>
Title
</th>
</tr>
<tr>
<td>
(Main)
</td>
</tr>
<tr>
<td>
User
</td>
</tr>
<tr>
<td>
Project
</td>
</tr>
<tr>
<td>
File
</td>
</tr>
<tr>
<td>
MediaWiki
</td>
</tr>
<tr>
<td>
Template
</td>
</tr>
<tr>
<td>
Help
</td>
</tr>
<tr>
<td>
Category
</td>
</tr>
<tr>
<td>
Special
</td>
</tr>
</table>
</li>
<liid="cite_note-xnde_ignore_ids-16">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-xnde_ignore_ids_16-0">^</a></span><spanclass="reference-text">Ignore html elements that have the following ids (default is <code>coordinates</code>)<br>
This feature is intended for English Wikipedia which has a <code>{{Coordinates}}</code> tag at the top of most geographical articles (for example, <ahref="http://en.wikipedia.org/wiki/North_Pole"rel="nofollow"class="external text">North Pole</a>)<br>
Without this option, a Coordinates span would be visible in the top right of the popup, which....</span>
<ul>
<li>
<spanclass="reference-text">Counts against the popup's number of words</span>
</li>
<li>
<spanclass="reference-text">Does not provide significant summary information for the article</span>
<spanclass="reference-text">Any HTML element with a listed id will not be shown in the popup. For example, <code><span id='coordinates'>0 N 90 E</span></code> will not show b/c the html element (<code>span</code>) has a listed id (<code>coordinates</code>)</span>
</li>
<li>
<spanclass="reference-text">To add multiple ids, separate ids with the <code>|</code> character. For example, <code>coordinates|some_other_id</code>.</span>
</li>
<li>
<spanclass="reference-text">Listed ids are case-insensitive if ASCII, but case-sensitive otherwise. There is no difference between <code>coordinates</code> and <code>Coordinates</code>. There is a difference between <code>é</code> and <code>É</code></span>
</li>
<li>
<spanclass="reference-text">To deactivate this feature, set the value to <code> </code> (empty)<br>
</span>
</li>
</ul>
</li>
<liid="cite_note-scan_len-17">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-scan_len_17-0">^</a></span><spanclass="reference-text">Number of bytes to read for each pass (default is <code>1024</code>)<br>
This number represents the number of bytes the popup parser reads at a time. For example, it will read the first 1024 bytes of the article, and if it doesn't find 64 words, it continues to read sections of 1024 bytes until it does.<br>
</span>
<ul>
<li>
<spanclass="reference-text">Lower numbers may be better for slower machines. Note that the number must be greater than 0.</span>
</li>
<li>
<spanclass="reference-text">Higher numbers may be better for faster machines. Experiment as necessary.</span>
</li>
</ul>
</li>
<liid="cite_note-scan_max-18">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-scan_max_18-0">^</a></span><spanclass="reference-text">Maximum number of bytes to read (default is <code>32768</code>)<br>
</span>
<p>
<spanclass="reference-text">This number represents the maximum number of bytes the popup parser reads before it gives up. Note that if the parser gives up, then no text will be returned for the preview.</span>
</p>
<p>
<spanclass="reference-text">This setting should only apply to badly formatted articles. For example consider a page that has a comment with 100,000 5 letter words (<code><!-- 100,000 5 letter words --></code>). This page will be considered to have 0 words, even though it has a page length of 500,000. Rather than read the entire 500,000 bytes, the popup parser will stop after 32,768.</span>
</p>
<ul>
<li>
<spanclass="reference-text">Lower numbers may be better for slower machines, but it would have a higher chance of returning empty popups. Note that the number must be greater than 0.</span>
</li>
<li>
<spanclass="reference-text">Higher numbers may be better for faster machines. To force the popup parser to read the entire page until it finds the minimum number of words, set the value to a high number like 2,147,483,647</span>
</li>
</ul>
</li>
<liid="cite_note-html_fmtr_popup-19">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-html_fmtr_popup_19-0">^</a></span><spanclass="reference-text">Set the HTML format of the popup window. (default is <code>See HTML format default</code> )<br>
This controls the actual HTML that is generated in the popup window. Note the following:</span>
<ul>
<li>
<spanclass="reference-text">The format is basically text substitution, with anything between <code>~{</code> and <code>}</code> substituted for the current page values.</span>
</li>
<li>
<spanclass="reference-text">This is only provided for experimental / testing purposes. The format may change in future versions.</span>
</li>
<li>
<spanclass="reference-text">To modify this value do the following:</span>
<ul>
<li>
<spanclass="reference-text">Backup your xowa_user_cfg.gfs: <code>/xowa/user/anonymous/app/data/cfg/xowa_user_cfg.gfs</code></span>
</li>
<li>
<spanclass="reference-text">Edit this page</span>
</li>
<li>
<spanclass="reference-text">Find the commented table rows / cells and uncomment them</span>
</li>
<li>
<spanclass="reference-text">Save the page. You will now see an editable textarea with the format</span>
</li>
<li>
<spanclass="reference-text">Make any changes to the editable textarea and click Save. Hover over a link to view the results.</span>
</li>
</ul>
</li>
</ul><spanclass="reference-text"><br>
When you're done, you should restore your original copy of xowa_user_cfg.gfs. If you don't restore your copy, you will end up keeping your custom change, and will never pick up any future fixes / changes to the format.</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/ -->