]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FMediawikiTablePlugin
Harmonize documentation
[SourceForge/phpwiki.git] / pgsrc / Help%2FMediawikiTablePlugin
1 Date: Thu, 31 Jan 2008 17:09:40 +0100
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.12p3)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FMediawikiTablePlugin;
5   flags="";
6   author=Marc-Etienne%20VARGENAU;
7   version=1;
8   lastmodified=1201795780;
9   created=1201795780;
10   author_id=Marc-Etienne%20VARGENAU;
11   markup=2;
12   hits=2;
13   charset=UTF-8
14 Content-Transfer-Encoding: binary
15
16 <b>~MediawikiTablePlugin</b> is a plugin that takes off from the [RichTablePlugin|Help:RichTablePlugin]. It allows a user to specify a <tt><table></tt> with (a subset of) the syntax used by Mediawiki.
17
18 * The table starts with a line <b>{~|</b> and ends with a line <b>|~}</b>.
19 * An optional table caption is made with a line starting with a pipe and a plus sign <b>|+</b> followed by the caption.
20 * A table row starts with a pipe and a hyphen: <b>|-</b>.
21 * A table cell starts with a pipe on a new line, or a double bar <b>||</b> on the same line.
22
23 HTML attributes:
24 * for the table:
25 <pre>
26 {| border="1"
27 </pre>
28 * for the caption:
29 <pre>
30 |+ style="font-weight: bold;"
31 </pre>
32 * for a row:
33 <pre>
34 |- style="height:100px"
35 </pre>
36 * for a cell:
37 <pre>
38 |align="right" |Cell 2 (right aligned)
39 </pre>
40
41 The attributes might be put with or without double quotes.
42
43 The Mediawiki syntax for headers:
44 <pre>
45 ! Header 1
46 </pre>
47 is not (yet) supported.
48
49 !!! Example
50
51 {| border="1", style="width: 100%"
52 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
53 |- style="white-space: nowrap"
54 | <b>Header 1</b>
55 | <b>Header 2</b>
56 | <b>Header 3</b>
57 |- style=height:100px
58 | Cell I
59 | <b>Cell II</b>,  in bold
60 |align=right, width="100%" |Cell III
61 |- bgcolor=#f0f0ff, align=center
62 |Cell 1||Cell 2||Cell 3
63 |}
64
65 The above table is rendered from:
66
67 <verbatim>
68 {| border="1", style="width: 100%"
69 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
70 |- style="white-space: nowrap"
71 | <b>Header 1</b>
72 | <b>Header 2</b>
73 | <b>Header 3</b>
74 |- style=height:100px
75 | Cell I
76 | <b>Cell II</b>,  in bold
77 |align=right, width="100%" |Cell III
78 |- bgcolor=#f0f0ff, align=center
79 |Cell 1||Cell 2||Cell 3
80 |}
81 </verbatim>
82
83 ;__Author__: Marc-Etienne Vargenau, Alcatel-Lucent
84
85 -------------
86
87 [PhpWikiDocumentation] [WikiPlugin|Help:WikiPlugin]