A MediaWiki extension that allows creating machine-readable navigation templates.
You can play with an example in /docs/examples. For this example, let's try using wikipedia-en-dontnod-entertainment.json.
- Create a new page at
Navigation:Dontnod Entertainment, import the JSON into that page, then save your edit. - At a separate wikitext page, add
<mw-navigation title="Dontnod Entertainment" />and press save.
This extension requires MediaWiki 1.34 (or greater) and PHP 7.4 (or greater). To install:
- Git clone this repository locally on your wiki.
- Add this line to your
LocalSettings.phpfile:
wfLoadExtension( 'StructuredNavigation' );- Install PHP package dependencies using composer:
composer update
Using this extension allows creating navigations that:
- are machine-readable in JSON, an open format for storing data
- are retrievable with MediaWiki's Action API and REST API
- only contain data: presentation details are separated from the content. No wikitext, inline CSS, or HTML required; e.g the separator symbol is auto-appended after each link using CSS.
- are automatically tracked using the
structurednavigationpage property (try using[[Special:PagesWithProp/structurednavigation]]) - produce semantic and accessible HTML
Licensed under the MIT license.

