Extension:Hreflang

From Linux Web Expert

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 Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
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

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/Hreflang</tvar>|Download]] and move the extracted <tvar name=name>Hreflang</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Hreflang
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'Hreflang' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>