It's better when it's simple

User Tools

Site Tools


Extended Table Syntax 3 Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin Implement extended (MediaWiki-style) table syntax in DokuWiki

Last updated on

Similar to exttab1, exttab2

Tagged with mediawiki, tables


The third trial to implement extended (MediaWiki-style) table syntax in DokuWiki.

What's New / Difference from exttab2:

  • The plugin now completely writes its own plugin calls (instruction list) in the handle processing stage before render stage. In contrast to earlier versions, this change ensures the plugin to work better with DokuWiki's own EOL & paragraph handling and serves to avoid potential invalid html rendering.
  • Better handling of nested tables (tables inside tables), even though they should be avoided as much as possible.
  • No need to add an extra blank line to the end of whole table to close extended table mode.


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples / Usage

The markup for the extended table is explained well at

Here is an example usage of extended table syntax.

Wiki source
{| title="Extended Table Example"
|+//Extended Table Example//
! style="width: 12em;"| A1 Header
! style="width: 10em;"| B1 Header
|- style="background-color: MistyRose;"
{| title="nested table"
|+ //nested table//
{{ wiki:dokuwiki-128.png?50&nolink}}
**Lorem** ipsum dolor sit amet, 
//consetetur// sadipscing elitr, 
sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat, 
sed diam voluptua.
List in Cell
  * //italic// and **bold**
  * ''monospace''
  * [[:start|page link]]

> quoting

Needs an extra empty line 
after lists and quoting syntax!
html output (image)

Extended Table Example


CSS style tips

The class exttable is available as a part of selectors in your CSS file. The HTML of extended table is enclosed between <div class="exttable"> and </div>. The following CSS rule-set is defined in style.css of the plugin directory:

  • reducing indent width of list block in cells:
    .exttable ol, .exttable ul { padding-left: 0em; }
  • reducing bottom and left margin of list block in cells:
    .exttable ol, .exttable ul { margin-bottom: 0.3em; margin-left: 1em; }
  • suppress extra line spacing after paragraph in cells:
    .exttable p { margin-bottom: 0; }

exttab with vector template

When using vector template for DokuWiki, tables won't have borders around the cells. To add a border, use the default way of vector template customization by altering /dokuwiki/lib/tpl/vector/user/screen.css (NOT /dokuwiki/lib/tpl/vector/styles/screen.css). Insert the following:

.exttable td,
.exttable th {
   **border**: 1px solid __border__;


This 3rd trial to implement exttab is based on

Thanks for their earlier development and sharing source code.


Change Log


This plugin is only a trial to implement MediaWiki-like extended table syntax, and table output (html) may differ from those of MediaWiki.


Problem with bordering inserts by Include Plugin

If you use {{page>...}} syntax of Include Plugin in wikitables, it will crush borders in all cells after a table header. If you look at browser's console, it will show inserted code style="border: 0px none;" in TD tags. CSS files can't do this, and in both plugins there is no such code, so it's a problem of Doku core, maybe.

You can fix it by adding !important mark to a both border instructions in lib/plugins/exttab3/style.css. This decision works with more high priority, but doesn't make a pure code, whatever.

[fixed] vertical bar treated wrong

Links do not work if they contain an embedded vertical bar, like in [[path:to:page|Oh that page!]]. - Daumling

changing line 70 of file syntax.php might also be a fix.
        $attrs = '[^\n\{\|\!\[]+'; // match pattern for attributes
Thanks for this patch, merged into the plugin release 2014-11-20.

How to force a newline

<br/> to create line breaks within cells does not work. - Silverfire

please use \\ – two backslashes followed by a whitespace or the end of line.
It's an original syntax of Doku, but if somebody really want to use <br/>, than s/he can add this tag at conf/entities.conf file (or at update-protected conf/entities.local.conf file) as string <br> <br />
plugin/exttab3.txt · Last modified: 2023-10-30 22:30 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki