General format
[ name | content | options ]
All except name are optional. The three parts between the bars are as follows.
Examples:
[Sample page]
[Markup|general markup]
[cowlis2003]
[cowlis2003-DFP-algorism.pdf]
[/cognition/Biological background]
[canyon.jpg | Grand Canyon | image right]
[subdir/an-image.jpg]
[speleo.rex||text code]
[*||gps N43:14:10 W4:43:22 a1277] HTML and relative links
HTML and relative links
For compatibility with other Wikis, if a name does not refer to an existing page, reference, or file, and if the first word of the name contains a ‘:’ or a ‘/’, then the first word is assumed to be an HTML reference and is linked accordingly. Any remaining words in the name then form the content (or are prefixed to the content if there is a | present).
[http://www.speleogroup.org]
[http://www.speleogroup.org Speleogroup’s home page]
These appear on the page as http://www.speleogroup.org » and Speleogroup’s home page ».
A relative URL can similarly be used to refer to pages explicitly in the same or other MemoWiki topics, for example, [/MemoWiki/Markup]. Within-page links
Within-page links
A position within a page can be identified using a mark link, in which the name starts with ‘@’, for example:
[@tables | tables list]
This generates an HTML anchor with the name ‘tables’, which can be referred to by a local reference link of the same form but with the name beginning with ‘#’, for example:
[#tables | see tables list]
If content is not given, then the name (without the ‘@’ or ‘#’) is used as the content. There may optionally be one or more blanks after the ‘@’ or ‘#’. The name must not include an ‘@’.
A within-page mark can be referred to from another page simply by putting the mark name after the page name, separated by a hash (pound) character, for example: [my page#mark1]. Flagged links
Flagged links
If a name does not refer to an existing page, reference, or file, and if the first word of the name does not contain a ‘/’ or a ‘:’, then the link is assumed to be a reference to an as-yet un-edited page in the current topic and is shown with a following red question-mark (?). Non-topic MemoWiki links
Non-topic MemoWiki links
References to a Wiki page, Reference, or Data item in another topic on the same server can be made using a name of the form /topic/page, where the page is optional and both topic and page may include any characters except ‘/’. A ‘/’ alone links to the Topics list page.
For complete control, a name of the form //string may be used to send any selector to the current server; and topic or page name must then be safe-encoded. Commands may be suffixed following a ‘?’. (To see the exact formats of commands, hover over an action on the more... page). Wikipedia links
Wikipedia links
Simple links to Wikipedia articles may be made directly using the same double-bracket notation as in Wikipedia but with an additional options part: [[link | content | options]]. (This notational support also allows the Wiki2HTML program to be used for rendering simple Wikipedia articles off-line.) options are currently ignored on Wikipedia links, which always open in a new tab or window. General options
General options
The options string for any link may contain the following option word:
Images
Minas Crags
Additional options may be added as follows:
center
Conflicts are resolved as ‘last option wins’.
The image above and to the right was included using the markup: [http://www.speleogroup.org/files/MinasCrags.jpg|Minas Crags|image right width=180] Geographic locations (GPS links)
Geographic locations (GPS links)
A link to a geographic location using GPS coordinates is made by using a placeholder (‘*’) as the name and then specifying an options field whose first word is gps. Additional options may be added as follows:
Alternatively the coordinates may be given as a pair of decimal degrees, latitude first (negative indicating South or West).
For example: 52.1375 -1.7525 shows as N52°08′15″ W1°45′09″.
Two GPS coordinates must always be given, one starting with N or S and the other with E or W, or as a pair of decimal degrees.
If no content is given and neither show nor utm is specified then a Delta symbol is used as the content. For example, [*||gps N43:14:10 W4:43:22 a1277] appears as: Δ. If both show and utm are used, the parts will appear in the same order as the keywords.
Note that all GPS coordinate links in a given topic are assumed to use a common GPS datum; this may be changed using the Change Topic settings page. Embedded text files
Embedded text files
The content of text files can be included within a page by indicating that a name (which must be a file in the files directory) is to be embedded as text. To do this, the link must have an options field whose first word is text. Additional option keywords may be added as follows:
/* A very simple Rexx program */ numeric digits 250 say 1/7
Notes:
Data items (MemoTrove files)
Data items can be linked as a simple MemoWiki link (for example: [red], which would display as red) which allows them to be viewed and edited. To use the data from an item in a page, the item must be loaded. To do this, the link must have an options field whose first word is mtr. Additional option keywords may be added as follows: