Extension:MetaKeywordsTag
From MediaWiki.org
|
MetaKeywordsTag Release status: beta |
|
|---|---|
| Implementation | Tag |
| Description | Extension tag for adding <meta> keywords to the document header. |
| Author(s) | Jim R. Wilson (Jimbojw) |
| Last Version | 0.1 |
| MediaWiki | 1.6.x, 1.8.x, 1.9.x or higher |
| License | The MIT License |
| Download | MetaKeywordsTag.php |
An extension tag which gives users the ability to inject custom <meta> 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
- Licensing
- MetaKeywordsTag is released under The MIT License.
[edit] Installation
- Download MetaKeywordsTag, and be sure to rename the downloaded file to MetaKeywordsTag.php.
- Drop this script in $IP/extensions
- Note: $IP is your MediaWiki install directory.
- Enable the extension by adding this line to your LocalSettings.php:
require_once('extensions/MetaKeywordsTag.php');
[edit] Usage
Once installed, editors of your wiki can add <meta> keyword tags by adding the following to the article text:
<keywords content="ListOfKeywords" />
Where ListOfKeywords would be replaced by the chosen meta keywords.
For example, the above would become:
<meta name="keywords" content="ListOfKeywords" />

