MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: unmaintained
Implementation MyWiki
Description Allows configuration of site's <meta "keywords"> and <meta "description"> tags per namespace
Author(s) Conrad Irwin (Conrad.Irwintalk)
MediaWiki 1.14+
Database changes No
License GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
Translate the MetaKeywords extension if it is available at translatewiki.net
Check usage and version matrix.

The MetaKeywords extension allows the addition of <meta keywords=""> and <meta description=""> tags based on namespace. To configure it, you would need to edit Mediawiki:Metakeywords and Mediawiki:Metadescription according to the following format.

The keywords provided are added into the metatag keyword that is automatically generated after the first term, which is the page title, and before the nine other auto-generated words. Both the (all) keywords and the namespace keywords are included.

The description is a new meta-tag, which has a value of either the Namespace specific line OR the (all) line. You can use $1 to represent the page title.

namespace_name|content to add to tag

For example.

(all)|Wiktionary, a GFDL dictionary, thesaurus and general word forum.
(main)|Free definition of $1 from Wiktionary.
Wiktionary|Discussion about the leading online GFDL dictionary


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