1 Date: Mon, 2 Feb 2009 5: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.
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.
31 - style="font-weight:bold;background-color:#d8d8d8;", align=center
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 === Example 1: simple table
64 {| border="1", style="width: 100%"
65 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
66 |= This is the table summary
67 |- style="white-space: nowrap"
73 | <b>Cell II</b>, in bold
74 |align=right, width="100%" |Cell III
75 |- bgcolor=#f0f0ff, align=center
76 |Cell 1||Cell 2||Cell 3
79 The above table is rendered from:
82 {| border="1", style="width: 100%"
83 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
84 |= This is the table summary
85 |- style="white-space: nowrap"
91 | <b>Cell II</b>, in bold
92 |align=right, width="100%" |Cell III
93 |- bgcolor=#f0f0ff, align=center
94 |Cell 1||Cell 2||Cell 3
98 === Example 2: table with paragraphs, lists and plugins in cells
101 |- style="white-space: nowrap"
112 |- bgcolor=#f0f0ff, align=center
113 |Current date || <<CurrentTime format=date>>
116 The above table is rendered from:
120 |- style="white-space: nowrap"
131 |- bgcolor=#f0f0ff, align=center
132 |Current date || <<CurrentTime format=date>>
136 === Example 3: nested tables
139 {| class="bordered", align=center
140 |+ Outer table caption
142 ! Header A !! Header B
149 This cell contains a nested table.
151 |+ Inner table caption
174 The above table is rendered from:
178 {| class="bordered", align=center
179 |+ Outer table caption
181 ! Header A !! Header B
188 This cell contains a nested table.
190 |+ Inner table caption
216 Marc-Etienne Vargenau, Alcatel-Lucent
219 * [[http://meta.wikimedia.org/wiki/Help:Table|Mediawiki table help page]]
222 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]