1 Date: Sat, 25 Jan 2009 10:18:24 +0100
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* [[Help:WikiPlugin|plugin]] allows a user to specify a ##<table>## with (a subset of) the syntax used by Mediawiki.
12 The plugin is not meant to be called directly, just use the syntax below to insert your table.
14 == Mediawiki table syntax
16 * The table starts with a line <b>{~|</b> and ends with a line <b>|~}</b>.
17 * An optional table caption is made with a line starting with a pipe and a plus sign <b>|+</b> followed by the caption.
18 * An optional table summary is made with a line starting with a pipe and an equal sign <b>|=</b> followed by the summary.
19 * A table row starts with a pipe and a hyphen: <b>|-</b>.
20 * A table cell starts with a pipe on a new line, or a double bar <b>||</b> on the same line.
21 * 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).
23 The summary syntax is an extension to the Mediawiki syntax.
24 You can also simply put the summary as an attribute to the table.
25 The summary is necessary to be able to create accessible tables.
45 ~|+ style="font-weight: bold;"
50 ~|- style="height:100px"
55 ~| align="right" | Cell 2 (right aligned)
58 The attributes might be put with or without double quotes.
62 {| border="1", style="width: 100%"
63 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
64 |= This is the table summary
65 |- style="white-space: nowrap"
71 | <b>Cell II</b>, in bold
72 |align=right, width="100%" |Cell III
73 |- bgcolor=#f0f0ff, align=center
74 |Cell 1||Cell 2||Cell 3
77 The above table is rendered from:
80 {| border="1", style="width: 100%"
81 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
82 |= This is the table summary
83 |- style="white-space: nowrap"
89 | <b>Cell II</b>, in bold
90 |align=right, width="100%" |Cell III
91 |- bgcolor=#f0f0ff, align=center
92 |Cell 1||Cell 2||Cell 3
96 In this example, there is no explicit call to the plugin. You have the same syntax as in Mediawiki.
98 You can also explictly call the plugin. This will allow you:
99 * to use the Mediawiki header syntax (!),
100 * to use multiple paragraphs in a cell,
101 * to use lists in a cell.
103 <?plugin MediawikiTable
105 |- style="white-space: nowrap"
116 |- bgcolor=#f0f0ff, align=center
121 The above table is rendered from:
124 <?plugin MediawikiTable
126 |- style="white-space: nowrap"
137 |- bgcolor=#f0f0ff, align=center
145 Marc-Etienne Vargenau, Alcatel-Lucent
148 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]