From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png

Release status: beta

AutoKeywords screenshot.jpg
Description MediaWiki extension for automated meta keywords
Author(s) (Abhi M Balakrishnantalk)
Latest version 0.1 (08 December 2012)
MediaWiki 1.20
PHP 5.3
License GPL
Download Mirror 1
Example Secpedia


seo, meta, keywords
Hooks used

Translate the AutoKeywords extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

Automatically adds meta keywords to articles according to current page, categories and with pre defined set of keywords.

Introduction[edit | edit source]

Adds meta keywords to all Mediawiki pages automatically.

Installation[edit | edit source]

  • Download and place the file(s) in a directory called AutoKeywords in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/AutoKeywords/AutoKeywords.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
  • Copy the AutoKeywords directory into the extensions folder of your MediaWiki installation.
  • Add following lines to your LocalSettings.php file towards the end:

$CommonKeywords = "keywords, that are, relevant, to your site, in comma separated values"; require_once("$IP/extensions/AutoKeywords/AutoKeywords.php");

  • See Special:Version and confirm the presence of AutoKeywords under "Installed extensions", "other" category
  • Clear the cache of your browser
  • Reload any Mediawiki page
  • Check the HTML source and confirm the presence of following line before </head>:

<meta name="keywords" content="sitename, article name, category name 1, category name 2, keywords, that are, relevant, to your site, in comma separated values" />

Configuration parameters[edit | edit source]

$CommonKeywords = "keywords, that are, relevant, to your site, in comma separated values";
Change it according to the requirement.

References[edit | edit source]