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 an (unavailable) tutorial by Jim R. Wilson. Since version 0.3.0 it is maintained by Dror S. [FFS].
Version >= 0.5.0 requires MediaWiki 1.43+.
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}}} }}.
Modernize for MediaWiki 1.43+: service injection, namespaced hooks
- AutoloadClasses -> AutoloadNamespaces
- Modern HookHandlers
- Namespace the extension
- Add unit tests
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.