Extension:HierarchyBuilder

MediaWiki extensions manual
HierarchyBuilder
Release status: unmaintained
Implementation Tag , Parser extension
Description Manages a hierarchy of pages with hierarchy links stored external to the pages themselves. Provides form renderers the ability to build a hierarchy of pages in a given category as well as to allow selection of individual pages from a hierarchy.
Author(s)
Latest version 5.0 (2016-12-06)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.25+
PHP 5.3+
Database changes No
License MIT License
Download
hierarchy
Quarterly downloads 4 (Ranked 127th)
Translate the HierarchyBuilder extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The HierarchyBuilder extension introduces a tag, <hierarchy>, two Semantic Form input types, hierarchySelect and hierarchy, and three parser functions #hierarchyChildren, #hierarchyParent, #hierarchySectionNumber.

Installation

edit
This extension requires Semantic MediaWiki to be installed first.
  • Download and move the extracted HierarchyBuilder folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HierarchyBuilder
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'HierarchyBuilder' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

edit

Usage documentation and live examples are provided at our extensions documentation site.

Version history

edit
Version 5.0
  • Switched from Semantic Forms to Page Forms
  • Requires MediaWiki 1.25+
Version 4.0.1
  • Updated forms to support MW 1.26 and fixed static invocation warnings.
Version 4.0.0
  • Removed SelectFromHierarchy legacy mode support.
Version 3.2.2
  • Removed inline JS.
Version 3.2.1
  • Increased editHierarchy page limit to 2000.
Version 3.2.0
  • Added ability to specify pages by property value for HierarchyFormInput.
Version 3.1.0
  • Added titleicon support to hierarchySelect.
Version 3.0.1
  • Corrected collapsed flag and ampersand defects.
Version 3.0.0
  • Restructured code to comply with new code standards. Various minor code quality improvements.
Version 2.0.0
  • Reimplemented display names without displaynameproperty argument.
Version 1.10.0
  • Added TitleIcon support in editHierarchy.
Version 1.9.4
  • Resolved displaynameproperty and collapsed defects in hierarchySelected parser function.
Version 1.9.3
  • Improved robustness of property retrieval.
Version 1.9.2
  • Fixed titleicon size and resolution issues.
Version 1.9.1
  • Reimplemented titleicon support to be more efficient.

Acknowledgements

edit

This extension is implemented using jsTree and nestedSortable libraries.