Date: Mon, 2 Feb 2009 5:18:24 +0100 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; pagename=Help%2FMediawikiTablePlugin; flags=PAGE_LOCKED; markup=2; charset=iso-8859-1 Content-Transfer-Encoding: binary The *~MediawikiTable* [[Help:WikiPlugin|plugin]] allows a user to specify a #### with (a subset of) the syntax used by Mediawiki. The plugin is not meant to be called directly, just use the syntax below to insert your table. == Mediawiki table syntax * The table starts with a line {~| and ends with a line |~}. * An optional table caption is made with a line starting with a pipe and a plus sign |+ followed by the caption. * An optional table summary is made with a line starting with a pipe and an equal sign |= followed by the summary. * A table row starts with a pipe and a hyphen: |-. * A table cell starts with a pipe on a new line, or a double bar || on the same line. * A header table cell starts with an exclamation mark, or a double exclamation mark !! on the same line. The summary syntax is an extension to the Mediawiki syntax. You can also simply put the summary as an attribute to the table. The summary is necessary to be able to create accessible tables. === HTML attributes The attributes might be put with or without double quotes. == Examples === Example 1: simple table {| border="1", style="width: 100%" |+ style="font-weight: bold; font-size: 150%;" | This is the table caption |= This is the table summary |- style="white-space: nowrap" ! Header 1 ! Header 2 ! Header 3 |- style=height:100px | Cell I | Cell II, in bold |align=right, width="100%" |Cell III |- bgcolor=#f0f0ff, align=center |Cell 1||Cell 2||Cell 3 |} The above table is rendered from: {| border="1", style="width: 100%" |+ style="font-weight: bold; font-size: 150%;" | This is the table caption |= This is the table summary |- style="white-space: nowrap" ! Header 1 ! Header 2 ! Header 3 |- style=height:100px | Cell I | Cell II, in bold |align=right, width="100%" |Cell III |- bgcolor=#f0f0ff, align=center |Cell 1||Cell 2||Cell 3 |} === Example 2: table with paragraphs, lists and plugins in cells {| |- style="white-space: nowrap" ! Header 1 ! Header 2 |- bgcolor=yellow | First paragraph. Second paragraph. | * One * Two * Three |- bgcolor=#f0f0ff, align=center |Current date || <> |} The above table is rendered from: {| |- style="white-space: nowrap" ! Header 1 ! Header 2 |- bgcolor=yellow | First paragraph. Second paragraph. | * One * Two * Three |- bgcolor=#f0f0ff, align=center |Current date || <> |} === Example 3: nested tables <> The above table is rendered from: <> == Author Marc-Etienne Vargenau, Alcatel-Lucent == See Also * [[http://meta.wikimedia.org/wiki/Help:Table|Mediawiki table help page]] ---- [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]