Extension:JSWikiGantt

This extension aims to allow adding Gantt charts (diagrams) to wiki pages without the need of exporting diagrams to PNG.

This is achieved by allowing users to add simple XML definition of diagrams in   tag. Currently only one diagram per page is allowed (which is due to the limitations of the original JSGantt).

Usage
To add a diagram to a page, simply add a   tag with   tags inside it (described below).

The   tag can have only one attribute:
 * autolink : if set to 1, your tasks will be automatically linked based on the task id (very useful if you use task ids from your bug tracking software). Remember to set $wgJSGanttConfig['TasksAutoLink'] in JSWikiGantt.config.php if you use this. The default state of autolinking is set with the $wgJSGanttConfig['AutoLinks'] variable.

Tasks tags
Tags that can be used inside the   tag are described below.

Note. You might actually skip some required values if you are putting tags directly in your article (loading diagram from an external article is not advised anyway - left for backward compatibility).

Example
Example code:

Diagram options
As of 0.6.0  you can set some extra Gantt options from MediaWiki code e.g.:

Those options allow you to enable features for certain Gantt diagram without changing the configuration of the extension.

Available options
All of the available options are:
 * option-show-responsible</tt> - show responsible column (defaults to 0 - hidden)
 * option-show-duration</tt> - show duration column (defaults to 0 - hidden)
 * option-show-precent-complete</tt> - show percent complete column (defaults to 0 - hidden)
 * option-show-start-date</tt> - show start date column (defaults to 0 - hidden)
 * option-show-end-date</tt> - show end date column (defaults to 0 - hidden)
 * option-caption-type</tt> - task caption (right side annotation) type. Available types: None, Caption, Resource (default), Duration, Complete.

Using options in MediaWiki 1.16
Note! Those options will NOT work in MediaWiki 1.16 or lower. You need to patch  by changing:

to:

Installation

 * 1) Download the files from the link in the infobox and place them under $IP/extensions/JSWikiGantt</tt>
 * 2) At the end of LocalSettings.php, add:
 * 3) Installation can now be verified through Special:Version</tt> on your wiki
 * 4) If you use apache's mod_rewrite to beautify your wiki's URLs you need to add a RewriteCond to apache's config to exclude the path to your JSWikiGantt installation from rewriting. Example: