This is very simple MediaWiki extension for adding a
<meta>
description tag to the page's <head>
.
The original author is Joshua C. Lerner, based on a tutorial by Jim R. Wilson. Since version 0.3.0 it is maintained by Dror S. [FFS].
Version 0.4.0 was only tested with MediaWiki 1.27; in theory, it should work with MediaWiki 1.25+. Version 0.3 should work with MediaWiki 1.16+.
This extension has no configuration options.
You can use MetaDescriptionTag by adding the tag to articles:
<metadesc>Home page for the MetaDescriptionTag MediaWiki extension</metadesc>
For use in templates, you can call it using {{#tag:metadesc}}
, for example:
{{#tag:metadesc | A description - {{{1}}} }}
.
This is re-write to make it compatible with more modern MediaWiki practices and make sure it works nicely with MediaWiki 1.27+:
- Extension Registration (extension.json)
- json i18n files
- An actual README file! :-)
- Switching to semantic versioning.
Fix i18n to work with v1.16+, sanitize output using htmlspecialchars().
Change syntax to some content to support template variable substitution.
Initial release.