Formal Formatting Rules and Conventions
Formatting is applied in the following order:
- Source code is parsed and stored for later display. See FormalFormattingRules/SourceCode.
- Text enclosed in three backticks (`) is skipped over so that other wiki formatting rules are not applied to it. See FormalFormattingRules/Backticks.
- URLs that are enclosed in square brackets are parsed so they will be displayed as follows, with reference numbers increasing throughout the document: [1]. See FormalFormattingRules/Reference.
- URLs that are enclosed in square brackets, but have an accompanying description, are parsed so they will be displayed like [this]. See FormalFormattingRules/NamedReference.
- URLs that appear bare within a document are formatted as links to the given URL, like this: http://andstuff.org/. Links that end in '.jpg', '.png', or '.gif' are instead displayed as images. See FormalFormattingRules/URL.
- In-line macros of the form [[MacroName]] are then parsed. See TaviMacros for more details. (The HTML Anchor macro and the Transclude macro, in particular, can be useful in formatting.)
- Free links (links to wiki pages of the form ((free links))) are processed. See free links.
- InterWiki links (such as MeatBall:SoftSecurity) are processed. See InterWiki.
- WikiWord's are processed into links to the given page. See WordsSmashedTogether. WikiWord's that are preceded by an exclamation mark ('!') aren't turned into links: WikiWord.
- Text surrounded in three single quotes is turned into bold:
- '''bold''' => bold
- Text surrounded in two single quotes is turned into italic:
- ''italic'' => italic
- '''''bold-italic''''' => bold-italic
- Text surrounded by two curly brackets is turned into teletype:
- this is {{teletype}} text => this is teletype text
- Lines surrounded by equal signs are turned into headings. See FormalFormattingRules/Headings.
- Lines enclosed in pairs of vertical bars (|) are turned into tables. See FormalFormattingRules/Tables.
- Four hyphens in a row: ---- form a horizontal bar, like <HR> in HTML
- Lines beginning with ':', '#', '*', and ';' are turned into various sorts of lists and indents. See FormalFormattingRules/Lists.
- Lastly, line breaks are turned into HTML <br /> elements, to insert a line break in the displayed document.