Extension:VikiSemanticTitle

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
VikiSemanticTitle
Release status: unmaintained
Implementation API
Description Extension to VIKI to handle semantic page naming
Author(s) Jason Ji (jjitalk)
Latest version 1.4.0 (2017-08-16)
Compatibility policy master
MediaWiki 1.23+
PHP 5.3+
Database changes No
License MIT License
Download
Translate the VikiSemanticTitle extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

VikiSemanticTitle is an extension to the VIKI extension to handle pages which use semantic page naming. In semantic page naming, the name of a page is not a human-readable title, but rather something of a systematic format (e.g. "Item:1"), and the title of the page is set via a semantic property. Because VikiJS shows page titles for nodes, this extension ensures that the proper page display title is used rather than the systematic title.

See also the Semantic Title extension for more details on semantic page naming. See also MITRE's extensions documentation site.

As of version 1.2, VikiSemanticTitle does not require Semantic Title to be installed, and will work for any pages that make use of the DISPLAYTITLE magic word. See also the MediaWiki documentation regarding magic words.

Installation[edit]

Note Note: This extension requires Semantic MediaWiki as well as VIKI to be installed and invoked first.

Note Note: We encourage users of our extensions to download the latest version from the master branch on Gerrit, rather than the most recent MediaWiki release branch. All MITRE extensions on master are production-ready to the best of our knowledge and reflect the versions we run on our own servers internally.

Note Note: If you are using Semantic Title, note that VikiSemanticTitle 1.2 only works with Semantic Title 3.0 or later.

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