1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-10-27 20:34:16 +00:00
gnosygnu_xowa/home/wiki/App/UI/Address_bar/Shortcuts.html
2017-06-25 21:14:55 -04:00

452 lines
14 KiB
HTML

<!DOCTYPE html>
<html dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>App/UI/Address bar/Shortcuts - XOWA</title>
<link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
<link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
<div id="mw-page-base" class="noprint"></div>
<div id="mw-head-base" class="noprint"></div>
<div id="content" class="mw-body">
<h1 id="firstHeading" class="firstHeading"><span>App/UI/Address bar/Shortcuts</span></h1>
<div id="bodyContent" class="mw-body-content">
<div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
<div id="contentSub"></div>
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<div id="toc" class="toc">
<div id="toctitle" class="toctitle">
<h2>
Contents
</h2>
</div>
<ul>
<li class="toclevel-1 tocsection-1">
<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>
</li>
<li class="toclevel-1 tocsection-2">
<a href="#Shortcuts_to_wikis_in_another_language"><span class="tocnumber">2</span> <span class="toctext">Shortcuts to wikis in another language</span></a>
</li>
<li class="toclevel-1 tocsection-3">
<a href="#Search_shortcut"><span class="tocnumber">3</span> <span class="toctext">Search shortcut</span></a>
</li>
<li class="toclevel-1 tocsection-4">
<a href="#Customizing_shortcuts"><span class="tocnumber">4</span> <span class="toctext">Customizing shortcuts</span></a>
</li>
</ul>
</div>
<h2>
<span class="mw-headline" id="Shortcuts_to_wikis_in_the_current_language">Shortcuts to wikis in the current language</span>
</h2>
<p>
XOWA has pre-defined shortcuts to different wikis. These allow quick access to an article in another wiki without entering in the full url.
</p>
<p>
For example, to open the English Wikipedia article on "Earth", you would ordinarily enter:
</p>
<pre>
en.wikipedia.org/wiki/Earth
</pre>
<p>
Instead, using shortcuts, you can enter:
</p>
<pre>
w:Earth
</pre>
<p>
Note that shortcuts are case-sensitive. "w:Earth" will work, but "W:Earth" will not.
</p>
<p>
The following table lists the shortcut for a given wiki type:
</p>
<table class='wikitable'>
<tr>
<th>
shortcut
</th>
<th>
type
</th>
<th>
example shortcut
</th>
<th>
actual url
</th>
</tr>
<tr>
<td>
w
</td>
<td>
Wikipedia
</td>
<td>
w:Earth
</td>
<td>
en.wikipedia.org/wiki/Earth
</td>
</tr>
<tr>
<td>
d
</td>
<td>
Wiktionary
</td>
<td>
d:Earth
</td>
<td>
en.wiktionary.org/wiki/Earth
</td>
</tr>
<tr>
<td>
s
</td>
<td>
Wikisource
</td>
<td>
s:Earth
</td>
<td>
en.wikisource.org/wiki/Earth
</td>
</tr>
<tr>
<td>
v
</td>
<td>
Wikivoyage
</td>
<td>
v:Earth
</td>
<td>
en.wikivoyage.org/wiki/Earth
</td>
</tr>
<tr>
<td>
q
</td>
<td>
Wikiquote
</td>
<td>
q:Earth
</td>
<td>
en.wikiquote.org/wiki/Earth
</td>
</tr>
<tr>
<td>
b
</td>
<td>
Wikibooks
</td>
<td>
b:Earth
</td>
<td>
en.wikibooks.org/wiki/Earth
</td>
</tr>
<tr>
<td>
u
</td>
<td>
Wikiversity
</td>
<td>
u:Earth
</td>
<td>
en.wikiversity.org/wiki/Earth
</td>
</tr>
<tr>
<td>
n
</td>
<td>
Wikinews
</td>
<td>
n:Earth
</td>
<td>
en.wikinews.org/wiki/Earth
</td>
</tr>
</table>
<h2>
<span class="mw-headline" id="Shortcuts_to_wikis_in_another_language">Shortcuts to wikis in another language</span>
</h2>
<p>
Wikis in a non-English language can be opened by prefixing the language code to the shortcut.
</p>
<p>
For example, to go to <code>fr.wikipedia.org/wiki/Terre</code>, you would enter the following:
</p>
<pre>
fr.w:Terre
</pre>
<p>
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.
</p>
<h2>
<span class="mw-headline" id="Search_shortcut">Search shortcut</span>
</h2>
<p>
In addition, there is a special shortcut designed for search.
</p>
<pre>
?:Earth
</pre>
<p>
This is equivalent to:
</p>
<pre>
Special:Search/Earth?fulltext=yes
</pre>
<p>
The following is a full list of default custom shortcuts
</p>
<table class='wikitable'>
<tr>
<th>
shortcut
</th>
<th>
format <sup>1</sup>
</th>
</tr>
<tr>
<td>
c
</td>
<td>
commons.wikimedia.org/wiki/~{0}
</td>
</tr>
<tr>
<td>
sp
</td>
<td>
wikispecies.wikimedia.org/wiki/~{0}
</td>
</tr>
<tr>
<td>
meta
</td>
<td>
meta.wikimedia.org/wiki/~{0}
</td>
</tr>
<tr>
<td>
?
</td>
<td>
Special:Search/~{0}?fulltext=yes
</td>
</tr>
<tr>
<td>
wd
</td>
<td>
www.wikidata.org/wiki/~{0}
</td>
</tr>
<tr>
<td>
wd.q
</td>
<td>
www.wikidata.org/wiki/q~{0}
</td>
</tr>
<tr>
<td>
wd.p
</td>
<td>
www.wikidata.org/wiki/Property:p~{0}
</td>
</tr>
</table>
<p>
<sup>1</sup>Note that the ~{0} is used for substitution.
</p>
<h2>
<span class="mw-headline" id="Customizing_shortcuts">Customizing shortcuts</span>
</h2>
<p>
XOWA also allows customization of shortcuts by modifying the custom gfs file. See: <a href="http://xowa.org/home/wiki/Special:XowaCfg%3Fgrp%3Dxowa.app.startup.html" id="xolnki_2" title="Special:XowaCfg?grp=xowa.app.startup">Options: App - Startup</a>
</p>
<p>
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.
</p>
<p>
<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.
</p>
<pre>
app.gui_mgr.url_macros {
// note that custom macros take precedence over types. For example, a custom macro of "en.w" will override the type macro of "en.w".
custom {
/*
~{0}: page
The page is the rest of the url after the ":". For example, in "c:Earth", "Earth" is the page.
*/
set('c' , 'commons.wikimedia.org/wiki/~{0}');
set('sp' , 'wikispecies.wikimedia.org/wiki/~{0}');
set('meta' , 'meta.wikimedia.org/wiki/~{0}');
set('wd' , 'www.wikidata.org/wiki/~{0}');
set('wd.q' , 'www.wikidata.org/wiki/Q~{0}');
set('wd.p' , 'www.wikidata.org/wiki/Property:P~{0}');
set('?' , 'Special:Search/~{0}?fulltext=y');
// clear; // clears all macros
// del('c'); // deletes macro for "c"
}
lang_default = 'en'; // sets default language to "en". Entering in "w:French" is the same as "en.w:French"
types {
/*
~{0}: language code
The langage code is the part of the url before the first ".". For example, in "en.w:Earth", "en" is the language code.
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.
~{1}: page
The page is the rest of the url after the ":". For example, in "en.w:Earth", "Earth" is the page.
*/
set('w', '~{0}.wikipedia.org/wiki/~{1}');
set('d', '~{0}.wiktionary.org/wiki/~{1}');
set('s', '~{0}.wikisource.org/wiki/~{1}');
set('v', '~{0}.wikivoyage.org/wiki/~{1}');
set('q', '~{0}.wikiquote.org/wiki/~{1}');
set('b', '~{0}.wikibooks.org/wiki/~{1}');
set('u', '~{0}.wikiversity.org/wiki/~{1}');
set('n', '~{0}.wikinews.org/wiki/~{1}');
set('a', '~{0}.wikia.com/wiki/~{1}');
// clear; // clears all macros
// del('a'); // deletes macro for "a"
}
}
</pre>
</div>
</div>
</div>
<div id="mw-head" class="noprint">
<div id="left-navigation">
<div id="p-namespaces" class="vectorTabs">
<h3>Namespaces</h3>
<ul>
<li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
</ul>
</div>
</div>
</div>
<div id='mw-panel' class='noprint'>
<div id='p-logo'>
<a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
</div>
<div class="portal" id='xowa-portal-home'>
<h3>XOWA</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
<li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
<li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
<li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-started'>
<h3>Getting started</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
<li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
<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>
<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>
<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>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-android'>
<h3>Android</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
<li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-help'>
<h3>Help</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-blog'>
<h3>Blog</h3>
<div class="body">
<ul>
<li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-links'>
<h3>Links</h3>
<div class="body">
<ul>
<li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
<li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
<li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
</ul>
</div>
</div>
<div class="portal" id='xowa-portal-donate'>
<h3>Donate</h3>
<div class="body">
<ul>
<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/ -->
<li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
<li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>