MediaWiki extensions manual
Release status: unmaintained
Implementation Tag
Description Provides a wrapper for the plastic.js data display library
Author(s) Simon Heimler (Fannontalk)
Latest version 0.0.1 pre-alpha (November 2014)
MediaWiki 1.19+
PHP 5.2+
Database changes No
License MIT License

The PlasticMW exentsion provides a wrapper for the plastic.js data display library.

WARNING: This extension is not ready for production use. It may work, but it is vulnerable to HTML / JS injection. Don't use it on (unprotected) production sites!


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

Instead of downloading the zip archive you may also check this extension out via Git:

git clone https://github.com/Fannon/PlasticMW.git


  • Use a tag to embed a plastic embed code
  • plastic is a javascript library that can (asynchronously) query/fetch data, process it and display it through various modules. It supports querying of SPARQL endpoints and the Semantic MediaWiki ASK API.
  • TODO: Provide an parser function that is less verbose and more secure and uses the MediaWiki syntax.


This Wrapper Extension provides a <plastic> tag that works exactly like the native plastic.js embed code with the one difference that the <plastic> tag is used instead of an <div class="plastic"> tag. For more detailed instructions how to use the plastic.js in general, head to the user documentation.


Embed CodeEdit

<plastic id="table-ask-query" class="test" style="height: auto; width: 800px">

    <script class="plastic-query" type="application/ask-query"
                | ?Vorname=Vorname
                | ?Nachname=Nachname
                | ?Mail=Mail
                | ?Festnetz=Festnetz
                | ?Handy=Handy

    <script class="plastic-options" type="application/json">
            "benchmark": true

    <script class="plastic-display" data-display-module="advanced-table" type="application/json">
            "tableClasses": "table table-condensed smaller-font",
            "paging": true,
            "searching": true,
            "ordering": true,
            "orderMulti": true