Extension:AdvancedMeta

From Linux Web Expert

MediaWiki extensions manual
AdvancedMeta
Release status: unmaintained
File:AdvancedMeta Dialog Box.jpg
Implementation Page action , Database
Description Allows per page editing of various meta tags for SEO reasons
Author(s)
Maintainer(s) Hallo Welt! GmbH
Latest version 3.0.0 (2018-05-17)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.27+
PHP 5.5+
Database changes Yes
Composer mediawiki/advanced-meta
Tables ext_meta
License GNU General Public License 2.0 or later
Download
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 AdvancedMeta extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The AdvancedMeta extension allows setting the robots, keywords and description meta tags for MediaWiki, for SEO purposes. Meta settings can be edited for individual pages, or entire namespaces can be denied from indexing by robots.

Usage

  • Open the AdvancedMeta dialog via the "More" menu: "Search engine optimization".
  • Enter the required information:
    • Title Alias: Shorten the URL to the most important search terms (e.g. advancedmeta-seo-extension)
    • Index: Allow robots to index the page
    • Follow: Allow robots to follow the links in the wiki
    • Description: Give the page a meaningful short description
    • Keywords: Assign meaningful keywords

Screenshots

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/AdvancedMeta</tvar>|Download]] and move the extracted <tvar name=name>AdvancedMeta</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/AdvancedMeta
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'AdvancedMeta' );
    
  • <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
  • Configure as required.
  • 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>

Configuration

Parameters

  • $adwmglobalkeywords
Use this parameter to add the keywords that should be available globally.
$adwmglobalkeywords = [ 'foo', 'bar', 'baz' ];

The following parameters are provided by MediaWiki core and are taken into account during configuration of the index to follow rules:

These are initially observed. After saving the index/follow information in the AdvancedMeta dialog only the specific information is valid.

Permission

  • "advancedmeta-edit"
By default sysops and bureaucrats have this permission allowing to edit meta elements. To give the group user edit permissions, set
$wgGroupPermissions['user']['advancedmeta-edit'] = true;

Compatibility

It is expected that this extension does not play with extensions that also work with keywords and descriptions. It is moreover incompatible with maintenance script "ImportImages.php".

See also