Extension:FixedHeaderTable

From MediaWiki.org
Jump to navigation Jump to search


MediaWiki extensions manual
OOjs UI icon advanced.svg
FixedHeaderTable
Release status: stable
Implementation Tag
Description This extension wraps the jquery.fixedheadertable widget to create tables with fixed headers and optionally fixed columns.
Author(s) Ishmal Lewis, Mark Malek
Latest version 1.0.0 (2014-09-29)
MediaWiki 1.17+
PHP 5.4.0
License GPL v3+
Download Template:WikimediaDownload/gerritonly
Translate the FixedHeaderTable extension if it is available at translatewiki.net
Check usage and version matrix.

The FixedHeaderTable extension fixes the header of tables contained within the <fixedheadertable> tag.

Usage[edit]

This extension assumes the table markup is formatted line-by-line, with header markup ("!") used for header cells as shown in the example below:

<fixedheadertable fixedcolumns="1">
{| class="wikitable"
! Header 1
! Header 2 
|- 
| Cell 1
| Cell 2
|- 
| Cell 3
| Cell 4
|}
</fixedheadertable>

Parameters[edit]

  • fixedcolumns="3"
    This parameter specifies the amount of columns to fix, counting from the left.

Installation[edit]

  • Download and place the file(s) in a directory called FixedHeaderTable in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/FixedHeaderTable/FixedHeaderTable.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

Currently, there are no configuration parameters.

User rights[edit]

Currently, there are no special user rights needed.