Jump to content

Extension:VikiSemanticTitle

From mediawiki.org
MediaWiki extensions manual
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 maintains backward compatibility.
MediaWiki 1.23+
PHP 5.3+
Database changes No
License MIT License
Download
Quarterly downloads 0
Translate the VikiSemanticTitle extension if it is available at translatewiki.net
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 move the extracted VikiSemanticTitle 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/VikiSemanticTitle
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'VikiSemanticTitle' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.