Extension:TimelineTable

What can this extension do?
This extension is a simple tag extension that generates timelines contained in html tables. From a list of events in the correct format, the extension will generate a html table (with a line for each event) spanning the columns over the event time range. Table formatting uses CSS defined in mediawiki:common.css file.

Usage
In your Mediawiki code, enter the following:



This will generate a html table with three rows (one per event), and a column for each month between the first month of the earliest event to the last month of the last event.

To modify the table format, define CSS classes in mediawiki:common.css. Here is a sample CSS code.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Configuration parameters
Extension contains two parameters when creating a table:
 * title - Defines the title that will be put at the top of the table.
 * footer - Defines the table footer text.

Code
';	// Define the html code as a marker, then change it back to text in 'efTimelineAfterTidy'. This is done to prevent the html code from being modified afterwards. global $markerList; $makercount = count($markerList); $marker = "xx-marker".$makercount."-xx"; $markerList[$makercount] = $timeline_str; return $marker; }

function efTimelineAfterTidy(&$parser, &$text) { // find markers in $text // replace markers with actual output global $markerList; for ($i = 0; $i common.css - Finish syntax YYYY-MM|YYYY-MM|text|color|bgcolor|comment - Options - Check execution time - Clear code - Check inputs (date order, etc.) ?>