DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:tablewidth

Table Width Plugin

Compatible with DokuWiki

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

plugin Allows to specify width of table columns

Last updated on
2022-08-09
Provides
Syntax
Repository
Source
Conflicts with
tablelayout

Similar to adhoctables, tablelayout, wrap

Tagged with tables

The plugin allows to specify width for a DokuWiki table and its columns. This is a simple extension to the original table syntax, not a full-fledged rework of the syntax.

Download and Installation

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

Syntax

The width has to be specified at the start of a line before the table. The first value is used as width of the table, the rest is for columns. If you want to omit some value use a dash instead. The widths can be specified in any CSS units:

|< 100% 50px - 5em 10em 10% >|
^ A  ^  B  ^  C  ^  D  ^  E  ^
| 1  |  2  |  3  |  4  |  5  |

The relative units (percentage) for the table width refer to the width of the page, and when used for columns they refer for the table width. For example, the width specification |< 50% 50% 50% >| makes the table half width of the page and two equal columns quarter of the page width each.

If there are more columns in the table than there are values in the width specification, the width will be applied to the columns from left to right:

|< 50em 20% >|
^ 20%              ^ 80%                          ^
| Specified width  | The rest of the table width  |

Version History

2022-08-09

  • Fixed PHP 8 compatibility

2016-10-13

  • Allow table width less than 50% on the default template

2016-02-27

  • Fixed PHP 7 compatibility

2013-12-03

  • Fixed compatibility issue with DokuWiki Binky release

2010-11-18

  • Fixed compatibility issue with DokuWiki 2010-11-07

2009-02-14

  • First public release

Bugs and Feature Requests

Please report bugs or feature requests at the bug tracker.

plugin/tablewidth.txt · Last modified: 2023-12-08 10:04 by 148.64.24.63

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