A MediaWiki tag extension for adding <meta>
description to a page.
This extension is forked from Mediawiki Extension:MetaDescriptionTag
This is a MediaWiki extension which adds support for injecting a description tag into the page header.
MediaWiki 1.25.1 or higher PHP 5.x or higher
- Command
git clone https://github.com/wiki-chan/MetaDescriptionTag.git
in $IP/extensions
- Enable the extension by adding this line to your LocalSettings.php:
wfLoadExtension( "MetaDescriptionTag" );
Once installed, you may utilize MetaDescriptionTag by adding the tag to articles:
<metadesc> Home page for the MetaDescriptionTag MediaWiki extension </metadesc>
- version 0.1: Initial release.
- version 0.2:
Change syntax to
<metadesc>some content</metadesc>
to support template variable substitution. - version 0.3:
Fix i18n to work with v1.16+, sanitize output using
htmlspecialchars()
- version 0.4: Fix extension to work with v1.25.1+