Extension:MetaKeywordsTag

The MetaKeywordsTag extension provides a tag which gives users the ability to inject custom &lt;meta&gt; keywords into the document header.

Note: The article Doing more with MediaWiki parser extensions contains a lengthy discussion of how this extension works.


 * Project Homepage: MetaKeywordsTag Extension - Jimbojw.com
 * Source Code: MetaKeywordsTag.php

Installation

 * 1) Download MetaKeywordsTag, and be sure to rename the downloaded file to MetaKeywordsTag.php.
 * 2) Drop this script in $IP/extensions
 * Note: $IP is your MediaWiki install directory.
 * 1) Enable the extension by adding this line to your LocalSettings.php:

Usage
Once installed, editors of your wiki can add &lt;meta&gt; keyword tags by adding the following to the article text: &lt;keywords content="ListOfKeywords" /&gt; Where ListOfKeywords would be replaced by the chosen meta keywords.

For example, the above would become: &lt;meta name="keywords" content="ListOfKeywords" /&gt;

Unofficial Version 0.3 for MW 1.18.0
If you are running a more recent version of MediaWiki and would like to add meta keywords, you can get source code for an updated version here. It is based on MetaDescriptionTag as modified by Choshi, which was based on the earlier version of MetaKeywordsTag. It works just like the above except the usage in your wiki page where the tags are now written:

&lt;metakey&gt;ListOfKeywords&lt;/metakey&gt; Where ListOfKeywords would be replaced by the chosen meta keywords.