]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FOldTextFormattingRules
function _PageList_Column* are not private
[SourceForge/phpwiki.git] / pgsrc / Help%2FOldTextFormattingRules
1 Date: Wed, 19 Dec 2012 12:12:44 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FOldTextFormattingRules;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   markup=2;
7   charset=UTF-8
8 Content-Transfer-Encoding: binary
9
10 ! Synopsis
11 [Help:OldTextFormattingRules] <br>
12 <strong>Emphasis:</strong> '<strong></strong>' for <em>italics</em>, _<em></em>~_ for <strong>bold</strong>, '<strong></strong>'_<em></em>~_ for <em><strong>both</strong></em>.%%%
13 <strong>Lists:</strong> * for bullet lists, # for numbered lists, <em><strong>;</strong> term <strong>~:</strong> definition</em> for definition lists.%%%
14 <strong>References:</strong> ~JoinCapitalizedWords or use square brackets for a ~[page link] or URL ~[~http~://cool.wiki.int/~].%%%
15 <strong>Footnotes:</strong> Use ~[1],~[2],~[3],...%%%
16 <strong>Preventing linking:</strong> Prefix with "~!": ~!~DoNotHyperlink, name links like ~[~[text | URL] (double up on the "[").%%%
17 <strong>Misc:</strong> "~!", "~!~!", "~!~!~!" make headings, "%%<em></em>%" makes a linebreak, "-<em></em>-<em></em>-<em></em>-" makes a horizontal rule.%%%
18 <strong>Tables:</strong> »|« as first char, »|« for more columns, »|>« align right, »|<« align left, »|^« centered (default), »||« span columns, »|v« span rows
19
20 ! Paragraphs
21
22 * Don't indent paragraphs
23 * Words wrap and fill as needed
24 * Use blank lines as separators
25 * Four or more minus signs make a horizontal rule
26 * %%<em></em>% makes a linebreak (in headings and lists too)
27
28 ! Lists
29
30 * asterisk for first level
31      * asterisk-asterisk for second level, etc.
32 * Use * for bullet lists, # for numbered lists (mix at will)
33 * semicolon-term-colon-definition for definition lists:
34 ;term here:definition here, as in the <DL><DT><DD> list
35 * One line for each item
36 * Other leading whitespace signals preformatted text, changes font.
37
38 ! Headings
39
40 * '~!' at the start of a line makes a small heading
41 * '~!~!' at the start of a line makes a medium heading
42 * '~!~!~!' at the start of a line makes a large heading
43
44 ! Fonts
45
46 * Indent with one or more spaces to use a monospace font:
47
48 <pre>
49  This is in monospace
50 </pre>
51 This is not
52
53 !Indented Paragraphs
54
55 * semicolon-colon -- works like <BLOCKQUOTE>
56
57 ;:this is an indented block of text
58
59 ! Emphasis
60
61 * Use doubled single-quotes ('<strong></strong>') for emphasis (usually <em>italics</em>)
62 * Use doubled underscores (_<em></em>_) for strong emphasis (usually <strong>bold</strong>)
63 * Mix them at will: <strong><em>bold italics</em></strong>
64 * <em>Emphasis</em> can be used <em>multiple</em> times within a line, but <em>cannot</em> cross line boundaries:
65
66 ''this
67 will not work''
68
69 ! References
70 * Hyperlinks to other pages within the Wiki are made by placing the page name in square brackets: [this is a page link] or UsingWikiWords (preferred)
71 * Hyperlinks to external pages are done like this: [http://www.wcsb.org/]
72 * You can name the links by providing a name, a bar (|) and then the hyperlink or pagename: [PhpWiki home page | http://phpwiki.sourceforge.net/]  - [the front page | HomePage]
73 * You can suppress linking to old-style references and URIs by preceding the word with a '~!', e.g. ~NotLinkedAsWikiName, ~http://not.linked.to/
74 * You can create footnotes by using ~[1], ~[2], ~[3], ... like this here #[|ftnt_ref_1]<sup>~[[1|#ftnt_1]~]</sup>. See footnote for counterpart.  (If the ~[ is in the first column, it is a footnote <em>definition</em> rather than a footnote <em>reference</em> #[|ftnt_ref_1]<sup>~[[1|#ftnt_1]~]</sup>.)
75 * Also, the old way of linking URL's is still supported: precede URLs with "http:", "ftp:" or "mailto:" to create links automatically as in: http://c2.com/
76 * URLs ending with .png, .gif, or .jpg are inlined if in square brackets, by themselves: [http://phpwiki.svn.sourceforge.net/viewvc/phpwiki/trunk/themes/default/images/png.png]
77 * Semantic links are named links like: is_a::WikiPage and attributes like size:-4000.
78 * A pagelink within square brackets starting with ":" is not backlinked.
79
80 ! Tables
81
82 * Simple tables are available.  A table row is introduced by a <strong>|</strong> in the first column.  It is best described by example:
83 <pre>
84       ||  _<em></em>_Name_<em></em>~_               |v _<em></em>_Cost_<em></em>~_   |v _<em></em>_Notes_<em></em>~_
85       | _<em></em>_First_<em></em>~_   | _<em></em>_Last_<em></em>~_
86       |> Jeff       |< Dairiki   |^  Cheap     |< Not worth it
87       |> Marco      |< Polo      | Cheaper     |< Not available
88 </pre>
89 ;:will generate
90 <?plugin OldStyleTable
91 ||  <strong>Name</strong>               |v <strong>Cost</strong>   |v <strong>Notes</strong>
92 | <strong>First</strong>   | <strong>Last</strong>
93 |> Jeff       |< Dairiki   |^  Cheap     |< Not worth it
94 |> Marco      |< Polo      | Cheaper     |< Not available
95 ?>
96
97 ;:Note that multiple <strong>|</strong>'s lead to spanned columns, and <strong>v</strong>'s can be used to span rows.  A <strong>></strong> generates a right justified column, <strong><</strong> a left justified column and <strong>^</strong> a centered column (which is the default.)
98 ;:With the new [Help:TextFormatingsRules] tables are only supported with the [Help:OldStyleTablePlugin].
99
100 ! HTML Mark-Up Language
101
102 * Don't bother
103 * < and > are themselves
104 * The & characters will not work
105 * If you really must use HTML, your system administrator can enable this feature. Start each line with a bar (|). Note that this feature is disabled by default.
106
107 ! Footnotes
108
109 #[|ftnt_1]~[[1|#ftnt_ref_1]~]  By using ~[1] a second time (in the first column) the footnote itself is <em>defined</em>.  You may refer to a footnote as many times as you want, but you may only define it once on the page.  Note the the ~[1] in the footnote links back to the first reference, if there are multiple references there will be +'s after the ~[1] which will link to the other references.  (References which come <em>after</em> the footnote <em>definition</em> will not be linked to.)
110
111 <noinclude>
112 ----
113 [[PhpWikiDocumentation]]
114 </noinclude>