Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

A MediaWiki extension that allows creating machine-readable navigation templates. NOTE: this extension's source code is now hosted on Wikimedia!

License

Notifications You must be signed in to change notification settings

neoncitylights/mediawiki-extensions-StructuredNavigation

Repository files navigation

StructuredNavigation

A MediaWiki extension that allows creating machine-readable navigation templates.

How to Use

You can play with an example in /docs/examples. For this example, let's try using wikipedia-en-dontnod-entertainment.json.

  1. Create a new page at Navigation:Dontnod Entertainment, import the JSON into that page, then save your edit.
  2. At a separate wikitext page, add <mw-navigation title="Dontnod Entertainment" /> and press save.

Contributing

Are you interested in contributing? Read the official contribution guide, which covers:

Install

This extension requires MediaWiki 1.34 (or greater) and PHP 7.4 (or greater). To install:

  1. Git clone this repository locally on your wiki.
  2. Add this line to your LocalSettings.php file:
wfLoadExtension( 'StructuredNavigation' );

Benefits

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 structurednavigation page property (try using [[Special:PagesWithProp/structurednavigation]])
  • produce semantic and accessible HTML

License

Licensed under the MIT license.

About

A MediaWiki extension that allows creating machine-readable navigation templates. NOTE: this extension's source code is now hosted on Wikimedia!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published