Wiki Formatting: Hyperlinks, Images and Frames
Abstract: This text describes how to use wiki markup for links and images.
Wiki Formatting
Hyperlinks
- CamelCaseWords are automatically linked. The link's target is the word which is expected to exist as file in the wiki's data space. Camel case words start with an uppercase letter followed by other letters or digits. There must be at least one other uppercase letter following a lowercase. In addition to this the word may be prefixed by lowercase letters or digits separated from the word by an optional dash. Camel case examples are: "CamelCase", "00-IndexPage", "ALongerCamelCasedWord" and "zNetworkHowto". To prevent a camel cased word from being linked it can be enclosed in two single quotes.
- URLs, words beginning with http://, https://, gopher://, ftp://, file://, telnet://, news: and mailto: are linked to their address, mailto: only if it's immediately followed by something that looks like an e-mail address.
- Arbitrary links can be created manually with the angle bracket sequence "[[ address ] text ]". If address is an empty string text is printed as normal, unlinked, text. address may be prefixed with the name of a target frame in which the URL should be displayed.
The address can be prefixed with +frame to set a target frame for the link.
The whole sequence may be preceded with double curly braced Javascript code.
- "(: name :)" creates a named anchor.
- The sequence "(. text .)" creates a TOC named anchor. These anchors are numbered automatically and cannot be refereced from other wikifiles. By default the list of all TOC anchors is printed before the text itself. The appearance of the TOC can be changed with the toc parser command, see WikiInternalPreprocessor, :parser:-command.
Images and IFRAMEs
Images can be inserted using (# url #). Inside the sequence's opening part "(#" you may insert the following options
- a "R" or "L" to set right or left image justification.
- two comma separated numbers to set width and height (in that order) of the displayed image. The number may be followed by a "%" to set the size relative to the real's image size.
- an equal sign followed by a style class name which is used to format the frame or image.
To hyperlink an image insert the image sequence into the display part of the hyperlink sequence.
IFRAMEs are created with (! url #). The "(!" may have the same options as the "(#" for images. Both sequences may not span multiple lines.