Shortcuts.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>App/UI/Address bar/Shortcuts - 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>App/UI/Address bar/Shortcuts</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="toc" class="toc">
  19. <div id="toctitle" class="toctitle">
  20. <h2>
  21. Contents
  22. </h2>
  23. </div>
  24. <ul>
  25. <li class="toclevel-1 tocsection-1">
  26. <a href="#Shortcuts_to_wikis_in_the_current_language"><span class="tocnumber">1</span> <span class="toctext">Shortcuts to wikis in the current language</span></a>
  27. </li>
  28. <li class="toclevel-1 tocsection-2">
  29. <a href="#Shortcuts_to_wikis_in_another_language"><span class="tocnumber">2</span> <span class="toctext">Shortcuts to wikis in another language</span></a>
  30. </li>
  31. <li class="toclevel-1 tocsection-3">
  32. <a href="#Search_shortcut"><span class="tocnumber">3</span> <span class="toctext">Search shortcut</span></a>
  33. </li>
  34. <li class="toclevel-1 tocsection-4">
  35. <a href="#Customizing_shortcuts"><span class="tocnumber">4</span> <span class="toctext">Customizing shortcuts</span></a>
  36. </li>
  37. </ul>
  38. </div>
  39. <h2>
  40. <span class="mw-headline" id="Shortcuts_to_wikis_in_the_current_language">Shortcuts to wikis in the current language</span>
  41. </h2>
  42. <p>
  43. XOWA has pre-defined shortcuts to different wikis. These allow quick access to an article in another wiki without entering in the full url.
  44. </p>
  45. <p>
  46. For example, to open the English Wikipedia article on "Earth", you would ordinarily enter:
  47. </p>
  48. <pre>
  49. en.wikipedia.org/wiki/Earth
  50. </pre>
  51. <p>
  52. Instead, using shortcuts, you can enter:
  53. </p>
  54. <pre>
  55. w:Earth
  56. </pre>
  57. <p>
  58. Note that shortcuts are case-sensitive. "w:Earth" will work, but "W:Earth" will not.
  59. </p>
  60. <p>
  61. The following table lists the shortcut for a given wiki type:
  62. </p>
  63. <table class='wikitable'>
  64. <tr>
  65. <th>
  66. shortcut
  67. </th>
  68. <th>
  69. type
  70. </th>
  71. <th>
  72. example shortcut
  73. </th>
  74. <th>
  75. actual url
  76. </th>
  77. </tr>
  78. <tr>
  79. <td>
  80. w
  81. </td>
  82. <td>
  83. Wikipedia
  84. </td>
  85. <td>
  86. w:Earth
  87. </td>
  88. <td>
  89. en.wikipedia.org/wiki/Earth
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>
  94. d
  95. </td>
  96. <td>
  97. Wiktionary
  98. </td>
  99. <td>
  100. d:Earth
  101. </td>
  102. <td>
  103. en.wiktionary.org/wiki/Earth
  104. </td>
  105. </tr>
  106. <tr>
  107. <td>
  108. s
  109. </td>
  110. <td>
  111. Wikisource
  112. </td>
  113. <td>
  114. s:Earth
  115. </td>
  116. <td>
  117. en.wikisource.org/wiki/Earth
  118. </td>
  119. </tr>
  120. <tr>
  121. <td>
  122. v
  123. </td>
  124. <td>
  125. Wikivoyage
  126. </td>
  127. <td>
  128. v:Earth
  129. </td>
  130. <td>
  131. en.wikivoyage.org/wiki/Earth
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>
  136. q
  137. </td>
  138. <td>
  139. Wikiquote
  140. </td>
  141. <td>
  142. q:Earth
  143. </td>
  144. <td>
  145. en.wikiquote.org/wiki/Earth
  146. </td>
  147. </tr>
  148. <tr>
  149. <td>
  150. b
  151. </td>
  152. <td>
  153. Wikibooks
  154. </td>
  155. <td>
  156. b:Earth
  157. </td>
  158. <td>
  159. en.wikibooks.org/wiki/Earth
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>
  164. u
  165. </td>
  166. <td>
  167. Wikiversity
  168. </td>
  169. <td>
  170. u:Earth
  171. </td>
  172. <td>
  173. en.wikiversity.org/wiki/Earth
  174. </td>
  175. </tr>
  176. <tr>
  177. <td>
  178. n
  179. </td>
  180. <td>
  181. Wikinews
  182. </td>
  183. <td>
  184. n:Earth
  185. </td>
  186. <td>
  187. en.wikinews.org/wiki/Earth
  188. </td>
  189. </tr>
  190. </table>
  191. <h2>
  192. <span class="mw-headline" id="Shortcuts_to_wikis_in_another_language">Shortcuts to wikis in another language</span>
  193. </h2>
  194. <p>
  195. Wikis in a non-English language can be opened by prefixing the language code to the shortcut.
  196. </p>
  197. <p>
  198. For example, to go to <code>fr.wikipedia.org/wiki/Terre</code>, you would enter the following:
  199. </p>
  200. <pre>
  201. fr.w:Terre
  202. </pre>
  203. <p>
  204. Note that <code>fr</code> is the language code for "French" and <code>w</code> is the XOWA type code for "Wikipedia" as defined above.
  205. </p>
  206. <h2>
  207. <span class="mw-headline" id="Search_shortcut">Search shortcut</span>
  208. </h2>
  209. <p>
  210. In addition, there is a special shortcut designed for search.
  211. </p>
  212. <pre>
  213. ?:Earth
  214. </pre>
  215. <p>
  216. This is equivalent to:
  217. </p>
  218. <pre>
  219. Special:Search/Earth?fulltext=yes
  220. </pre>
  221. <p>
  222. The following is a full list of default custom shortcuts
  223. </p>
  224. <table class='wikitable'>
  225. <tr>
  226. <th>
  227. shortcut
  228. </th>
  229. <th>
  230. format <sup>1</sup>
  231. </th>
  232. </tr>
  233. <tr>
  234. <td>
  235. c
  236. </td>
  237. <td>
  238. commons.wikimedia.org/wiki/~{0}
  239. </td>
  240. </tr>
  241. <tr>
  242. <td>
  243. sp
  244. </td>
  245. <td>
  246. wikispecies.wikimedia.org/wiki/~{0}
  247. </td>
  248. </tr>
  249. <tr>
  250. <td>
  251. meta
  252. </td>
  253. <td>
  254. meta.wikimedia.org/wiki/~{0}
  255. </td>
  256. </tr>
  257. <tr>
  258. <td>
  259. ?
  260. </td>
  261. <td>
  262. Special:Search/~{0}?fulltext=yes
  263. </td>
  264. </tr>
  265. <tr>
  266. <td>
  267. wd
  268. </td>
  269. <td>
  270. www.wikidata.org/wiki/~{0}
  271. </td>
  272. </tr>
  273. <tr>
  274. <td>
  275. wd.q
  276. </td>
  277. <td>
  278. www.wikidata.org/wiki/q~{0}
  279. </td>
  280. </tr>
  281. <tr>
  282. <td>
  283. wd.p
  284. </td>
  285. <td>
  286. www.wikidata.org/wiki/Property:p~{0}
  287. </td>
  288. </tr>
  289. </table>
  290. <p>
  291. <sup>1</sup>Note that the ~{0} is used for substitution.
  292. </p>
  293. <h2>
  294. <span class="mw-headline" id="Customizing_shortcuts">Customizing shortcuts</span>
  295. </h2>
  296. <p>
  297. XOWA also allows customization of shortcuts by modifying the custom gfs file. See: <a href="/wiki/Special:XowaCfg%3Fgrp%3Dxowa.app.startup" id="xolnki_2" title="Special:XowaCfg?grp=xowa.app.startup">Options: App - Startup</a>
  298. </p>
  299. <p>
  300. Shortcuts should be chosen wisely. In particular, using "http", "https" and "file" as a shortcut is heavily discouraged. Similarly, "Category", "Talk", "Help", "Template", "Wikipedia" and other wiki namespaces should be avoided.
  301. </p>
  302. <p>
  303. <b>NOTE</b>: The following script may change in future versions. If your customized shortcut stops working in a future version, please check this page again.
  304. </p>
  305. <pre>
  306. app.gui_mgr.url_macros {
  307. // note that custom macros take precedence over types. For example, a custom macro of "en.w" will override the type macro of "en.w".
  308. custom {
  309. /*
  310. ~{0}: page
  311. The page is the rest of the url after the ":". For example, in "c:Earth", "Earth" is the page.
  312. */
  313. set('c' , 'commons.wikimedia.org/wiki/~{0}');
  314. set('sp' , 'wikispecies.wikimedia.org/wiki/~{0}');
  315. set('meta' , 'meta.wikimedia.org/wiki/~{0}');
  316. set('wd' , 'www.wikidata.org/wiki/~{0}');
  317. set('wd.q' , 'www.wikidata.org/wiki/Q~{0}');
  318. set('wd.p' , 'www.wikidata.org/wiki/Property:P~{0}');
  319. set('?' , 'Special:Search/~{0}?fulltext=y');
  320. // clear; // clears all macros
  321. // del('c'); // deletes macro for "c"
  322. }
  323. lang_default = 'en'; // sets default language to "en". Entering in "w:French" is the same as "en.w:French"
  324. types {
  325. /*
  326. ~{0}: language code
  327. The langage code is the part of the url before the first ".". For example, in "en.w:Earth", "en" is the language code.
  328. If a language code is not entered, then the "lang_default" will be used. For example, "w:Earth" has no language code, and "en" will be used.
  329. ~{1}: page
  330. The page is the rest of the url after the ":". For example, in "en.w:Earth", "Earth" is the page.
  331. */
  332. set('w', '~{0}.wikipedia.org/wiki/~{1}');
  333. set('d', '~{0}.wiktionary.org/wiki/~{1}');
  334. set('s', '~{0}.wikisource.org/wiki/~{1}');
  335. set('v', '~{0}.wikivoyage.org/wiki/~{1}');
  336. set('q', '~{0}.wikiquote.org/wiki/~{1}');
  337. set('b', '~{0}.wikibooks.org/wiki/~{1}');
  338. set('u', '~{0}.wikiversity.org/wiki/~{1}');
  339. set('n', '~{0}.wikinews.org/wiki/~{1}');
  340. set('a', '~{0}.wikia.com/wiki/~{1}');
  341. // clear; // clears all macros
  342. // del('a'); // deletes macro for "a"
  343. }
  344. }
  345. </pre>
  346. </div>
  347. </div>
  348. </div>
  349. <div id="mw-head" class="noprint">
  350. <div id="left-navigation">
  351. <div id="p-namespaces" class="vectorTabs">
  352. <h3>Namespaces</h3>
  353. <ul>
  354. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  355. </ul>
  356. </div>
  357. </div>
  358. </div>
  359. <div id='mw-panel' class='noprint'>
  360. <div id='p-logo'>
  361. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  362. </div>
  363. <div class="portal" id='xowa-portal-home'>
  364. <h3>XOWA</h3>
  365. <div class="body">
  366. <ul>
  367. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  368. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  369. <li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
  370. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  371. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  372. </ul>
  373. </div>
  374. </div>
  375. <div class="portal" id='xowa-portal-started'>
  376. <h3>Getting started</h3>
  377. <div class="body">
  378. <ul>
  379. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  380. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  381. <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>
  382. <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>
  383. <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>
  384. </ul>
  385. </div>
  386. </div>
  387. <div class="portal" id='xowa-portal-android'>
  388. <h3>Android</h3>
  389. <div class="body">
  390. <ul>
  391. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  392. <li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
  393. </ul>
  394. </div>
  395. </div>
  396. <div class="portal" id='xowa-portal-help'>
  397. <h3>Help</h3>
  398. <div class="body">
  399. <ul>
  400. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  401. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  402. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  403. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  404. </ul>
  405. </div>
  406. </div>
  407. <div class="portal" id='xowa-portal-blog'>
  408. <h3>Blog</h3>
  409. <div class="body">
  410. <ul>
  411. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  412. </ul>
  413. </div>
  414. </div>
  415. <div class="portal" id='xowa-portal-links'>
  416. <h3>Links</h3>
  417. <div class="body">
  418. <ul>
  419. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  420. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  421. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  422. </ul>
  423. </div>
  424. </div>
  425. <div class="portal" id='xowa-portal-donate'>
  426. <h3>Donate</h3>
  427. <div class="body">
  428. <ul>
  429. <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/ -->
  430. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  431. <li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
  432. </ul>
  433. </div>
  434. </div>
  435. </div>
  436. </body>
  437. </html>