1 Date: Wed, 28 May 2008 19:07:35 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FTextFormattingRules;
8 Content-Transfer-Encoding: binary
10 <?plugin CreateToc jshide||=1 with_toclink||=1 ?>
13 Help:TextFormattingRules <br>
14 *Emphasis:* <tt>~_</tt> for _italics_, <tt>~*</tt> for *bold*,
15 <tt>~_~*</tt> for _*both*_, <tt>~=</tt> for =fixed width=.%%%
16 *Lists:* <tt>~*</tt> for bullet lists, <tt>#</tt> for numbered lists,
17 _Term~:~<new-line> definition_ for definition lists.<br>
18 *Preformatted text:* Enclose text in <tt>~<pre>~</pre></tt> or
19 <tt>~<verbatim>~</verbatim></tt>.%%%
20 *Indented text:* Indent the paragraph with whitespaces.%%%
21 *References:* ~JoinCapitalizedWords or use square brackets for a
22 <tt>~[page link]</tt> or URL <tt>~[~http~://cool.wiki.int/~]</tt>.<br>
23 *Preventing linking:* Prefix with "<tt>~~</tt>":
24 <tt>~~~DoNotHyperlink</tt>, name links like <tt>~[text | URL or pagename~]</tt>.%%%
25 *Misc:* "<tt>!</tt>", "<tt>!!</tt>", "<tt>!!!</tt>" make headings,
26 "<tt>~%%%</tt>" or "<tt>~<br></tt>" makes a linebreak,
27 "<tt>~----</tt>" makes a horizontal rule.%%%
28 *Allowed HTML tags:* <b>b</b> <big>big</big> <i>i</i>
29 <small>small</small> <tt>tt</tt> <em>em</em> <strong>strong</strong>
30 <s>s</s> <strike>strike</strike>
31 <abbr>abbr</abbr> <acronym>acronym</acronym> <cite>cite</cite>
32 <code>code</code> <dfn>dfn</dfn> <kbd>kbd</kbd> <samp>samp</samp>
33 <var>var</var> <sup>sup</sup> <sub>sub</sub>
37 !!! Character Formatting
39 * All special non-whitespace HTML characters are displayed as-is. Exceptions below.
40 * See [Emphasis|Help:TextFormattingRules#Emphasis].
41 * There's no syntax for font tags or color attributes.
42 * The tilde '~~' is the _Escape Character_:
43 ** A single tilde '~~' followed by nothing gets rendered as a single tilde. => ~
44 ** Two tilde '~~~~' get rendered as a single tilde. => ~~
45 ** A single tilde before a link ('~~http~:~/~/foo.bar') prevents linking.
47 ** Two tildes before a link ('~~~~http~:~/~/foo.bar') produce a tilde
48 followed by the hyperlinked URL.
50 ** A tilde inside an URL gets removed, unless it's formatted inside
52 Two tildes inside an URL (without brackets) become a single tilde.
53 => [http://foo.bar/~user] or http://foo.bar/~~user
54 * Special non-ascii or non-latin characters are printed as-is only if supported
55 by the native wiki CHARSET. Add such characters on a non-supported CHARSET with the Help:RawHtmlPlugin if it is enabled by the Admin and e.g. the &#num; syntax. %%%
56 E.g. These japanese euc-jp chars 'から 新規ページ' on this =<?plugin SystemInfo CHARSET?>= wiki.
57 And with the plugin: <?plugin RawHtml から 新規ページ ?> %%%
58 And this is how it should look: [http://phpwiki.sourceforge.net/demo/images/chars-releasenotes-japanese.png]
62 * Don't indent paragraphs
63 * Words wrap and fill as needed
64 * Use blank lines as separators
65 * Four or more minus signs make a horizontal rule
66 * =~%%%= or =~<br>= makes a linebreak (in headings and lists too)
71 * asterisk for first level
72 * indented asterisk (indent at least two spaces) for second level, etc.
73 * Use <tt>~*</tt>, <tt>-</tt>, <tt>+</tt> or <tt>o</tt> for bullet
74 lists, <tt>#</tt> for numbered lists (mix at will)
83 as in the =<DL><DT><DD>= list
84 * Items may contain multiple paragraphs and other multi-lined content,
90 * '=!=' at the start of a line makes a small heading
91 * '=!!=' at the start of a line makes a medium heading
92 * '=!!!=' at the start of a line makes a large heading
97 * Place preformatted lines inside =~<pre>=:
100 Preformatted text. WikiLinks still work.
105 Preformatted text. WikiLinks still work.
107 * If you want text with no Wiki interaction, use the =~<verbatim>= tag:
110 Preformatted text. ~WikiLinks do not work.
115 Preformatted text. WikiLinks do not work.
119 !!!Indented Paragraphs
121 * Two or more whitespaces signal indented text. Indents may be nested.
123 This is an indented block of text.
125 This block is even more indented.
127 * E-mail style block-quoting is supported as well:
129 > This is block-quoted text.
133 > This is block-quoted text.
138 * Use an underscore (<tt>~_</tt>) for emphasis (usually _italics_)
139 * Use an asterisk (<tt>~*</tt>) for strong emphasis (usually *bold*)
140 * Mix them at will: *_bold italics_*
141 * _Emphasis_ can be used _multiple_ times within a paragraph, but
142 _cannot_ cross paragraph boundaries:
150 * Hyperlinks to other pages within the Wiki are made by placing the
151 page name in square brackets: [this is a page link] or
152 UsingWikiWords (preferred)
153 * Hyperlinks to external pages are done like this:
154 [http://www.wcsb.org/]
155 * You can name the links by providing a name, a bar (|) and then the
156 hyperlink or pagename:
157 [PhpWiki home page | http://phpwiki.sourceforge.net/] ---
158 [the front page | HomePage]
159 * You can suppress linking to old-style references and URIs by
160 preceding the word with a '<tt>~~</tt>', e.g. ~NotLinkedAsWikiName,
161 ~http~://not.linked.to/
162 * Also, the old way of linking URL's is still supported: precede URLs
163 with "<tt>http:</tt>", "<tt>ftp:</tt>" or "<tt>mailto:</tt>" to
164 create links automatically as in: http://c2.com/
165 * URLs ending with =.png=, =.gif=, or =.jpg= are inlined if in square
166 brackets, by themselves:
167 [http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]
168 * In-page #[hyperlinks] are made by placing a named anchor and
169 referring to the anchor in a hyperlink:
171 * <tt>~#~[foo]</tt>: An anchor around the text "foo" with id
173 * <tt>~#~[|foo]</tt>: An empty anchor with id "foo".
174 * <tt>~#~[howdy|foo]</tt>: An anchor around the text "howdy" with
176 * References to name anchors are made thusly:%%%
177 <tt>~[~#[#hyperlinks]]</tt>, <tt>~[~OtherPage#foo]</tt>,
178 <tt>~[named|~OtherPage#foo]</tt>.
179 * Semantic links are named links like: is_a::WikiPage and attributes like
181 * A pagelink within square brackets starting with ":" is not backlinked.
185 * Definition list style tables are written just like definition lists,
186 except that you replace the trailing colon on the term with a "pipe"
191 Definition 1 begins here.
196 This is part of definition 1.
202 Definition 1 begins here.
207 This is part of definition 1.
211 * Old-style tables are supported through the Help:OldStyleTablePlugin
213 !!! HTML Mark-Up Language
215 * Some in-line markup is allowed through the use of HTML tags:
216 <b>b</b>, <big>big</big>, <i>i</i>, <small>small</small>,
217 <tt>tt</tt>, <em>em</em>, <strong>strong</strong>,
218 <abbr>abbr</abbr>, <acronym>acronym</acronym>, <cite>cite</cite>,
219 <code>code</code>, <dfn>dfn</dfn>, <kbd>kbd</kbd>,
220 <samp>samp</samp>, <var>var</var>, <sup>sup</sup> and <sub>sub</sub>
221 * < and > are themselves
222 * The & characters will not work
224 !!! Creating various kinds of special links
226 * See [Help:MagicPhpWikiURLs] for gory details on how to write various kind
227 of wiki maintenance and other special links.
229 !!! Inserting plugins
231 * Several plugins permit embedding additional functionality to Wiki
234 <?plugin BackLinks page=HomePage info=hits ?>
237 <?plugin BackLinks page=HomePage info=hits ?>
239 * For more information on plugins see [WikiPlugin|Help:WikiPlugin], and [PluginManager] for a list of all
244 [PhpWikiDocumentation]