1 Date: Thu, 2 Apr 2009 11:38:26 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FTextFormattingRules;
9 Content-Transfer-Encoding: binary
11 <<CreateToc with_toclink||=1 position=right >>
15 **Emphasis:** ##~/~/## for //italics//, ##~*~*## for **bold**, ##~*~*~/~/...~/~/~*~*## for **//both//**, ##~#~### for ##fixed width##. \\
16 **Lists:** ##~*## for bullet lists, ##~### for numbered lists; use multiple ##~*## or ##~### for nested lists. \\
17 **Headings:** "##~=~=##", "##~=~=~=##", "##~=~=~=~=##", etc. make headings. \\
18 **Preformatted text:** Enclose text in ##~{~{~{...~}~}~}## or ##~<pre>~</pre>##. \\
19 **Indented text:** Indent the paragraph with whitespaces. \\
20 **References:** use double square brackets for a ##~[~[page link~]~]## or URL ##~[~[~http:~//cool.wiki.int/~]~]##. \\
21 **References:** use pipe ##~|## to name the links: ##~[~[page link~|some text~]~]## or ##~[~[~http:~//cool.wiki.int/~|some text~]~]##. \\
22 **Preventing linking:** Prefix with "##~~##": ##~~~DoNotHyperlink##. \\
23 **Misc:** "##~\~\##" makes a linebreak, "##~----##" makes a horizontal rule. \\
24 **Allowed HTML tags:** <b>b</b> <big>big</big> <i>i</i>
25 <small>small</small> ##tt## <em>em</em> <strong>strong</strong>
26 <s>s</s> <strike>strike</strike>
27 <abbr>abbr</abbr> <acronym>acronym</acronym> <cite>cite</cite>
28 <code>code</code> <dfn>dfn</dfn> <kbd>kbd</kbd> <samp>samp</samp>
29 <var>var</var> <sup>sup</sup> <sub>sub</sub> \\
30 **More:** [[Help:TextFormattingRules#Tables|tables]], [[Help:TextFormattingRules#Images|images]],
31 [[Help:CreateTocPlugin|table of contents]], [[Help:TextFormattingRules#Inserting_plugins|plugins]]
33 More explanations: [[Help:TextFormattingRules]]
35 == Character Formatting
39 * Use a double slash (##~/~/##) for emphasis (usually //italics//)
40 * Use a double asterisk (##~*~*##) for strong emphasis (usually **bold**)
41 * Mix them at will: **//bold italics//**
42 * //Emphasis// can be used //multiple// times within a paragraph, but **cannot** cross paragraph boundaries:
50 Monospace text is made using two hashes:
53 This sentence contains ##monospace text##.
56 This sentence contains ##monospace text##.
60 Superscript text is made using two carets:
70 Subscript text is made using two commas:
80 There's no syntax for font tags.
84 The tilde '~~' is the //Escape Character//:
85 * A single tilde '~~' followed by nothing gets rendered as a single tilde. => ~
86 * Two tilde '~~~~' get rendered as a single tilde. => ~~
87 * A single tilde before a link ('~~http~:~/~/foo.bar') prevents linking. => ~http://foo.bar
88 * Two tildes before a link ('~~~~http~:~/~/foo.bar') produce a tilde followed by the hyperlinked URL. => ~~http://foo.bar
89 * A tilde inside an URL gets removed, unless it's formatted inside square brackets.
90 * Two tildes inside an URL (without brackets) become a single tilde. => [[http://foo.bar/~user]] or http://foo.bar/~~user
92 === Special Characters
94 All special non-whitespace HTML characters are displayed as-is. Exceptions below.
96 Special non-ASCII or non-latin characters are printed as-is only if supported
97 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.
99 E.g. These japanese euc-jp chars 'から 新規ページ'
100 on this <<SystemInfo CHARSET>> wiki.
102 And with the plugin: <<RawHtml から 新規ページ>>
104 And this is how it should look: [[http://phpwiki.sourceforge.net/demo/images/chars-releasenotes-japanese.png]]
108 * Don't indent paragraphs
109 * Words wrap and fill as needed
110 * Use blank lines as separators
111 * Four or more minus signs make a horizontal rule
112 * "##~\~\##", "##~%%%##" or "##~<br>##" makes a linebreak (in headings and lists too)
118 Recommended syntax (Wikicreole):
119 * asterisk for first level
120 * double asterisk for second level, etc.
122 Be sure to **put a space after the asterisk**.
124 You can also use indented asterisk for second level (indent at least two spaces).
128 Recommended syntax (Wikicreole):
129 * ##~### for first level
130 * double ##~### for second level, etc.
132 Be sure to **put a space after the hash sign**.
134 You can also use indented ##~### for second level (indent at least two spaces).
150 Items may contain multiple paragraphs and other multi-lined content, just indent the items
154 === Wikicreole syntax (recommended)
156 * '~=~=' at the start of a line makes a large heading (h2)
157 * '~=~=~=' at the start of a line makes a medium heading (h3)
158 * '~=~=~=~=' at the start of a line makes a small heading (h4)
159 * '~=~=~=~=~=' at the start of a line makes a smaller heading (h5)
160 * '~=~=~=~=~=~=' at the start of a line makes a tiny heading (h6)
162 === Classic Phpwiki syntax
164 * '##!!!##' at the start of a line makes a large heading (h2)
165 * '##!!##' at the start of a line makes a medium heading (h3)
166 * '##!##' at the start of a line makes a small heading (h4)
170 Place the preformatted text between three opening curly brackets and three closing curly brackets:
174 Preformatted text. ~WikiLinks do not work.
181 Preformatted text. WikiLinks do not work.
184 If you want Wiki interaction, place preformatted lines inside ##~<pre>##:
188 Preformatted text. WikiLinks still work.
195 Preformatted text. WikiLinks still work.
198 == Indented Paragraphs
200 Two or more whitespaces signal indented text. Indents may be nested.
202 This is an indented block of text.
204 This block is even more indented.
206 E-mail style block-quoting is supported as well:
208 > This is block-quoted text.
212 > This is block-quoted text.
216 * Hyperlinks to other pages within the Wiki are made by placing the
217 page name in double square brackets: [[this is a page link]].
218 Single brackets or WikiWords will also work.
219 * Hyperlinks to external pages are done like this: [[http://www.wcsb.org/]]
220 * You can name the links by providing a name, a pipe (##|##) and then the hyperlink or pagename:
221 [[http://phpwiki.sourceforge.net/|PhpWiki home page]], [[HomePage|the front page]]
222 * You can suppress linking to URIs by preceding the word with a '##~~##', e.g. ~NotLinkedAsWikiName, ~http~://not.linked.to/
223 * Also, the old way of linking URL's is still supported: precede URLs
224 with "##~http:##", "##~ftp:##" or "##~mailto:##" to
225 create links automatically as in: http://c2.com/
226 * URLs ending with ##.png##, ##.gif##, or ##.jpg## are inlined if in square brackets, by themselves:
227 [[http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]]
228 * In-page #[[hyperlinks]] are made by placing a named anchor and referring to the anchor in a hyperlink:
230 *** ##~#~[~[foo]]##: An anchor around the text "foo" with id "foo".
231 *** ##~#~[~[|foo]]##: An empty anchor with id "foo".
232 *** ##~#~[~[howdy|foo]]##: An anchor around the text "howdy" with id "foo".
233 ** References to name anchors are made thusly:\\##~[~[~#~#hyperlinks]]##, ##~[~[~OtherPage#foo]]##, ##~[~[~OtherPage#foo|named]]##.
234 * Semantic links are named links like: is_a::WikiPage and attributes like size:-4000.
235 * A pagelink within square brackets starting with ":" is not backlinked.
239 An inline image is created with curly brackets.
240 An alternate text can be put after a pipe. If there is none, an empty alternate text will be created.
247 {{myimage.png|this is my image}}
252 === Wikicreole tables
254 All cells are separated by single pipes.
255 Leading spaces are permitted before the first cell of a row and trailing spaces are permitted at the end of a line.
256 The ending pipe is optional.
258 You can embed links, bold, italics, line breaks, and nowiki in table cells.
260 Equal sign directly following pipe defines a header.
261 Headers can be arranged horizontally or vertically.
264 |=Heading Col 1 |=Heading Col 2 |
265 |Cell 1.1 |Two lines\\in Cell 1.2 |
266 |Cell 2.1 |Cell 2.2 |
271 |=Heading Col 1 |=Heading Col 2 |
272 |Cell 1.1 |Two lines\\in Cell 1.2 |
273 |Cell 2.1 |Cell 2.2 |
277 See [[Help:MediawikiTablePlugin]].
279 === Definition list style tables
281 Definition list style tables are written just like definition lists,
282 except that you replace the trailing colon on the term with a "pipe" (##|##).
286 Definition 1 begins here.
291 This is part of definition 1.
299 Definition 1 begins here.
304 This is part of definition 1.
308 == HTML Mark-Up Language
310 * Some in-line markup is allowed through the use of HTML tags:
311 <b>b</b>, <big>big</big>, <i>i</i>, <small>small</small>,
312 <tt>tt</tt>, <em>em</em>, <strong>strong</strong>,
313 <abbr>abbr</abbr>, <acronym>acronym</acronym>, <cite>cite</cite>,
314 <code>code</code>, <dfn>dfn</dfn>, <kbd>kbd</kbd>,
315 <samp>samp</samp>, <var>var</var>, <sup>sup</sup> and <sub>sub</sub>
316 * < and > are themselves
317 * The & characters will not work
319 == Creating various kinds of special links
321 See [[Help:MagicPhpWikiURLs]] for gory details on how to write various kind
322 of wiki maintenance and other special links.
326 Several plugins permit embedding additional functionality to Wiki pages. For example,
328 <<BackLinks page=HomePage info=hits>>
331 <<BackLinks page=HomePage info=hits>>
333 For more information on plugins see [[Help:WikiPlugin]], and [[PluginManager]] for a list of all plugins.
337 [[PhpWikiDocumentation]]