Extension:MetaDescriptionTag

An extension which gives users the ability to inject a &lt;meta&gt; description into the document header.

Note: Jim R. Wilson's excellent article Doing more with MediaWiki parser extensions contains a lengthy discussion of how this extension works.

Installation

 * 1) Create a file named MetaDescriptionTag.php containing the code below.
 * 2) Copy this file to $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 a &lt;meta&gt; description tag by adding the following to the article text: &lt;metadesc content="PageDescription" /&gt; Where PageDescription would be replaced by the desired meta description.

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