Extension:TimelineXML
|
|
WARNING: the code or configuration described here poses a major security risk.
Problem: Vulnerable to Cross-site scripting attacks, because it passes user input directly to the browser. This may lead to user accounts being hijacked, among other things. |
|
TimelineXML Release status: experimental |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Adds <timelinexml> tag to create timelines |
||
| Last version | 0.1dev (2012-01-04) | ||
| MediaWiki | 1.19svn | ||
| PHP | 5.2.13 | ||
| License | GPL 3 | ||
| Download | Project page |
||
|
|||
|
|||
|
Check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
This extension will allow the user to include graphical timelines defined by XML syntax.
[edit] Download instructions
Please copy and paste the code found at GitHub and place it in $IP/extensions/TimelineXML/. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
[edit] Installation
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/TimelineXML/TimelineXML.php");
[edit] Status
At the moment, the extension can transform:
<timelinexml width="230" height="550">
<period from="1948-12-07" till="2011-09-30"/>
<colors>
<color id="CDU" value="black" legend="CDU"/>
<color id="SPD" value="red" legend="SPD"/>
</colors>
<data>
<datum from="start" till="1953-09-29" color="SPD">Ernst Reuter</datum>
<datum from="1953-10-22" till="1955-01-11" color="CDU">Walther Schreiber</datum>
<datum from="1955-01-11" till="1957-08-30" color="SPD">Otto Suhr</datum>
<datum from="1957-10-30" till="1966-12-01" color="SPD">Willy Brandt</datum>
<datum from="1966-12-02" till="1967-10-19" color="SPD">Heinrich Albertz</datum>
<datum from="1967-10-19" till="1977-05-02" color="SPD">Klaus Schütz</datum>
<datum from="1977-05-02" till="1981-01-23" color="SPD">Dietrich Stobbe</datum>
<datum from="1981-01-23" till="1981-06-11" color="SPD">Hans-Jochen Vogel</datum>
<datum from="1981-06-11" till="1984-02-09" color="CDU">Richard von Weizsäcker</datum>
<datum from="1984-02-09" till="1989-03-16" color="CDU">Eberhard Diepgen</datum>
<datum from="1989-03-16" till="1991-01-24" color="SPD">Walter Momper</datum>
<datum from="1991-01-24" till="2001-06-16" color="CDU">Eberhard Diepgen</datum>
<datum from="2001-06-16" till="end" color="SPD">Klaus Wowereit</datum>
</data>
</timelinexml>
into a very basic graphic of red and black rectangles linking to Wikipedia; so don't get your hopes up.
