Popups.html 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Options/Popups - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. </head>
  9. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  10. <div id="mw-page-base" class="noprint"></div>
  11. <div id="mw-head-base" class="noprint"></div>
  12. <div id="content" class="mw-body">
  13. <h1 id="firstHeading" class="firstHeading"><span>Options/Popups</span></h1>
  14. <div id="bodyContent" class="mw-body-content">
  15. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  16. <div id="contentSub"></div>
  17. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  18. <div id='xocfg_body'>
  19. <!-- TEXT:err_msg -->
  20. <div id='xocfg_err'></div>
  21. <div>
  22. <!-- BTN:info -->
  23. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.cfg_edit.help__toggle_all()' title='toggle all help'>&nbsp;</span>
  24. <!-- COMBO:cfg_grps -->
  25. <select id='xocfg_nav_select' onchange='xo.cfg_edit.select__send(this);' onkeyup='xo.cfg_edit.select__by_keypress(event, this);' accesskey='l'>
  26. <option value='xowa.app.security' >App - Security</option>
  27. <option value='xowa.app.startup' >App - Startup</option>
  28. <option value='xowa.app.dbs' >App - Databases</option>
  29. <option value='xowa.app.update' >App - Update</option>
  30. <option value='xowa.gui.general' >Gui - General</option>
  31. <option value='xowa.gui.tabs' >Gui - Tabs</option>
  32. <option value='xowa.gui.url_bar' >Gui - Address bar</option>
  33. <option value='xowa.gui.menus' >Gui - Menus</option>
  34. <option value='xowa.gui.shortcuts' >Gui - Shortcuts</option>
  35. <option value='xowa.gui.nightmode' >Gui - Nightmode</option>
  36. <option value='xowa.wiki.hdumps' >Wiki - HTML Databases</option>
  37. <option value='xowa.wiki.edit' >Wiki - Editing</option>
  38. <option value='xowa.bldr.general' >Import - General</option>
  39. <option value='xowa.bldr.db' >Import - Database</option>
  40. <option value='xowa.bldr.page_sync' >Import - Page sync</option>
  41. <option value='xowa.bldr.dansguardian' >Import - Dansguardian</option>
  42. <option value='xowa.html.css' >HTML - CSS</option>
  43. <option value='xowa.html.page' >HTML - Page</option>
  44. <option value='xowa.html.tidy' >HTML - Tidy</option>
  45. <option value='xowa.html.scripting' >HTML - Scripting</option>
  46. <option value='xowa.files.general' >Files - General</option>
  47. <option value='xowa.files.apps' >Files - Apps</option>
  48. <option value='xowa.addon.search' >Addon - Search</option>
  49. <option value='xowa.addon.fulltext_search' >Addon - Full-text search</option>
  50. <option value='xowa.addon.category' >Addon - Category</option>
  51. <option value='xowa.addon.http_server' >Addon - HTTP Server</option>
  52. <option value='xowa.addon.scribunto' >Addon - Scribunto</option>
  53. <option value='xowa.addon.math' >Addon - Math</option>
  54. <option value='xowa.addon.score' >Addon - Score</option>
  55. <option value='xowa.addon.popups' selected='selected'>Addon - Popups</option>
  56. <option value='xowa.addon.wikibase' >Addon - Wikidata</option>
  57. <option value='xowa.dev.general' >Dev - General</option>
  58. <option value='xowa.app.settings' >App - Settings</option>
  59. </select>
  60. <!-- LINK:cfg_link -->
  61. <div style='float:right;margin:2px 7px;'>
  62. <a id='options_lnk'>options link</a>
  63. </div>
  64. </div>
  65. <div id='cfg_grps'>
  66. <!-- TEXT:page_help -->
  67. <div>
  68. <p id='page_help_para'><p>This page provides options for Popups.
  69. </p>
  70. <ul>
  71. <li> You can test your changes by reloading this page and hovering over this link: <a href="/wiki/Main_Page" id="xolnki_37" title="Main Page" class="xowa-visited" tabindex="-1">XOWA Main Page</a>.
  72. </li>
  73. <li> For more infomation, visit the <a href="/wiki/App/Xtn/Html/Popups" id="xolnki_38" title="App/Xtn/Html/Popups" tabindex="-1">Popups help page</a>
  74. </li>
  75. <li> Note that changes will apply automatically to <b>new</b> tabs and <b>new</b> pages. However, any <b>currently loaded</b> pages must be reloaded to pick up the new changes.
  76. </li>
  77. </ul>
  78. </p>
  79. </div>
  80. <h2>General</h2>
  81. <div class="xocfg_row flex_div">
  82. <!-- BTN:help_item -->
  83. <div class='xocfg_itm_help'>
  84. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.enabled")' title='view more info'>&nbsp;</span>
  85. </div>
  86. <!-- TEXT:key -->
  87. <div id='xowa.addon.popups.enabled__name' class='xocfg_itm_name'>Enabled</div>
  88. <!-- BTN:undo -->
  89. <div id='xowa.addon.popups.enabled__undo' data-xocfg-type='bool' class='xocfg_itm_delete xocfg_itm_hide'>
  90. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.enabled")' title="reset to &quot;y&quot;">&nbsp;</span>
  91. </div>
  92. <!-- TEXT:val -->
  93. <div class='xocfg_itm_data'>
  94. <input id="xowa.addon.popups.enabled" data-xocfg-key="xowa.addon.popups.enabled" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox" checked="checked"></input></div>
  95. <!-- HIDDEN:key,ctx -->
  96. <input type='hidden' id='xowa.addon.popups.enabled__key_box' value='xowa.addon.popups.enabled'></input>
  97. <input type='hidden' id='xowa.addon.popups.enabled__ctx_box' value='app'></input>
  98. </div>
  99. <!-- DIV:help -->
  100. <div id='xowa.addon.popups.enabled_help_div' class='xohelp_div'>
  101. <div id='xowa.addon.popups.enabled_help_msg' class='xohelp_msg'><p>Controls popup functionality
  102. </p>
  103. <ul>
  104. <li> <b>checked</b> to show popups when hovering over links
  105. </li>
  106. <li> <b>unchecked</b> to not show popups when hovering over links
  107. </li>
  108. </ul>
  109. </div>
  110. </div>
  111. <h2>Content (basic)</h2>
  112. <div class="xocfg_row flex_div">
  113. <!-- BTN:help_item -->
  114. <div class='xocfg_itm_help'>
  115. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.content.show_init_word_count")' title='view more info'>&nbsp;</span>
  116. </div>
  117. <!-- TEXT:key -->
  118. <div id='xowa.addon.popups.content.show_init_word_count__name' class='xocfg_itm_name'>Number of words to show at start</div>
  119. <!-- BTN:undo -->
  120. <div id='xowa.addon.popups.content.show_init_word_count__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  121. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.content.show_init_word_count")' title="reset to &quot;128&quot;">&nbsp;</span>
  122. </div>
  123. <!-- TEXT:val -->
  124. <div class='xocfg_itm_data'>
  125. <input id="xowa.addon.popups.content.show_init_word_count" data-xocfg-key="xowa.addon.popups.content.show_init_word_count" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="128"></input></div>
  126. <!-- HIDDEN:key,ctx -->
  127. <input type='hidden' id='xowa.addon.popups.content.show_init_word_count__key_box' value='xowa.addon.popups.content.show_init_word_count'></input>
  128. <input type='hidden' id='xowa.addon.popups.content.show_init_word_count__ctx_box' value='app'></input>
  129. </div>
  130. <!-- DIV:help -->
  131. <div id='xowa.addon.popups.content.show_init_word_count_help_div' class='xohelp_div'>
  132. <div id='xowa.addon.popups.content.show_init_word_count_help_msg' class='xohelp_msg'><p>Number of words to show in popup<br/>
  133. </p>
  134. <ul>
  135. <li> For slower machines, decrease the number of words to 32. Note that the number must be greater than 0.
  136. </li>
  137. <li> For faster machines, increase the number of words as per your liking.
  138. </li>
  139. </ul>
  140. </div>
  141. </div>
  142. <div class="xocfg_row flex_div">
  143. <!-- BTN:help_item -->
  144. <div class='xocfg_itm_help'>
  145. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.content.show_more_word_count")' title='view more info'>&nbsp;</span>
  146. </div>
  147. <!-- TEXT:key -->
  148. <div id='xowa.addon.popups.content.show_more_word_count__name' class='xocfg_itm_name'>Number of words to show for "more"</div>
  149. <!-- BTN:undo -->
  150. <div id='xowa.addon.popups.content.show_more_word_count__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  151. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.content.show_more_word_count")' title="reset to &quot;192&quot;">&nbsp;</span>
  152. </div>
  153. <!-- TEXT:val -->
  154. <div class='xocfg_itm_data'>
  155. <input id="xowa.addon.popups.content.show_more_word_count" data-xocfg-key="xowa.addon.popups.content.show_more_word_count" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="192"></input></div>
  156. <!-- HIDDEN:key,ctx -->
  157. <input type='hidden' id='xowa.addon.popups.content.show_more_word_count__key_box' value='xowa.addon.popups.content.show_more_word_count'></input>
  158. <input type='hidden' id='xowa.addon.popups.content.show_more_word_count__ctx_box' value='app'></input>
  159. </div>
  160. <!-- DIV:help -->
  161. <div id='xowa.addon.popups.content.show_more_word_count_help_div' class='xohelp_div'>
  162. <div id='xowa.addon.popups.content.show_more_word_count_help_msg' class='xohelp_msg'><p>Number of additional words to show when &quot;show more&quot; is clicked<br/>
  163. </p>
  164. <ul>
  165. <li> For slower machines, decrease the number of words to 32. Note that the number must be greater than 0.
  166. </li>
  167. <li> For faster machines, increase the number of words as per your liking.
  168. </li>
  169. </ul>
  170. </div>
  171. </div>
  172. <h2>Content (advanced)</h2>
  173. <div class="xocfg_row flex_div">
  174. <!-- BTN:help_item -->
  175. <div class='xocfg_itm_help'>
  176. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.content.show_all_if_less_than")' title='view more info'>&nbsp;</span>
  177. </div>
  178. <!-- TEXT:key -->
  179. <div id='xowa.addon.popups.content.show_all_if_less_than__name' class='xocfg_itm_name'>Automatically show "all" if page is less than</div>
  180. <!-- BTN:undo -->
  181. <div id='xowa.addon.popups.content.show_all_if_less_than__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  182. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.content.show_all_if_less_than")' title="reset to &quot;-1&quot;">&nbsp;</span>
  183. </div>
  184. <!-- TEXT:val -->
  185. <div class='xocfg_itm_data'>
  186. <input id="xowa.addon.popups.content.show_all_if_less_than" data-xocfg-key="xowa.addon.popups.content.show_all_if_less_than" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="-1"></input></div>
  187. <!-- HIDDEN:key,ctx -->
  188. <input type='hidden' id='xowa.addon.popups.content.show_all_if_less_than__key_box' value='xowa.addon.popups.content.show_all_if_less_than'></input>
  189. <input type='hidden' id='xowa.addon.popups.content.show_all_if_less_than__ctx_box' value='app'></input>
  190. </div>
  191. <!-- DIV:help -->
  192. <div id='xowa.addon.popups.content.show_all_if_less_than_help_div' class='xohelp_div'>
  193. <div id='xowa.addon.popups.content.show_all_if_less_than_help_msg' class='xohelp_msg'><p>Automatically show the entire article if article is less than these number of bytes<br/>
  194. This feature is intended for small articles whose entire text...
  195. </p>
  196. <ul>
  197. <li> Will always be parsed quickly
  198. </li>
  199. <li> Will generally show in one window without a horizontal scroll bar.
  200. </li>
  201. </ul>
  202. <p>It allows a complete preview of small articles without having to click &quot;more&quot; or &quot;all&quot; <br/>
  203. To deactivate this feature, set the number to -1
  204. </p>
  205. </div>
  206. </div>
  207. <div class="xocfg_row flex_div">
  208. <!-- BTN:help_item -->
  209. <div class='xocfg_itm_help'>
  210. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.content.read_til_stop_fwd")' title='view more info'>&nbsp;</span>
  211. </div>
  212. <!-- TEXT:key -->
  213. <div id='xowa.addon.popups.content.read_til_stop_fwd__name' class='xocfg_itm_name'>Read forward til header</div>
  214. <!-- BTN:undo -->
  215. <div id='xowa.addon.popups.content.read_til_stop_fwd__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  216. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.content.read_til_stop_fwd")' title="reset to &quot;32&quot;">&nbsp;</span>
  217. </div>
  218. <!-- TEXT:val -->
  219. <div class='xocfg_itm_data'>
  220. <input id="xowa.addon.popups.content.read_til_stop_fwd" data-xocfg-key="xowa.addon.popups.content.read_til_stop_fwd" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="32"></input></div>
  221. <!-- HIDDEN:key,ctx -->
  222. <input type='hidden' id='xowa.addon.popups.content.read_til_stop_fwd__key_box' value='xowa.addon.popups.content.read_til_stop_fwd'></input>
  223. <input type='hidden' id='xowa.addon.popups.content.read_til_stop_fwd__ctx_box' value='app'></input>
  224. </div>
  225. <!-- DIV:help -->
  226. <div id='xowa.addon.popups.content.read_til_stop_fwd_help_div' class='xohelp_div'>
  227. <div id='xowa.addon.popups.content.read_til_stop_fwd_help_msg' class='xohelp_msg'><p>Number of extra words to read forward to look for a header<br/>
  228. This option tries to stop the popup text right before a header.
  229. </p>
  230. <ul>
  231. <li> the advantage is that the popup will not stop a few words short of the header
  232. </li>
  233. <li> the disadvantage is that the size of the popup is irregular. i.e.: sometimes it returns 128 words, sometimes 140, sometimes 150, etc<br/>
  234. </li>
  235. </ul>
  236. <p>To deactivate this option, set it to -1.<br/>
  237. Technical details follow.
  238. </p>
  239. <hr/>
  240. <p>The approach works in the following manner:
  241. </p>
  242. <ul>
  243. <li> Reads forward an additional # of words
  244. </li>
  245. <li> If a header is found within the # of words, it extends the popup text to the last word before the header
  246. </li>
  247. <li> If a header is not found, it returns the original # of words
  248. </li>
  249. </ul>
  250. <p>For example:
  251. </p>
  252. <ul>
  253. <li> An article contains <code>01 02 03 04 05 06 07 ==08== 09</code>
  254. </li>
  255. <li> Show-init is set to 5
  256. </li>
  257. <li> Read-fwd is set to 4
  258. </li>
  259. <li> The initial number of words is read and collects 5 words: <code>01 02 03 04 05</code>
  260. </li>
  261. <li> The parser then reads forward 4 more words: <code>06 07 ==08== 09</code>
  262. </li>
  263. <li> It finds a header at <code>==08==</code>
  264. </li>
  265. <li> It then extends the selction to the word just before the header: <code>01 02 03 04 05 06 07</code>
  266. </li>
  267. <li> 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>
  268. </li>
  269. </ul>
  270. </div>
  271. </div>
  272. <div class="xocfg_row flex_div">
  273. <!-- BTN:help_item -->
  274. <div class='xocfg_itm_help'>
  275. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.content.read_til_stop_bwd")' title='view more info'>&nbsp;</span>
  276. </div>
  277. <!-- TEXT:key -->
  278. <div id='xowa.addon.popups.content.read_til_stop_bwd__name' class='xocfg_itm_name'>Read backward til header</div>
  279. <!-- BTN:undo -->
  280. <div id='xowa.addon.popups.content.read_til_stop_bwd__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  281. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.content.read_til_stop_bwd")' title="reset to &quot;16&quot;">&nbsp;</span>
  282. </div>
  283. <!-- TEXT:val -->
  284. <div class='xocfg_itm_data'>
  285. <input id="xowa.addon.popups.content.read_til_stop_bwd" data-xocfg-key="xowa.addon.popups.content.read_til_stop_bwd" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="16"></input></div>
  286. <!-- HIDDEN:key,ctx -->
  287. <input type='hidden' id='xowa.addon.popups.content.read_til_stop_bwd__key_box' value='xowa.addon.popups.content.read_til_stop_bwd'></input>
  288. <input type='hidden' id='xowa.addon.popups.content.read_til_stop_bwd__ctx_box' value='app'></input>
  289. </div>
  290. <!-- DIV:help -->
  291. <div id='xowa.addon.popups.content.read_til_stop_bwd_help_div' class='xohelp_div'>
  292. <div id='xowa.addon.popups.content.read_til_stop_bwd_help_msg' class='xohelp_msg'><p>Number of words to read backward to remove header at end<br/>
  293. This option tries to stop a header from appearing at the end of the popup text.
  294. </p>
  295. <ul>
  296. <li> the advantage is that a popup will not end at a header with just a few words after it.
  297. </li>
  298. <li> 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
  299. </li>
  300. </ul>
  301. <p>To deactivate this option, set it to -1<br/>
  302. Technical details follow.
  303. </p>
  304. <hr/>
  305. <p>The approach works in the following manner:
  306. </p>
  307. <ul>
  308. <li> Reads backwards a # of words from the end of the popup
  309. </li>
  310. <li> If a header is found within the # of words, it truncates the output to the text before the header
  311. </li>
  312. <li> If a header is not found, it returns the original # of words
  313. </li>
  314. </ul>
  315. <p>For example:
  316. </p>
  317. <ul>
  318. <li> An article contains <code>01 02 03 04 05 06 07 ==08== 09</code>
  319. </li>
  320. <li> Show-init is set to 9
  321. </li>
  322. <li> Read-bwd is set to 4
  323. </li>
  324. <li> The initial number of words is read and collects 9 words: <code>01 02 03 04 05 06 07 ==08== 09</code>
  325. </li>
  326. <li> The parser then reads backwards 4 words: <code>06 07 ==08== 09</code>
  327. </li>
  328. <li> It finds a header at <code>==08==</code>
  329. </li>
  330. <li> It then truncates the popup to the word just before the header: <code>01 02 03 04 05 06 07</code>
  331. </li>
  332. <li> 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>
  333. </li>
  334. </ul>
  335. </div>
  336. </div>
  337. <div class="xocfg_row flex_div">
  338. <!-- BTN:help_item -->
  339. <div class='xocfg_itm_help'>
  340. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.content.stop_if_hdr_after")' title='view more info'>&nbsp;</span>
  341. </div>
  342. <!-- TEXT:key -->
  343. <div id='xowa.addon.popups.content.stop_if_hdr_after__name' class='xocfg_itm_name'>Stop if header is found after</div>
  344. <!-- BTN:undo -->
  345. <div id='xowa.addon.popups.content.stop_if_hdr_after__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  346. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.content.stop_if_hdr_after")' title="reset to &quot;96&quot;">&nbsp;</span>
  347. </div>
  348. <!-- TEXT:val -->
  349. <div class='xocfg_itm_data'>
  350. <input id="xowa.addon.popups.content.stop_if_hdr_after" data-xocfg-key="xowa.addon.popups.content.stop_if_hdr_after" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="96"></input></div>
  351. <!-- HIDDEN:key,ctx -->
  352. <input type='hidden' id='xowa.addon.popups.content.stop_if_hdr_after__key_box' value='xowa.addon.popups.content.stop_if_hdr_after'></input>
  353. <input type='hidden' id='xowa.addon.popups.content.stop_if_hdr_after__ctx_box' value='app'></input>
  354. </div>
  355. <!-- DIV:help -->
  356. <div id='xowa.addon.popups.content.stop_if_hdr_after_help_div' class='xohelp_div'>
  357. <div id='xowa.addon.popups.content.stop_if_hdr_after_help_msg' class='xohelp_msg'><p>Stops reading if a header is found after # of words<br/>
  358. 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.
  359. </p>
  360. <ul>
  361. <li> 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.
  362. </li>
  363. <li> 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
  364. </li>
  365. </ul>
  366. <p>To deactivate this option, set it to -1. This will always show as much content as possible<br/>
  367. Technical details follow.
  368. </p>
  369. <hr/>
  370. <p>The following is a simplified example:
  371. </p>
  372. <ul>
  373. <li> An article contains <code>01 02 03 04 05 ==06== 07 08 09 ==10== 11 12 13 14 15 16</code>
  374. </li>
  375. <li> Show-init is set to 16
  376. </li>
  377. <li> Stop-hdr is set to 8
  378. </li>
  379. <li> The parser starts reading words
  380. </li>
  381. <li> Once it finds a header, it checks if it is greater than stop-hdr
  382. <ul>
  383. <li> <code>==06==</code> is found, but it is less than 8. The parser continues.
  384. </li>
  385. <li> <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>
  386. </li>
  387. </ul>
  388. </li>
  389. </ul>
  390. <p>Note the following variations:
  391. </p>
  392. <ul>
  393. <li> 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>
  394. </li>
  395. <li> 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>
  396. </li>
  397. </ul>
  398. <p>Note that the the read-bwd setting is still applied after the stop-hdr setting.
  399. </p>
  400. </div>
  401. </div>
  402. <h2>Window</h2>
  403. <div class="xocfg_row flex_div">
  404. <!-- BTN:help_item -->
  405. <div class='xocfg_itm_help'>
  406. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.window.show_delay")' title='view more info'>&nbsp;</span>
  407. </div>
  408. <!-- TEXT:key -->
  409. <div id='xowa.addon.popups.window.show_delay__name' class='xocfg_itm_name'>Number of milliseconds before showing popup</div>
  410. <!-- BTN:undo -->
  411. <div id='xowa.addon.popups.window.show_delay__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  412. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.window.show_delay")' title="reset to &quot;600&quot;">&nbsp;</span>
  413. </div>
  414. <!-- TEXT:val -->
  415. <div class='xocfg_itm_data'>
  416. <input id="xowa.addon.popups.window.show_delay" data-xocfg-key="xowa.addon.popups.window.show_delay" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="600"></input></div>
  417. <!-- HIDDEN:key,ctx -->
  418. <input type='hidden' id='xowa.addon.popups.window.show_delay__key_box' value='xowa.addon.popups.window.show_delay'></input>
  419. <input type='hidden' id='xowa.addon.popups.window.show_delay__ctx_box' value='app'></input>
  420. </div>
  421. <!-- DIV:help -->
  422. <div id='xowa.addon.popups.window.show_delay_help_div' class='xohelp_div'>
  423. <div id='xowa.addon.popups.window.show_delay_help_msg' class='xohelp_msg'><p>Number of milliseconds to wait before showing popup<br/>
  424. </p>
  425. <ul>
  426. <li> A higher number prevents accidental hovers over links while moving the mouse / scrolling the page
  427. </li>
  428. <li> A lower number allows faster popup display
  429. </li>
  430. </ul>
  431. <p>Note that popup data will only be retrieved after the popup starts showing. For example:
  432. </p>
  433. <ul>
  434. <li> If the show delay is set to 2 seconds
  435. </li>
  436. <li> and a popup takes 1 second to retrieve the html
  437. </li>
  438. <li> 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)
  439. </li>
  440. </ul>
  441. </div>
  442. </div>
  443. <div class="xocfg_row flex_div">
  444. <!-- BTN:help_item -->
  445. <div class='xocfg_itm_help'>
  446. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.window.hide_delay")' title='view more info'>&nbsp;</span>
  447. </div>
  448. <!-- TEXT:key -->
  449. <div id='xowa.addon.popups.window.hide_delay__name' class='xocfg_itm_name'>Number of milliseconds before hiding popup</div>
  450. <!-- BTN:undo -->
  451. <div id='xowa.addon.popups.window.hide_delay__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  452. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.window.hide_delay")' title="reset to &quot;400&quot;">&nbsp;</span>
  453. </div>
  454. <!-- TEXT:val -->
  455. <div class='xocfg_itm_data'>
  456. <input id="xowa.addon.popups.window.hide_delay" data-xocfg-key="xowa.addon.popups.window.hide_delay" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="400"></input></div>
  457. <!-- HIDDEN:key,ctx -->
  458. <input type='hidden' id='xowa.addon.popups.window.hide_delay__key_box' value='xowa.addon.popups.window.hide_delay'></input>
  459. <input type='hidden' id='xowa.addon.popups.window.hide_delay__ctx_box' value='app'></input>
  460. </div>
  461. <!-- DIV:help -->
  462. <div id='xowa.addon.popups.window.hide_delay_help_div' class='xohelp_div'>
  463. <div id='xowa.addon.popups.window.hide_delay_help_msg' class='xohelp_msg'><p>Number of milliseconds to wait before hiding popup<br/>
  464. </p>
  465. <ul>
  466. <li> A higher number allows the popup to linger longer on the screen before disappearing.
  467. </li>
  468. <li> A lower number hides the popup faster
  469. </li>
  470. </ul>
  471. </div>
  472. </div>
  473. <div class="xocfg_row flex_div">
  474. <!-- BTN:help_item -->
  475. <div class='xocfg_itm_help'>
  476. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.window.max_w")' title='view more info'>&nbsp;</span>
  477. </div>
  478. <!-- TEXT:key -->
  479. <div id='xowa.addon.popups.window.max_w__name' class='xocfg_itm_name'>Maximum width of window</div>
  480. <!-- BTN:undo -->
  481. <div id='xowa.addon.popups.window.max_w__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  482. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.window.max_w")' title="reset to &quot;-1&quot;">&nbsp;</span>
  483. </div>
  484. <!-- TEXT:val -->
  485. <div class='xocfg_itm_data'>
  486. <input id="xowa.addon.popups.window.max_w" data-xocfg-key="xowa.addon.popups.window.max_w" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="-1"></input></div>
  487. <!-- HIDDEN:key,ctx -->
  488. <input type='hidden' id='xowa.addon.popups.window.max_w__key_box' value='xowa.addon.popups.window.max_w'></input>
  489. <input type='hidden' id='xowa.addon.popups.window.max_w__ctx_box' value='app'></input>
  490. </div>
  491. <!-- DIV:help -->
  492. <div id='xowa.addon.popups.window.max_w_help_div' class='xohelp_div'>
  493. <div id='xowa.addon.popups.window.max_w_help_msg' class='xohelp_msg'><p>Maximum width of popup in pixels<br/>
  494. </p>
  495. <ul>
  496. <li> -1 indicates no maximum width
  497. </li>
  498. </ul>
  499. </div>
  500. </div>
  501. <div class="xocfg_row flex_div">
  502. <!-- BTN:help_item -->
  503. <div class='xocfg_itm_help'>
  504. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.window.max_h")' title='view more info'>&nbsp;</span>
  505. </div>
  506. <!-- TEXT:key -->
  507. <div id='xowa.addon.popups.window.max_h__name' class='xocfg_itm_name'>Maximum height of window</div>
  508. <!-- BTN:undo -->
  509. <div id='xowa.addon.popups.window.max_h__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  510. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.window.max_h")' title="reset to &quot;-1&quot;">&nbsp;</span>
  511. </div>
  512. <!-- TEXT:val -->
  513. <div class='xocfg_itm_data'>
  514. <input id="xowa.addon.popups.window.max_h" data-xocfg-key="xowa.addon.popups.window.max_h" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="-1"></input></div>
  515. <!-- HIDDEN:key,ctx -->
  516. <input type='hidden' id='xowa.addon.popups.window.max_h__key_box' value='xowa.addon.popups.window.max_h'></input>
  517. <input type='hidden' id='xowa.addon.popups.window.max_h__ctx_box' value='app'></input>
  518. </div>
  519. <!-- DIV:help -->
  520. <div id='xowa.addon.popups.window.max_h_help_div' class='xohelp_div'>
  521. <div id='xowa.addon.popups.window.max_h_help_msg' class='xohelp_msg'><p>Maximum height of popup in pixels<br/>
  522. </p>
  523. <ul>
  524. <li> -1 indicates no maximum height
  525. </li>
  526. </ul>
  527. </div>
  528. </div>
  529. <div class="xocfg_row flex_div">
  530. <!-- BTN:help_item -->
  531. <div class='xocfg_itm_help'>
  532. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.window.show_all_max_w")' title='view more info'>&nbsp;</span>
  533. </div>
  534. <!-- TEXT:key -->
  535. <div id='xowa.addon.popups.window.show_all_max_w__name' class='xocfg_itm_name'>Maximum width of window when "show all"</div>
  536. <!-- BTN:undo -->
  537. <div id='xowa.addon.popups.window.show_all_max_w__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  538. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.window.show_all_max_w")' title="reset to &quot;800&quot;">&nbsp;</span>
  539. </div>
  540. <!-- TEXT:val -->
  541. <div class='xocfg_itm_data'>
  542. <input id="xowa.addon.popups.window.show_all_max_w" data-xocfg-key="xowa.addon.popups.window.show_all_max_w" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="800"></input></div>
  543. <!-- HIDDEN:key,ctx -->
  544. <input type='hidden' id='xowa.addon.popups.window.show_all_max_w__key_box' value='xowa.addon.popups.window.show_all_max_w'></input>
  545. <input type='hidden' id='xowa.addon.popups.window.show_all_max_w__ctx_box' value='app'></input>
  546. </div>
  547. <!-- DIV:help -->
  548. <div id='xowa.addon.popups.window.show_all_max_w_help_div' class='xohelp_div'>
  549. <div id='xowa.addon.popups.window.show_all_max_w_help_msg' class='xohelp_msg'><p>Maximum width of popup in pixels when show all is clicked<br/>
  550. This option was added because:
  551. </p>
  552. <ul>
  553. <li> The normal popup window is generally smaller (500 pixels)
  554. </li>
  555. <li> Show all often returns a lot of article text which looks constrained within a 500 pixel window
  556. </li>
  557. <li> A &quot;Show all&quot; maxiumum width allows for automatic switching to a wider window for the larger article content
  558. </li>
  559. </ul>
  560. <p>Note that -1 indicates no maximum width, which defaults to about 500 pixels
  561. </p>
  562. </div>
  563. </div>
  564. <div class="xocfg_row flex_div">
  565. <!-- BTN:help_item -->
  566. <div class='xocfg_itm_help'>
  567. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.window.bind_focus_blur")' title='view more info'>&nbsp;</span>
  568. </div>
  569. <!-- TEXT:key -->
  570. <div id='xowa.addon.popups.window.bind_focus_blur__name' class='xocfg_itm_name'>Show popup when link is focused</div>
  571. <!-- BTN:undo -->
  572. <div id='xowa.addon.popups.window.bind_focus_blur__undo' data-xocfg-type='bool' class='xocfg_itm_delete xocfg_itm_hide'>
  573. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.window.bind_focus_blur")' title="reset to &quot;n&quot;">&nbsp;</span>
  574. </div>
  575. <!-- TEXT:val -->
  576. <div class='xocfg_itm_data'>
  577. <input id="xowa.addon.popups.window.bind_focus_blur" data-xocfg-key="xowa.addon.popups.window.bind_focus_blur" data-xocfg-type="bool" accesskey="d" class="xocfg_data__bool" type="checkbox"></input></div>
  578. <!-- HIDDEN:key,ctx -->
  579. <input type='hidden' id='xowa.addon.popups.window.bind_focus_blur__key_box' value='xowa.addon.popups.window.bind_focus_blur'></input>
  580. <input type='hidden' id='xowa.addon.popups.window.bind_focus_blur__ctx_box' value='app'></input>
  581. </div>
  582. <!-- DIV:help -->
  583. <div id='xowa.addon.popups.window.bind_focus_blur_help_div' class='xohelp_div'>
  584. <div id='xowa.addon.popups.window.bind_focus_blur_help_msg' class='xohelp_msg'><p>Shows popup when link receives focus (tabbed into)<br/>
  585. This option allows keyboard users to use popups whenever a link is focused. Specifically:
  586. </p>
  587. <ul>
  588. <li> A link can be focused by pressing tab on the keyboard until a dotted focus box surrounds the desired link.
  589. </li>
  590. <li> A link can be focused by finding and then selecting:
  591. <ul>
  592. <li> Find a word on the page. For example, press Ctrl + F and type &quot;r i b&quot;. This will highlight the Scribunto link
  593. </li>
  594. <li> Press Ctrl + G and then Ctrl + G again. This will focus the Scribunto link and show the popup for it.
  595. </li>
  596. </ul>
  597. </li>
  598. </ul>
  599. </div>
  600. </div>
  601. <h2>Performance</h2>
  602. <div class="xocfg_row flex_div">
  603. <!-- BTN:help_item -->
  604. <div class='xocfg_itm_help'>
  605. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.wtxt.tmpl_tkn_max")' title='view more info'>&nbsp;</span>
  606. </div>
  607. <!-- TEXT:key -->
  608. <div id='xowa.addon.popups.wtxt.tmpl_tkn_max__name' class='xocfg_itm_name'>Template token max</div>
  609. <!-- BTN:undo -->
  610. <div id='xowa.addon.popups.wtxt.tmpl_tkn_max__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  611. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.wtxt.tmpl_tkn_max")' title="reset to &quot;8192&quot;">&nbsp;</span>
  612. </div>
  613. <!-- TEXT:val -->
  614. <div class='xocfg_itm_data'>
  615. <input id="xowa.addon.popups.wtxt.tmpl_tkn_max" data-xocfg-key="xowa.addon.popups.wtxt.tmpl_tkn_max" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="8192"></input></div>
  616. <!-- HIDDEN:key,ctx -->
  617. <input type='hidden' id='xowa.addon.popups.wtxt.tmpl_tkn_max__key_box' value='xowa.addon.popups.wtxt.tmpl_tkn_max'></input>
  618. <input type='hidden' id='xowa.addon.popups.wtxt.tmpl_tkn_max__ctx_box' value='app'></input>
  619. </div>
  620. <!-- DIV:help -->
  621. <div id='xowa.addon.popups.wtxt.tmpl_tkn_max_help_div' class='xohelp_div'>
  622. <div id='xowa.addon.popups.wtxt.tmpl_tkn_max_help_msg' class='xohelp_msg'><p>Maximum length of template token (in bytes) to evaluate<br/>
  623. This option allows faster popups, but at the cost of accuracy:
  624. </p>
  625. <ul>
  626. <li> <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 &quot;never evaluate templates&quot;. If popups are slow, try setting the number to 0, and see if the results are satisfactory.
  627. </li>
  628. <li> <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 &quot;always evaluate templates&quot;. You can also use &quot;-1&quot; as a shortcut for &quot;2,147,483,647&quot;. If popups have garbled text or are missing words, try setting the number to -1.
  629. </li>
  630. </ul>
  631. <p><hr/>
  632. A more detailed explanation follows:<br/>
  633. <hr/>
  634. </p>
  635. <p>Templates are wikitext of the form <code>&#123;&#123;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 &quot;slowest&quot; pieces of wikitext to parse, particularly if they call other templates or Scribunto</p>
  636. <p>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 &quot;if the template is long, assume it's an infobox and should be skipped&quot;. It counts the total number of bytes in a template, and skips it if it's greater than the max. For example, <code>&#123;&#123;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.</p>
  637. <p>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).</p>
  638. </div>
  639. </div>
  640. <div class="xocfg_row flex_div">
  641. <!-- BTN:help_item -->
  642. <div class='xocfg_itm_help'>
  643. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.wtxt.tmpl_keeplist")' title='view more info'>&nbsp;</span>
  644. </div>
  645. <!-- TEXT:key -->
  646. <div id='xowa.addon.popups.wtxt.tmpl_keeplist__name' class='xocfg_itm_name'>Template keeplist</div>
  647. <!-- BTN:undo -->
  648. <div id='xowa.addon.popups.wtxt.tmpl_keeplist__undo' data-xocfg-type='memo' class='xocfg_itm_delete xocfg_itm_hide'>
  649. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.wtxt.tmpl_keeplist")' title="reset to &quot;en.wikipedia.org|formatnum;age;age_in_days;age_in_years_and_days*;nts;number_table_sorting*;as_of;oldstyledatedy;gregorian_serial_date;currentminute;currentsecond;dmca;spaced_ndash;trim;month*;convert*;worldpop*;ipa*;lang*;nowrap*;h:*;mvar;math;vgy;audio;iso_639_name;transl;translate;linktext;zh;nihongo*;japanese_name;ko-hhrm;mp|
  650. en.wiktionary.org|disabled_for_performance_see_issue_511|
  651. &quot;">&nbsp;</span>
  652. </div>
  653. <!-- TEXT:val -->
  654. <div class='xocfg_itm_data'>
  655. <textarea id="xowa.addon.popups.wtxt.tmpl_keeplist" data-xocfg-key="xowa.addon.popups.wtxt.tmpl_keeplist" data-xocfg-type="memo" accesskey="d" class="xocfg_data__memo" rows="4">en.wikipedia.org|formatnum;age;age_in_days;age_in_years_and_days*;nts;number_table_sorting*;as_of;oldstyledatedy;gregorian_serial_date;currentminute;currentsecond;dmca;spaced_ndash;trim;month*;convert*;worldpop*;ipa*;lang*;nowrap*;h:*;mvar;math;vgy;audio;iso_639_name;transl;translate;linktext;zh;nihongo*;japanese_name;ko-hhrm;mp|
  656. en.wiktionary.org|disabled_for_performance_see_issue_511|
  657. </textarea></div>
  658. <!-- HIDDEN:key,ctx -->
  659. <input type='hidden' id='xowa.addon.popups.wtxt.tmpl_keeplist__key_box' value='xowa.addon.popups.wtxt.tmpl_keeplist'></input>
  660. <input type='hidden' id='xowa.addon.popups.wtxt.tmpl_keeplist__ctx_box' value='app'></input>
  661. </div>
  662. <!-- DIV:help -->
  663. <div id='xowa.addon.popups.wtxt.tmpl_keeplist_help_div' class='xohelp_div'>
  664. <div id='xowa.addon.popups.wtxt.tmpl_keeplist_help_msg' class='xohelp_msg'><p>Specifies templates to be shown in popup<br/>
  665. This is a performance optimization
  666. </p>
  667. <ul>
  668. <li> For English Wiktionary, it disables popups because they are slow. See <a href="https://github.com/gnosygnu/xowa/issues/511" rel="nofollow" class="external free" tabindex="-1">https://github.com/gnosygnu/xowa/issues/511</a>
  669. </li>
  670. <li> For English Wikipedia, it only evaluates listed templates.
  671. </li>
  672. </ul>
  673. <p>To disable this option, replaces the keep-names with a *. For example: <code>en.wikipedia.org|*|</code>
  674. <br/>
  675. The rule format is as follows:
  676. </p>
  677. <ul>
  678. <li> Each rule is on a separate line
  679. </li>
  680. <li> Each rule has three parts
  681. <ul>
  682. <li> Wiki domain: Wiki which will be affected by rule
  683. </li>
  684. <li> Keep-names: Names of templates which will be shown in popup.
  685. </li>
  686. <li> Unless-names: Names of templates which should not be included, even if the keep-name is matched.
  687. <ul>
  688. <li> For example, <code>en.wikipedia.org|name*|name_to_always_skip</code> will match any template that starts with &quot;name&quot; unless the template is named &quot;name_to_always_skip&quot;.
  689. </li>
  690. </ul>
  691. </li>
  692. </ul>
  693. </li>
  694. </ul>
  695. <p>A keep-name or an unless-name follows the following format
  696. </p>
  697. <ul>
  698. <li> Are semi-colon separated (<code>;</code>)
  699. </li>
  700. <li> Match any case of the title. For example, &quot;NAme&quot;, matches &quot;NAME&quot;, &quot;name&quot;, &quot;naME&quot;, etc.
  701. </li>
  702. <li> Match space or underscore. For example, &quot;two_words&quot; matches &quot;two_words&quot; and &quot;two words&quot;
  703. </li>
  704. <li> Have one of the following three match patterns
  705. <ul>
  706. <li> Exact name: For example, &quot;name&quot; matches only &quot;name&quot;, and all lowercase/uppercase variants
  707. </li>
  708. <li> Name at start: For example, &quot;name*&quot; will match anything starting with &quot;name&quot; such as &quot;Names&quot;
  709. </li>
  710. <li> Name at end: For example, &quot;*name&quot; will match anything ending with &quot;name&quot; such as &quot;Fullname&quot;
  711. </li>
  712. </ul>
  713. </li>
  714. </ul>
  715. <p><br/>
  716. </p>
  717. <hr/>
  718. <p><b>Default option</b>
  719. </p>
  720. <pre style='overflow:auto'>
  721. en.wikipedia.org|formatnum;age;age_in_days;age_in_years_and_days*;nts;number_table_sorting*;as_of;oldstyledatedy;gregorian_serial_date;currentminute;currentsecond;dmca;spaced_ndash;trim;month*;convert*;worldpop*;ipa*;lang*;nowrap*;h:*;mvar;math;vgy;audio;iso_639_name;transl;translate;linktext;zh;nihongo*;japanese_name;ko-hhrm;mp|
  722. en.wiktionary.org|disabled_for_performance_see_issue_511|
  723. </pre>
  724. </div>
  725. </div>
  726. <h2>Advanced</h2>
  727. <div class="xocfg_row flex_div">
  728. <!-- BTN:help_item -->
  729. <div class='xocfg_itm_help'>
  730. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.ns_allowed")' title='view more info'>&nbsp;</span>
  731. </div>
  732. <!-- TEXT:key -->
  733. <div id='xowa.addon.popups.ns_allowed__name' class='xocfg_itm_name'>Allowed namespaces</div>
  734. <!-- BTN:undo -->
  735. <div id='xowa.addon.popups.ns_allowed__undo' data-xocfg-type='string' class='xocfg_itm_delete xocfg_itm_hide'>
  736. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.ns_allowed")' title="reset to &quot;&quot;">&nbsp;</span>
  737. </div>
  738. <!-- TEXT:val -->
  739. <div class='xocfg_itm_data'>
  740. <input id="xowa.addon.popups.ns_allowed" data-xocfg-key="xowa.addon.popups.ns_allowed" data-xocfg-type="string" accesskey="d" class="xocfg_data__str" type="text" value=""></input></div>
  741. <!-- HIDDEN:key,ctx -->
  742. <input type='hidden' id='xowa.addon.popups.ns_allowed__key_box' value='xowa.addon.popups.ns_allowed'></input>
  743. <input type='hidden' id='xowa.addon.popups.ns_allowed__ctx_box' value='app'></input>
  744. </div>
  745. <!-- DIV:help -->
  746. <div id='xowa.addon.popups.ns_allowed_help_div' class='xohelp_div'>
  747. <div id='xowa.addon.popups.ns_allowed_help_msg' class='xohelp_msg'><p>Restrict popups to certain namespaces<br/>
  748. 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/>
  749. Note the following:
  750. </p>
  751. <ul>
  752. <li> Only namespace names are valid. See the table below for examples of valid names
  753. </li>
  754. <li> Multiple names must be separated with the pipe character (<code>|</code>). For example, <code>(Main)|Help</code>
  755. </li>
  756. <li> Namespaces names are the canonical English names of the namespace, except for &quot;(Main)&quot;
  757. </li>
  758. <li> 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.
  759. </li>
  760. <li> Invalid names are ignored
  761. </li>
  762. <li> Deactivate this feature by blanking the field
  763. </li>
  764. </ul>
  765. <table class='wikitable'>
  766. <tr>
  767. <th> Title
  768. </th>
  769. </tr>
  770. <tr>
  771. <td> (Main)
  772. </td>
  773. </tr>
  774. <tr>
  775. <td> User
  776. </td>
  777. </tr>
  778. <tr>
  779. <td> Project
  780. </td>
  781. </tr>
  782. <tr>
  783. <td> File
  784. </td>
  785. </tr>
  786. <tr>
  787. <td> MediaWiki
  788. </td>
  789. </tr>
  790. <tr>
  791. <td> Template
  792. </td>
  793. </tr>
  794. <tr>
  795. <td> Help
  796. </td>
  797. </tr>
  798. <tr>
  799. <td> Category
  800. </td>
  801. </tr>
  802. <tr>
  803. <td> Special
  804. </td>
  805. </tr>
  806. </table>
  807. </div>
  808. </div>
  809. <div class="xocfg_row flex_div">
  810. <!-- BTN:help_item -->
  811. <div class='xocfg_itm_help'>
  812. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.content.xnde_ignore_ids")' title='view more info'>&nbsp;</span>
  813. </div>
  814. <!-- TEXT:key -->
  815. <div id='xowa.addon.popups.content.xnde_ignore_ids__name' class='xocfg_itm_name'>Ignore HTML elements with the following ids</div>
  816. <!-- BTN:undo -->
  817. <div id='xowa.addon.popups.content.xnde_ignore_ids__undo' data-xocfg-type='string' class='xocfg_itm_delete xocfg_itm_hide'>
  818. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.content.xnde_ignore_ids")' title="reset to &quot;coordinates&quot;">&nbsp;</span>
  819. </div>
  820. <!-- TEXT:val -->
  821. <div class='xocfg_itm_data'>
  822. <input id="xowa.addon.popups.content.xnde_ignore_ids" data-xocfg-key="xowa.addon.popups.content.xnde_ignore_ids" data-xocfg-type="string" accesskey="d" class="xocfg_data__str" type="text" value="coordinates"></input></div>
  823. <!-- HIDDEN:key,ctx -->
  824. <input type='hidden' id='xowa.addon.popups.content.xnde_ignore_ids__key_box' value='xowa.addon.popups.content.xnde_ignore_ids'></input>
  825. <input type='hidden' id='xowa.addon.popups.content.xnde_ignore_ids__ctx_box' value='app'></input>
  826. </div>
  827. <!-- DIV:help -->
  828. <div id='xowa.addon.popups.content.xnde_ignore_ids_help_div' class='xohelp_div'>
  829. <div id='xowa.addon.popups.content.xnde_ignore_ids_help_msg' class='xohelp_msg'><p>Ignore html elements that have the following ids<br/>
  830. This feature is intended for English Wikipedia which has a <code>&#123;&#123;Coordinates}}</code> tag at the top of most geographical articles (for example, <a href="/site/en.wikipedia.org/wiki/North_Pole" tabindex="-1">North Pole</a>)<br/>
  831. Without this option, a Coordinates span would be visible in the top right of the popup, which....
  832. </p>
  833. <ul>
  834. <li> Counts against the popup's number of words
  835. </li>
  836. <li> Does not provide significant summary information for the article
  837. </li>
  838. </ul>
  839. <p>Usage notes:
  840. </p>
  841. <ul>
  842. <li> Any HTML element with a listed id will not be shown in the popup. For example, <code>&lt;span id='coordinates'&gt;0 N 90 E&lt;/span&gt;</code> will not show b/c the html element (<code>span</code>) has a listed id (<code>coordinates</code>)
  843. </li>
  844. <li> To add multiple ids, separate ids with the <code>|</code> character. For example, <code>coordinates|some_other_id</code>.
  845. </li>
  846. <li> 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>
  847. </li>
  848. <li> To deactivate this feature, set the value to <code>&#160;</code> (empty)<br/>
  849. </li>
  850. </ul>
  851. </div>
  852. </div>
  853. <div class="xocfg_row flex_div">
  854. <!-- BTN:help_item -->
  855. <div class='xocfg_itm_help'>
  856. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.scanner.scan_len")' title='view more info'>&nbsp;</span>
  857. </div>
  858. <!-- TEXT:key -->
  859. <div id='xowa.addon.popups.scanner.scan_len__name' class='xocfg_itm_name'>Number of bytes to read each pass</div>
  860. <!-- BTN:undo -->
  861. <div id='xowa.addon.popups.scanner.scan_len__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  862. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.scanner.scan_len")' title="reset to &quot;1024&quot;">&nbsp;</span>
  863. </div>
  864. <!-- TEXT:val -->
  865. <div class='xocfg_itm_data'>
  866. <input id="xowa.addon.popups.scanner.scan_len" data-xocfg-key="xowa.addon.popups.scanner.scan_len" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="1024"></input></div>
  867. <!-- HIDDEN:key,ctx -->
  868. <input type='hidden' id='xowa.addon.popups.scanner.scan_len__key_box' value='xowa.addon.popups.scanner.scan_len'></input>
  869. <input type='hidden' id='xowa.addon.popups.scanner.scan_len__ctx_box' value='app'></input>
  870. </div>
  871. <!-- DIV:help -->
  872. <div id='xowa.addon.popups.scanner.scan_len_help_div' class='xohelp_div'>
  873. <div id='xowa.addon.popups.scanner.scan_len_help_msg' class='xohelp_msg'><p>Number of bytes to read for each pass<br/>
  874. 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/>
  875. </p>
  876. <ul>
  877. <li> Lower numbers may be better for slower machines. Note that the number must be greater than 0.
  878. </li>
  879. <li> Higher numbers may be better for faster machines. Experiment as necessary.
  880. </li>
  881. </ul>
  882. </div>
  883. </div>
  884. <div class="xocfg_row flex_div">
  885. <!-- BTN:help_item -->
  886. <div class='xocfg_itm_help'>
  887. <span class='xoimg_btn_x16 xoimg_help_tip' href='javascript:void(0)' onclick='return xo.help.toggle("xowa.addon.popups.scanner.scan_max")' title='view more info'>&nbsp;</span>
  888. </div>
  889. <!-- TEXT:key -->
  890. <div id='xowa.addon.popups.scanner.scan_max__name' class='xocfg_itm_name'>Maximum number of bytes to read</div>
  891. <!-- BTN:undo -->
  892. <div id='xowa.addon.popups.scanner.scan_max__undo' data-xocfg-type='int' class='xocfg_itm_delete xocfg_itm_hide'>
  893. <span class='xoimg_btn_x16 xoimg_list_undo' onclick='return xo.cfg_edit.delete__send("xowa.addon.popups.scanner.scan_max")' title="reset to &quot;32768&quot;">&nbsp;</span>
  894. </div>
  895. <!-- TEXT:val -->
  896. <div class='xocfg_itm_data'>
  897. <input id="xowa.addon.popups.scanner.scan_max" data-xocfg-key="xowa.addon.popups.scanner.scan_max" data-xocfg-type="int" accesskey="d" class="xocfg_data__int" type="text" value="32768"></input></div>
  898. <!-- HIDDEN:key,ctx -->
  899. <input type='hidden' id='xowa.addon.popups.scanner.scan_max__key_box' value='xowa.addon.popups.scanner.scan_max'></input>
  900. <input type='hidden' id='xowa.addon.popups.scanner.scan_max__ctx_box' value='app'></input>
  901. </div>
  902. <!-- DIV:help -->
  903. <div id='xowa.addon.popups.scanner.scan_max_help_div' class='xohelp_div'>
  904. <div id='xowa.addon.popups.scanner.scan_max_help_msg' class='xohelp_msg'><p>Maximum number of bytes to read<br/>
  905. </p>
  906. <p>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.</p>
  907. <p>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>&lt;!-- 100,000 5 letter words --&gt;</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.</p>
  908. <ul>
  909. <li> 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.
  910. </li>
  911. <li> 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
  912. </li>
  913. </ul>
  914. </div>
  915. </div>
  916. </div>
  917. </div>
  918. </div>
  919. </div>
  920. </div>
  921. <div id="mw-head" class="noprint">
  922. <div id="left-navigation">
  923. <div id="p-namespaces" class="vectorTabs">
  924. <h3>Namespaces</h3>
  925. <ul>
  926. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  927. </ul>
  928. </div>
  929. </div>
  930. </div>
  931. <div id='mw-panel' class='noprint'>
  932. <div id='p-logo'>
  933. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  934. </div>
  935. <div class="portal" id='xowa-portal-home'>
  936. <h3>XOWA</h3>
  937. <div class="body">
  938. <ul>
  939. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  940. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  941. <li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
  942. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  943. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  944. </ul>
  945. </div>
  946. </div>
  947. <div class="portal" id='xowa-portal-started'>
  948. <h3>Getting started</h3>
  949. <div class="body">
  950. <ul>
  951. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  952. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  953. <li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
  954. <li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
  955. <li><a href="http://xowa.org/home/wiki/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
  956. </ul>
  957. </div>
  958. </div>
  959. <div class="portal" id='xowa-portal-android'>
  960. <h3>Android</h3>
  961. <div class="body">
  962. <ul>
  963. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  964. <li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
  965. </ul>
  966. </div>
  967. </div>
  968. <div class="portal" id='xowa-portal-help'>
  969. <h3>Help</h3>
  970. <div class="body">
  971. <ul>
  972. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  973. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  974. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  975. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  976. </ul>
  977. </div>
  978. </div>
  979. <div class="portal" id='xowa-portal-blog'>
  980. <h3>Blog</h3>
  981. <div class="body">
  982. <ul>
  983. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  984. </ul>
  985. </div>
  986. </div>
  987. <div class="portal" id='xowa-portal-links'>
  988. <h3>Links</h3>
  989. <div class="body">
  990. <ul>
  991. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  992. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  993. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  994. </ul>
  995. </div>
  996. </div>
  997. <div class="portal" id='xowa-portal-donate'>
  998. <h3>Donate</h3>
  999. <div class="body">
  1000. <ul>
  1001. <li><a href="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/ -->
  1002. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  1003. <li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
  1004. </ul>
  1005. </div>
  1006. </div>
  1007. </div>
  1008. </body>
  1009. </html>