mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Res: Add resources from xowa_app_windows_64_v4.5.26.1810
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
.cur_head_text {
|
||||
width: calc(100% - 108px);
|
||||
}
|
||||
.cur_head_btns {
|
||||
width: 108px;
|
||||
}
|
||||
|
||||
/* Detail Tbl */
|
||||
.cur_data_row {
|
||||
padding: 4px 0px 4px;
|
||||
}
|
||||
.cur_data_row label {
|
||||
display: inline-block;
|
||||
width: 90px;
|
||||
margin: 0px 4px 0px 10px;
|
||||
vertical-align: top;
|
||||
align-self: flex-start;
|
||||
-webkit-align-self: flex-start;
|
||||
|
||||
font-weight: bold;
|
||||
}
|
||||
.cur_data_row label::after {
|
||||
content: ":";
|
||||
}
|
||||
.cur_data_input {
|
||||
display: inline-block;
|
||||
width: calc(100% - 140px);
|
||||
}
|
||||
.cur_data_icon {
|
||||
margin-left: 7px;
|
||||
}
|
||||
.files_table th {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.files_table_url, .files_table_size, .files_table_md5 {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 4px;
|
||||
}
|
||||
.files_table_url {
|
||||
}
|
||||
.files_table_size {
|
||||
text-align:right;
|
||||
padding:0px 25px 0px 25px; /* use padding to add space between left and right cols */
|
||||
}
|
||||
.files_table_md5 {
|
||||
font-family:Courier New;
|
||||
}
|
||||
input[readonly]
|
||||
{
|
||||
background-color:#eff0f1;
|
||||
border:1px solid #ddd;
|
||||
}
|
||||
|
||||
.cur_actions_row {
|
||||
display: inline-block;
|
||||
margin: 0px 4px 0px 10px;
|
||||
vertical-align: top;
|
||||
align-self: flex-start;
|
||||
-webkit-align-self: flex-start;
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
(function (xo) {
|
||||
xo.wiki_directory = new function() {
|
||||
this.item_send = function(proc, args) {
|
||||
try {xo.server.send_by_bridge('wiki.directory.item', proc, args);}
|
||||
catch (err) {alert(err);}
|
||||
}
|
||||
this.get_elem_val = function(id) {
|
||||
var elem = document.getElementById(id);
|
||||
return elem == null ? null : elem.value;
|
||||
}
|
||||
this.item__save = function() {
|
||||
xo.wiki_directory.notify__clear();
|
||||
var data =
|
||||
{
|
||||
id: this.get_elem_val('id_lbl')
|
||||
, domain: this.get_elem_val('domain_box')
|
||||
, name: this.get_elem_val('name_box')
|
||||
, dir: this.get_elem_val('dir_box')
|
||||
, mainpage: this.get_elem_val('mainpage_box')
|
||||
};
|
||||
xo.wiki_directory.item_send('save', data);
|
||||
}
|
||||
this.item__delete = function() {
|
||||
var data =
|
||||
{
|
||||
id: this.get_elem_val('id_lbl')
|
||||
, domain: this.get_elem_val('domain_box')
|
||||
};
|
||||
xo.wiki_directory.item_send('delete', data);
|
||||
}
|
||||
this.item__reindex_search = function() {
|
||||
xo.notify.elem_anchor = '#cur_help_div'; // moved here b/c of report of crash when New personal wiki is opened
|
||||
xo.wiki_directory.item_send('reindex_search', {domain:this.get_elem_val('domain_box')});
|
||||
}
|
||||
|
||||
this.io_cmd__select = function() {
|
||||
// call xowa to launch file_dialog
|
||||
var file_path = xowa_exec('scripts_exec', 'app.gui.kit.ask_dir("Please select a folder");');
|
||||
if (file_path == null || file_path == '') return; // nothing selected; exit
|
||||
|
||||
// update val
|
||||
var elem = document.getElementById('dir_box');
|
||||
elem.value = file_path;
|
||||
}
|
||||
|
||||
this.notify__clear = function() {
|
||||
var elem = document.getElementById('xo_msg_box');
|
||||
elem.innerHTML = "";
|
||||
}
|
||||
this.notify__recv = function(msg_str) {
|
||||
try {
|
||||
var msg = JSON.parse(msg_str);
|
||||
var elem_id = msg.elem_id;
|
||||
if (!elem_id) elem_id = 'xo_msg_box';
|
||||
var msg_text = msg.msg_text;
|
||||
|
||||
var elem = document.getElementById(elem_id);
|
||||
elem.innerHTML = elem.textContent + msg_text;
|
||||
return true;
|
||||
} catch (err) {
|
||||
alert(err);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}(window.xo = window.xo || {}));
|
||||
@@ -0,0 +1,82 @@
|
||||
<div id='xo_msg_box' style='width:100%; color:red'>
|
||||
</div>
|
||||
<div id='cur_help_div' class='xohelp_div'>
|
||||
<div id='cur_help_msg' class='xohelp_msg'>
|
||||
<b>Info</b>
|
||||
<div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Domain</b>: Domain of your wiki. Used for the URL bar. For example: <code>wiki.me.org</code>. Cannot be changed after wiki is created</span></div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Name</b>: Friendly name for the wiki. Shown in list of wikis. For example: <code>My wiki</code></span></div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Folder</b>: Folder for the wiki. A file with the domain name will be created in the folder: For example: <code>C:\personal\wiki.me.org</code>. Note that this will create a file called <code>C:\personal\wiki.me.org\wiki.me.org.xowa</code></span></div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'><b>Main Page</b>: The default start page for the wiki. For example, entering in <code>wiki.me.org</code> will navigate directly to <code>Main_Page</code>. Cannot be changed after wiki is created</span></div>
|
||||
For more info, see <a href='/site/home/wiki/App/Personal_wikis/New_wiki'>the new wiki help page</a>
|
||||
</div>
|
||||
<b>Buttons</b>
|
||||
<div>
|
||||
{{#mode_is_new}}
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_list_save'> </span><span class='xohelp_row_text'>Creates the wiki</span></div>
|
||||
{{/mode_is_new}}
|
||||
{{^mode_is_new}}
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_list_save'> </span><span class='xohelp_row_text'>Saves the current settings</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_list_delete'> </span><span class='xohelp_row_text'>Deletes the wiki from the list. Note that the file itself will not be deleted.</span></div>
|
||||
{{/mode_is_new}}
|
||||
</div>
|
||||
{{^mode_is_new}}
|
||||
<b>Commands</b>
|
||||
<div>
|
||||
<div class='xohelp_row'><span class='xohelp_bullet'> </span><span class='xohelp_row_text'>Reindex pages for search bar. See <a href='/site/home/wiki/App/Personal_wikis/Search'>the search help page</a></span></div>
|
||||
</div>
|
||||
{{/mode_is_new}}
|
||||
</div>
|
||||
</div>
|
||||
<div class='main_body' id='main_body'>
|
||||
<div class='xotbl_head_row'>
|
||||
<div class='xotbl_head_text cur_head_text'>
|
||||
{{#mode_is_new}}Create a wiki{{/mode_is_new}}
|
||||
{{^mode_is_new}}Edit the wiki{{/mode_is_new}}
|
||||
</div>
|
||||
<a class='xoimg_btn_x24 xoimg_list_save' title='save changes' href='javascript:void(0)' accesskey='s'
|
||||
onclick='xo.wiki_directory.item__save();'> </a>
|
||||
{{^mode_is_new}}
|
||||
<a class='xoimg_btn_x24 xoimg_list_delete' title='remove wiki' href='javascript:void(0)'
|
||||
data_alertify_msg='Please confirm that you wish to remove the wiki from your list<br/>Note that the file itself will not be deleted'
|
||||
data_alertify_ok='Remove'
|
||||
data_alertify_cancel='Cancel'
|
||||
data_alertify_func='xo.wiki_directory.item__delete();'
|
||||
onclick='return xo.alertify.confirm_func(this);'> </a>
|
||||
{{/mode_is_new}}
|
||||
<a class='xoimg_btn_x24 xoimg_help_tip' title='view help' href='javascript:void(0)' onclick='return xo.help.toggle("cur")'> </a>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Domain</label>
|
||||
<input id='domain_box' type='text' accesskey='d' value='{{domain}}' class='cur_data_input'{{#mode_is_new}} placeholder='Enter a domain (For example: wiki.me.org)'{{/mode_is_new}}{{^mode_is_new}} readonly{{/mode_is_new}}></input>
|
||||
<input id='id_lbl' type='hidden' value='{{id}}'></span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Name</label>
|
||||
<input id='name_box' type='text' value='{{name}}' class='cur_data_input'{{#mode_is_new}} placeholder='Enter a name (For example: My wiki)'{{/mode_is_new}}></input>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Folder</label>
|
||||
<input id='dir_box' type='text' value='{{dir}}' class='cur_data_input'{{#mode_is_new}} placeholder='Enter a folder (For example: C:\personal\wiki.me.org). You can also click on the wrench at the far-right'{{/mode_is_new}}></input>
|
||||
<span class="xoimg_btn_x16 xoimg_app_configure cur_data_icon" onclick='xo.wiki_directory.io_cmd__select();'> </span>
|
||||
</div>
|
||||
<div class="xotbl_data_row cur_data_row">
|
||||
<label>Main Page</label>
|
||||
<input id='mainpage_box' type='text' value='{{mainpage}}' class='cur_data_input'{{#mode_is_new}} placeholder='Enter the name for the Main Page. (For example: Main_Page)'{{/mode_is_new}}{{^mode_is_new}} readonly{{/mode_is_new}}></input>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
{{^mode_is_new}}
|
||||
<div class='main_body' id='other_body'>
|
||||
<div class='xotbl_head_row'>
|
||||
<div class='xotbl_head_text cur_head_text'>
|
||||
Other actions
|
||||
</div>
|
||||
</div>
|
||||
<div class="xotbl_data_row">
|
||||
<div class='cur_actions_row'>
|
||||
<a class='' title='reindex' href='javascript:void(0)' accesskey='f' onclick='return xo.wiki_directory.item__reindex_search();'>Reindex pages for search bar</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/mode_is_new}}
|
||||
@@ -0,0 +1,476 @@
|
||||
Welcome to your personal wiki!
|
||||
|
||||
Personal wikis are new and will be in continual development! If you encounter issues, please report them through the [[xowa.home:Help/Feedback|Feedback page]].
|
||||
|
||||
== Quick start ==
|
||||
=== Editing this page ===
|
||||
* Switch to edit mode by pressing <code>Edit</code> near the top-right of the page
|
||||
* Edit the text by typing directly in the text box. For this example, enter <code>Hello, world!</code> at the top of the text box.
|
||||
* Save the page by pressing the <code>Save page</code> button at the bottom of the text box
|
||||
|
||||
Congratulations! You should see <code>Hello, world!</code> at the top of the page
|
||||
|
||||
=== Creating a new page ===
|
||||
* Navigate to a page by entering a page title in the url bar. For this example, enter <code>Test</code>.
|
||||
* A blank page will open in edit mode. Enter in some text in the text box. For this example, enter <code>Some text for the page</code>
|
||||
* Save the page.
|
||||
|
||||
Congratulations! You have just created a new page called <code>Test</code>
|
||||
|
||||
=== Linking to a page ===
|
||||
* Switch to edit mode.
|
||||
* Enter a link by entering text into the text box. For this example, use <code><nowiki>[[Test]]</nowiki></code>.
|
||||
* Save the page. The word <code><nowiki>Test</nowiki></code> will show and be highlighted in blue.
|
||||
* Click on the <code>Test</code> link. The <code>Test</code> page will open.
|
||||
|
||||
Congratulations! You have just linked to a page called <code>Test</code>
|
||||
|
||||
== Basic editing ==
|
||||
The best place to start is Wikipedia's guide for editing: https://en.wikipedia.org/wiki/Help:Getting_started
|
||||
|
||||
The table below is provided for reference. Note the following columns:
|
||||
* '''function''': the name of the function
|
||||
* '''example''': an example of the function as shown in HTML
|
||||
* '''wikitext''': the actual wikitext used to render the function
|
||||
* '''html''': an alternative way of rendering the same wikitext, but only with html.
|
||||
|
||||
=== HTML tags ===
|
||||
Most HTML tags are available.
|
||||
* '''HTML tags can be used as an alternative to wikitext.''': For example, <i>italicized text</i> can also be shown with <code><nowiki><i>italicized text</i></nowiki>
|
||||
* '''HTML tags are needed for other functions.''': For example, the following have no wikitext equivalent <code><nowiki><u>underline</u></nowiki></code>, <code><nowiki><s>strikethru</s></nowiki></code>, etc..
|
||||
|
||||
However, there are some notable exceptions:
|
||||
* '''anchor tags are not allowed''': Any <code><a></code> will be rendered literally. Instead, use an internal / external link. For example, <code><nowiki>[[Test]]</nowiki></code>
|
||||
* '''image tags are not allowed''': Any <code><img></code> will be rendered literally. Instead, use an internal link in the file namespace. For example, <code><nowiki>[[File:Image.png]]</nowiki></code>
|
||||
* '''javascript / events are not allowed''': All javascript and "onevent" blocks are removed.
|
||||
|
||||
{|class=wikitable style="background:white"
|
||||
|-
|
||||
! function
|
||||
! example
|
||||
! wikitext
|
||||
! html
|
||||
|-
|
||||
| italics
|
||||
| ''italicized text''
|
||||
| <code><nowiki>''italicized text''</nowiki></code>
|
||||
| <code><nowiki><i>italicized text</<i></nowiki></code>
|
||||
|-
|
||||
| bold
|
||||
| '''bold text'''
|
||||
| <code><nowiki>'''bold text'''</nowiki></code>
|
||||
| <code><nowiki><b>bold text</<b></nowiki></code>
|
||||
|-
|
||||
| bold and italics
|
||||
| '''''bold and italicized text'''''
|
||||
| <code><nowiki>'''''bold and italicized text'''''</nowiki></code>
|
||||
| <code><nowiki><b><i>bold and italicized text</i></b></nowiki></code>
|
||||
|-
|
||||
| underline
|
||||
| <u>underlined text</u>
|
||||
| <code><nowiki>N/A</nowiki></code>
|
||||
| <code><nowiki><u>underlined text</u></nowiki></code>
|
||||
|-
|
||||
| strike-thru
|
||||
| <s>strike-thru text</s>
|
||||
| <code><nowiki>N/A</nowiki></code>
|
||||
| <code><nowiki><s>strike-thru text</s></nowiki></code>
|
||||
|-
|
||||
| color
|
||||
| <span style='color:green'>colored text</span>
|
||||
| <code><nowiki>N/A</nowiki></code>
|
||||
| <code><nowiki><span style='color:green'>colored text</span></nowiki></code>
|
||||
|-
|
||||
| external url: url only
|
||||
| http://xowa.org
|
||||
| <code><nowiki>http://xowa.org</nowiki></code>
|
||||
| <code>N/A</code>
|
||||
|-
|
||||
| external url: url with name
|
||||
| [http://xowa.org xowa web site]
|
||||
| <code><nowiki>[http://xowa.org xowa web site]</nowiki></code>
|
||||
| <code>N/A</code>
|
||||
|-
|
||||
| external url: numbered
|
||||
| [http://xowa.org]
|
||||
| <code><nowiki>[http://xowa.org]</nowiki></code>
|
||||
| <code>N/A</code>
|
||||
|-
|
||||
| internal url: page only
|
||||
| [[Test]]
|
||||
| <code><nowiki>[[Test]]</nowiki></code>
|
||||
| <code>N/A</code>
|
||||
|-
|
||||
| internal url: page with name
|
||||
| [[Test|My test page]]
|
||||
| <code><nowiki>[[Test|My test page]]</nowiki></code>
|
||||
| <code>N/A</code>
|
||||
|-
|
||||
| paragraph<br/>
|
||||
|
|
||||
para 1
|
||||
|
||||
para 2
|
||||
|
|
||||
<pre>
|
||||
para 1
|
||||
|
||||
para 2
|
||||
</pre>
|
||||
<ref group='basics'>enter a completely blank line between paragraphs</ref>
|
||||
|
|
||||
<pre>
|
||||
<p>para 1</p>
|
||||
<p>para 2</p>
|
||||
</pre>
|
||||
|-
|
||||
| preformatted blocks
|
||||
|
|
||||
line 1
|
||||
line 2
|
||||
|
|
||||
<pre>
|
||||
line 1
|
||||
line 2
|
||||
</pre>
|
||||
<ref group='basics'>start a line with a space</ref>
|
||||
|
|
||||
<pre>
|
||||
<pre>
|
||||
line 1
|
||||
para 2
|
||||
</pre>
|
||||
</pre>
|
||||
|-
|
||||
| list: bulleted
|
||||
|
|
||||
* a
|
||||
** aa
|
||||
*** aaa
|
||||
* b
|
||||
* c
|
||||
** cc
|
||||
|
|
||||
<pre>
|
||||
* a
|
||||
** aa
|
||||
*** aaa
|
||||
* b
|
||||
* c
|
||||
** cc
|
||||
</pre>
|
||||
|
|
||||
<pre>
|
||||
<ul>
|
||||
<li>a
|
||||
<ul>
|
||||
<li>aa
|
||||
<ul>
|
||||
<li>aaa</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>b</li>
|
||||
<li>c
|
||||
<ul>
|
||||
<li>cc
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</pre>
|
||||
</pre>
|
||||
|-
|
||||
| list: numbered
|
||||
|
|
||||
# a
|
||||
## aa
|
||||
### aaa
|
||||
# b
|
||||
# c
|
||||
## cc
|
||||
|
|
||||
<pre>
|
||||
# a
|
||||
## aa
|
||||
### aaa
|
||||
# b
|
||||
# c
|
||||
## cc
|
||||
</pre>
|
||||
|
|
||||
<pre>
|
||||
<ol>
|
||||
<li>a
|
||||
<ol>
|
||||
<li>aa
|
||||
<ol>
|
||||
<li>aaa</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>b</li>
|
||||
<li>c
|
||||
<ol>
|
||||
<li>cc
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</pre>
|
||||
|-
|
||||
| header
|
||||
|
|
||||
=== Basic editing: Test Level a3 ===
|
||||
==== Basic editing: Test Level a4 ====
|
||||
===== Basic editing: Test Level a5 =====
|
||||
=== Basic editing: Test Level b3 ===
|
||||
=== Basic editing: Test Level c3 ===
|
||||
==== Basic editing: Test Level c4 ====
|
||||
|
|
||||
<pre>
|
||||
=== Basic editing: Test Level a3 ===
|
||||
==== Basic editing: Test Level a4 ====
|
||||
===== Basic editing: Test Level a5 =====
|
||||
=== Basic editing: Test Level b3 ===
|
||||
=== Basic editing: Test Level c3 ===
|
||||
==== Basic editing: Test Level c4 ====
|
||||
</pre>
|
||||
|
|
||||
<pre>
|
||||
<h3> Basic editing: Test Level a3 </h3>
|
||||
<h4> Basic editing: Test Level a4 </h4>
|
||||
<h5> Basic editing: Test Level a5 </h5>
|
||||
<h3> Basic editing: Test Level b3 </h3>
|
||||
<h3> Basic editing: Test Level c3 </h3>
|
||||
<h4> Basic editing: Test Level c4 </h4>
|
||||
</pre>
|
||||
|-
|
||||
| table
|
||||
|
|
||||
{|class=wikitable
|
||||
|+ caption
|
||||
|-
|
||||
! header a
|
||||
! header b
|
||||
|-
|
||||
| cell 1a
|
||||
| cell 1b
|
||||
|-
|
||||
| cell 2a
|
||||
| cell 2b
|
||||
|}
|
||||
|
|
||||
<pre>
|
||||
{|class=wikitable
|
||||
|+ caption
|
||||
|-
|
||||
! header a
|
||||
! header b
|
||||
|-
|
||||
| cell 1a
|
||||
| cell 1b
|
||||
|-
|
||||
| cell 2a
|
||||
| cell 2b
|
||||
|}
|
||||
</pre>
|
||||
|
|
||||
<pre>
|
||||
<table class="wikitable">
|
||||
<caption>caption</caption>
|
||||
<tr>
|
||||
<th>header a</th>
|
||||
<th>header b</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell 1a</td>
|
||||
<td>cell 1b</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell 2a</td>
|
||||
<td>cell 2b</td>
|
||||
</tr>
|
||||
</table>
|
||||
</pre>
|
||||
|}
|
||||
|
||||
=== Notes for Basics editing ===
|
||||
<references group='basics'>
|
||||
</references>
|
||||
|
||||
== Advanced editing ==
|
||||
=== Category ===
|
||||
Categories are supported. As a basic example, try the following:
|
||||
* Edit this page
|
||||
* Add the following text: <code><nowiki>[[Category:Test]]</nowiki></code>
|
||||
* Scroll down to the bottom of the page. You will see a <code><nowiki>Categories</nowiki></code> section and <code><nowiki>Test</nowiki></code> listed
|
||||
* Navigate to <code><nowiki>Category:Test</nowiki></code>. You will see the Main page listed
|
||||
|
||||
For more info, see https://en.wikipedia.org/wiki/Help:Category
|
||||
|
||||
=== Images ===
|
||||
Images are supported, but the process is slightly complicated due to the set-up of third-party software.
|
||||
|
||||
Here is a broad overview:
|
||||
* Set up imagemagick and inkscape on your machine. For more instructions, see http://xowa.org/home/wiki/App/Wiki_types/Wikia.com#Part_3c:_Setup_Imagemagick_and_Inkscape
|
||||
* Place your images in your wiki directory. Assuming your wiki is set up in <code>C:\your_wiki</code>, then you need to copy an image to <code>C:\your_wiki\file\orig</code>. As an example, do the following:
|
||||
** Download the image from <code><nowiki>https://upload.wikimedia.org/wikipedia/commons/9/97/The_Earth_seen_from_Apollo_17.jpg</nowiki></code>
|
||||
** Move the image to <code>C:\your_wiki\file\orig\The_Earth_seen_from_Apollo_17.jpg</nowiki></code>
|
||||
** Edit the page, and add the following text: <code><nowiki>[[File:The_Earth_seen_from_Apollo_17.jpg]]</nowiki></code>
|
||||
* Preview the page. You should see the image.
|
||||
|
||||
For more info, see https://en.wikipedia.org/wiki/Wikipedia:Picture_tutorial
|
||||
|
||||
=== Table of contents ===
|
||||
Table of contents (TOC) are automatically generated by XOWA if you have 4 headers (a header being something like <code><nowiki>== header ==</nowiki></code>)
|
||||
|
||||
If you have less than 4 headers, you can force a TOC by adding <code><nowiki>__TOC__</nowiki></code>
|
||||
|
||||
=== Math ===
|
||||
LaT<sub>E</sub>X formatting is available. For example, the following is the formula for the Pythagorean theorem: <math>a^2 + b^2 = c^2</math>
|
||||
|
||||
=== References ===
|
||||
Wikipedia-style references are supported. For example, this is a simple reference: <ref>Test footnote</ref>.
|
||||
|
||||
Note that you can hover over the reference number to get a tooltip preview
|
||||
|
||||
=== Sortable tables ===
|
||||
Wikipedia-style sortable tables are supported.
|
||||
|
||||
{|class='wikitable sortable'
|
||||
|-
|
||||
! String
|
||||
! Int
|
||||
! Date - months
|
||||
|-
|
||||
| c
|
||||
| 3
|
||||
| Mar 1 2012
|
||||
|-
|
||||
| b
|
||||
| 22
|
||||
| Feb 2 2011
|
||||
|-
|
||||
| a
|
||||
| 111
|
||||
| Jan 3 2010
|
||||
|}
|
||||
|
||||
=== Collapsible tables ===
|
||||
Wikipedia-style collapsible tables are supported.
|
||||
{| class="wikitable collapsible"
|
||||
! Data
|
||||
|-
|
||||
| A
|
||||
|-
|
||||
| B
|
||||
|-
|
||||
| C
|
||||
|}
|
||||
|
||||
=== More ===
|
||||
Other features are supported, including Tabviews, Timelines, Graphs, Hieroglyphics and Musical scores. For examples, see [[xowa.home:Diagnostics]]
|
||||
|
||||
== Expert editing ==
|
||||
=== Magic words ===
|
||||
Most magic words are supported, such as <code><nowiki>{{CURRENTTIME}}</nowiki></code> and <code><nowiki>{{lc:string}}</nowiki></code>. For more info, see https://en.wikipedia.org/wiki/Help:Magic_words
|
||||
|
||||
=== Parser functions ===
|
||||
Most parser functions are supported, such as <code><nowiki>{{#expr:2 + 2}}</nowiki></code>. For more info, see https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions
|
||||
|
||||
=== Templates ===
|
||||
Templates are supported, such as <code><nowiki>{{my_template|arg_1|arg_2|etc...}}</nowiki></code>. For more info, see https://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates
|
||||
|
||||
Here's a brief example:
|
||||
* Create a page called <code>Template:Test</code> with the text <code><nowiki>Hello, from Template:Test -- {{{1|empty}}}</nowiki></code>
|
||||
* Edit any other page (like the <code>Main_Page</code>) and enter <code><nowiki>{{Test|argument 1}}</nowiki></code> in the text box.
|
||||
* Preview or Save the page. You will see <code>Hello, from Template:Test -- argument 1</code>
|
||||
|
||||
=== Modules ===
|
||||
Modules are supported, such as <code><nowiki>{{#invoke:my_module|my_function|arg_1|arg_2|etc...}}</nowiki></code>. For more info, see https://en.wikipedia.org/wiki/Wikipedia:Lua
|
||||
|
||||
Here's a brief example:
|
||||
* Create a page called <code>Module:Test</code> with the following text
|
||||
<pre>
|
||||
local p = {}
|
||||
|
||||
function p.test( frame )
|
||||
return "Hello from Module:Test -- " .. frame.args[1];
|
||||
end
|
||||
|
||||
return p
|
||||
</pre>
|
||||
* Edit any other page (like the <code>Main_Page</code>) and enter <code><nowiki>{{#invoke:Test|test|argument 1}}</nowiki></code> in the text box.
|
||||
* Preview or Save the page. You will see <code>Hello from Module:Test -- argument 1</code>
|
||||
|
||||
== Developer editing ==
|
||||
<table class="metadata plainlinks ambox ambox-delete" style="">
|
||||
<tr>
|
||||
<td class="mbox-empty-cell">
|
||||
</td>
|
||||
<td class="mbox-text" style="">
|
||||
<span class="mbox-text-span">
|
||||
NOTE: The techniques in this section may change in future versions.
|
||||
|
||||
If you use any of the editing techniques here, please check back occasionally to see if anything has changed.
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
=== CSS ===
|
||||
XOWA stores the CSS for each wiki in <code>/xowa/user/anonymous/wiki/your_wiki_name/html</code>. For example, if you're on Windows and your wiki is named <code>test</code>, then the CSS would be at <code>C:\xowa\user\anonymous\wiki\test\html\xowa_common.css</code>
|
||||
|
||||
Note that the upper-lefthand icon is also stored there as <code>logo.png</code>
|
||||
|
||||
You can change these files and XOWA will not overwrite them. However, as with any file, please make sure you always keep backups.
|
||||
|
||||
=== Page template ===
|
||||
XOWA stores the page template in <code>/xowa/bin/any/xowa/cfg/app/xowa.gfs</code>. The actual template is marked in a section called <code>page_read</code>.
|
||||
|
||||
Please note the following about changing the page:
|
||||
* The file is replaced on every application update. If you make updates to the file, they will be lost.
|
||||
** If you find that you need to edit this file, please contact me, and I will add a feature to make it configurable in a future release. Really, these instructions are only provided for users who want to experiment.
|
||||
* The file uses a custom language specific to XOWA called gfs. Always backup the file when making changes. If you make an invalid change, XOWA will not start
|
||||
* The file is only loaded at application start. Any changes will require a restart of the app
|
||||
|
||||
=== Scripting ===
|
||||
XOWA allows custom hooks through Javascript or Lua. For detailed instructions see [[xowa.home:App/Xtn/Scripting]]
|
||||
|
||||
== Keyboard shortcuts ==
|
||||
For a full list, see [[xowa.home:Special:XowaCfg?grp=xowa.gui.shortcuts]]
|
||||
{|class='wikitable'
|
||||
|-
|
||||
| <b>Alt + Shift + E</b> || Edit the page. Switches to edit mode
|
||||
|-
|
||||
| <b>Ctrl + S</b> || Quick save the page. Stays in edit mode
|
||||
|-
|
||||
| <b>Alt + Shift + P</b> || Preview the page. Stays in edit mode
|
||||
|-
|
||||
| <b>Alt + Shift + S</b> || Save the page. Switches to read mode
|
||||
|-
|
||||
| <b>Ctrl + F</b> || Find text in the page
|
||||
|-
|
||||
|
|
||||
<b>Ctrl + L</b> or <br/>
|
||||
<b>Alt + D</b> || Focus the URL bar
|
||||
|-
|
||||
| <b>Ctrl + T</b> || New tab
|
||||
|-
|
||||
| <b>Ctrl + Tab</b> || Switch to next tab
|
||||
|-
|
||||
| <b>Ctrl + Shift + Tab</b> || Switch to previous tab
|
||||
|-
|
||||
| <b>Ctrl + W</b> || Close tab
|
||||
|}
|
||||
|
||||
== Useful links ==
|
||||
* Wikipedia's guide for editing: https://en.wikipedia.org/wiki/Help:Getting_started
|
||||
* XOWA page on personal wikis: [[xowa.home:App/Personal wikis]]
|
||||
* XOWA help page: [[xowa.home:Help/Contents|Contents page]]
|
||||
|
||||
== Notes ==
|
||||
<references/>
|
||||
@@ -0,0 +1,12 @@
|
||||
.cur_head_text {
|
||||
width: calc(100% - 40px);
|
||||
}
|
||||
.cur_head_btns {
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.domain_name {
|
||||
display: inline-block;
|
||||
width: calc(100% - 64px);
|
||||
padding: 0px 0px 0px 10px;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
(function (xo) {
|
||||
xo.wiki_directory = new function() {
|
||||
this.send = function(proc, args) {
|
||||
try {
|
||||
xo.server.send_by_bridge('wiki.directory.list', proc, args);
|
||||
} catch (err) {
|
||||
alert(err);
|
||||
}
|
||||
}
|
||||
|
||||
this.import_wiki = function() {
|
||||
try {
|
||||
// call xowa to launch file_dialog
|
||||
var url = xowa_exec('scripts_exec', 'app.gui.kit.ask_file("Please select an .xowa file", "*.xowa");');
|
||||
if (url == null || url == '') return; // nothing selected; exit
|
||||
|
||||
xo.notify.elem_anchor = '#main_body';
|
||||
xo.wiki_directory.send('import_wiki', {'url':url});
|
||||
} catch (err) {
|
||||
alert(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
}(window.xo = window.xo || {}));
|
||||
@@ -0,0 +1,34 @@
|
||||
<div id='cur_help_div' class='xohelp_div'>
|
||||
<div id='cur_help_msg' class='xohelp_msg'>
|
||||
<b>Buttons</b>
|
||||
<div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_list_add'> </span><span class='xohelp_row_text'>Create a new wiki</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_doc_import'> </span><span class='xohelp_row_text'>Import an existing wiki</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_doc_open'> </span><span class='xohelp_row_text'>Open the wiki</span></div>
|
||||
<div class='xohelp_row'><span class='xoimg_help_x24 xoimg_app_configure'> </span><span class='xohelp_row_text'>Configure wiki settings</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='main_body' id='main_body'>
|
||||
<div class='list_tbl'>
|
||||
<div class='xotbl_head_row'>
|
||||
<div class='xotbl_head_text cur_head_text'>List</div>
|
||||
<div class='xotbl_head_btns cur_head_btns'>
|
||||
<a class='xoimg_btn_x24 xoimg_list_add' title='add a new wiki' href='/site/home/wiki/Special:XowaWikiItem'> </a>
|
||||
<a class='xoimg_btn_x24 xoimg_doc_import' title='import an existing wiki' href='' onclick='return xo.wiki_directory.import_wiki()' accesskey='i'> </a>
|
||||
<a class='xoimg_btn_x24 xoimg_help_tip' title='view help' href='javascript:void(0)' onclick='return xo.help.toggle("cur")'> </a>
|
||||
</div>
|
||||
</div>
|
||||
{{#itms}}
|
||||
<div class="xotbl_data_row flex_div">
|
||||
<a class='domain_name ' title='open' href='/site/{{domain}}/wiki/{{mainpage}}'>{{name}}</a>
|
||||
<div>
|
||||
<a class='xoimg_btn_x24 xoimg_doc_open' title='open' href='/site/{{domain}}/wiki/{{mainpage}}'> </a>
|
||||
</div>
|
||||
<div>
|
||||
<a class='xoimg_btn_x24 xoimg_app_configure' title='configure' href='/site/home/wiki/Special:XowaWikiItem?domain={{domain}}'> </a>
|
||||
</div>
|
||||
</div>
|
||||
{{/itms}}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user