Jump to content

Extension:FixedHeaderTable

From mediawiki.org
MediaWiki extensions manual
FixedHeaderTable
Release status: unmaintained
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 GNU General Public License 3.0 or later
Download Template:WikimediaDownload/gerritonly
Quarterly downloads 1 (Ranked 135th)
Translate the FixedHeaderTable extension if it is available at translatewiki.net

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 move the extracted FixedHeaderTable folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/FixedHeaderTable
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/FixedHeaderTable/FixedHeaderTable.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.