1 Date: Mon, 19 Jun 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 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.
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 * A table row starts with a pipe and a hyphen: <b>|-</b>.
16 * A table cell starts with a pipe on a new line, or a double bar <b>||</b> on the same line.
17 * 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).
22 * border="1", cellpadding="5"
32 ~|+ style="font-weight: bold;"
37 ~|- style="height:100px"
42 ~| align="right" | Cell 2 (right aligned)
45 The attributes might be put with or without double quotes.
49 {| border="1", style="width: 100%"
50 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
51 |- style="white-space: nowrap"
57 | <b>Cell II</b>, in bold
58 |align=right, width="100%" |Cell III
59 |- bgcolor=#f0f0ff, align=center
60 |Cell 1||Cell 2||Cell 3
63 The above table is rendered from:
66 {| border="1", style="width: 100%"
67 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
68 |- style="white-space: nowrap"
74 | <b>Cell II</b>, in bold
75 |align=right, width="100%" |Cell III
76 |- bgcolor=#f0f0ff, align=center
77 |Cell 1||Cell 2||Cell 3
81 In this example, there is no explicit call to the plugin. You have the same syntax as in Mediawiki.
83 You can also explictly call the plugin. This will allow you:
84 * to use the Mediawiki header syntax (!),
85 * to use multiple paragraphs in a cell,
86 * to use lists in a cell.
88 <?plugin MediawikiTable
90 |- style="white-space: nowrap"
101 |- bgcolor=#f0f0ff, align=center
106 The above table is rendered from:
109 <?plugin MediawikiTable
111 |- style="white-space: nowrap"
122 |- bgcolor=#f0f0ff, align=center
130 Marc-Etienne Vargenau, Alcatel-Lucent
133 [PhpWikiDocumentation] [CategoryWikiPlugin]