Skip to content

wiki-chan/MetaDescriptionTag

Repository files navigation

MetaDescriptionTag

A MediaWiki tag extension for adding <meta> description to a page.

This extension is forked from Mediawiki Extension:MetaDescriptionTag

Description

This is a MediaWiki extension which adds support for injecting a description tag into the page header.

Requirements

MediaWiki 1.25.1 or higher PHP 5.x or higher

Installation

  1. Command
   git clone https://github.com/wiki-chan/MetaDescriptionTag.git

in $IP/extensions

  1. Enable the extension by adding this line to your LocalSettings.php:
   wfLoadExtension( "MetaDescriptionTag" ); 

Usage

Once installed, you may utilize MetaDescriptionTag by adding the tag to articles:

    <metadesc> Home page for the MetaDescriptionTag MediaWiki extension </metadesc>

Version Notes

  • 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+