Extension:Semantic TreeView

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Semantic TreeView

Release status: unmaintained

Implementation Parser function
Description Create trees to browse the contents of the wiki, either by hand, or in combination with Semantic MediaWiki.
Author(s) Stephan Robotta (Sterotalk)
Latest version 2.1.0 (2012-04-25)
MediaWiki 1.17.x
PHP 5.2.10
License GPL
Download direct download

Translate the Semantic TreeView extension if possible

Check usage and version matrix; code metrics

The Semantic Treeview extension adds a graphical navigation tree to the wiki. Editors create trees using the new #tree and #generateTree parser functions.

Usage[edit | edit source]

To create a tree, add something similar to this:

{{#tree:root=My list of cities|
 * London
 ** Heathrow
 ** City of Westminster
 ** Kensington and Chelsea
}}

If you have Semantic MediaWiki installed, you can create dynamic trees based on the contents of your wiki using the #generateTree parser function with something like this:

{{#tree:root=My Ontology|
 {{#generateTree:property=is a}}
}}

This will create a navigable tree of the 'is a' relationships between the pages in your wiki.

Installation[edit | edit source]

  • Download and extract the files in a directory called Treeview in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/Treeview/Treeview.php" );
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

See also[edit | edit source]