1 Date: Mon, 22 Dec 2008 14:15:24 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FMediawikiTablePlugin;
9 Content-Transfer-Encoding: binary
11 The *~MediawikiTable* [plugin|Help:WikiPlugin] takes off from the [RichTable|Help:RichTablePlugin] plugin. It allows a user to specify a <tt><table></tt> with (a subset of) the syntax used by Mediawiki.
13 * The table starts with a line <b>{~|</b> and ends with a line <b>|~}</b>.
14 * An optional table caption is made with a line starting with a pipe and a plus sign <b>|+</b> followed by the caption.
15 * An optional table summary is made with a line starting with a pipe and an equal sign <b>|=</b> followed by the summary.
16 * A table row starts with a pipe and a hyphen: <b>|-</b>.
17 * A table cell starts with a pipe on a new line, or a double bar <b>||</b> on the same line.
18 * A header table cell starts with an exclamation mark, or a double exclamation mark <b>!!</b> on the same line (works only with an explicit plugin call).
20 The summary syntax is an extension to the Mediawiki syntax.
21 You can also simply put the summary as an attribute to the table.
22 The summary is necessary to be able to create accessible tables.
42 ~|+ style="font-weight: bold;"
47 ~|- style="height:100px"
52 ~| align="right" | Cell 2 (right aligned)
55 The attributes might be put with or without double quotes.
59 {| border="1", style="width: 100%"
60 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
61 |= This is the table summary
62 |- style="white-space: nowrap"
68 | <b>Cell II</b>, in bold
69 |align=right, width="100%" |Cell III
70 |- bgcolor=#f0f0ff, align=center
71 |Cell 1||Cell 2||Cell 3
74 The above table is rendered from:
77 {| border="1", style="width: 100%"
78 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
79 |= This is the table summary
80 |- style="white-space: nowrap"
86 | <b>Cell II</b>, in bold
87 |align=right, width="100%" |Cell III
88 |- bgcolor=#f0f0ff, align=center
89 |Cell 1||Cell 2||Cell 3
93 In this example, there is no explicit call to the plugin. You have the same syntax as in Mediawiki.
95 You can also explictly call the plugin. This will allow you:
96 * to use the Mediawiki header syntax (!),
97 * to use multiple paragraphs in a cell,
98 * to use lists in a cell.
100 <?plugin MediawikiTable
102 |- style="white-space: nowrap"
113 |- bgcolor=#f0f0ff, align=center
118 The above table is rendered from:
121 <?plugin MediawikiTable
123 |- style="white-space: nowrap"
134 |- bgcolor=#f0f0ff, align=center
142 Marc-Etienne Vargenau, Alcatel-Lucent
145 [PhpWikiDocumentation] [CategoryWikiPlugin]