Extension:StructuredNavigation

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
StructuredNavigation
Release status: stable
Structured-navigation.svg
Implementation ContentHandler , Tag
Description Allows creating machine-readable navigation templates
Author(s)
Latest version 1.0.0
MediaWiki 1.32+
Database changes No
License MIT License
Download
Translate the StructuredNavigation extension if it is available at translatewiki.net
Check usage and version matrix.

The StructuredNavigation extension allows users to create machine-readable navigation templates.

Installation[edit]

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

Usage[edit]

You can play with an example in /docs/examples (from the source code repository). 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.