Jump to content

Extension:Hreflang

From mediawiki.org
MediaWiki extensions manual
Hreflang
Release status: unmaintained
Implementation User interface
Author(s) Stas Malyshev
Latest version 0.0.1
MediaWiki >= 1.31.0
License No license specified
Download
  • $wgHreflangPages
  • $wgHreflangGenerate
Quarterly downloads 0
Translate the Hreflang extension if it is available at translatewiki.net

The Hreflang extension adds links with the hreflang attribute pointing to interwiki links to the head of the page HTML.

Installation

[edit]
  • Download and move the extracted Hreflang 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/Hreflang
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Hreflang' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.