Extension:MetaKeywords

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
MetaKeywords

Release status: unknown

Description Allows configuration of site's <meta "keywords"> and <meta "description"> tags per namespace
Author(s) Conrad.IrwinTalk
License GPL2
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

Check usage (experimental)

This extension allows the addition of <meta keywords=""> and <meta description=""> tags based on namespace. To configure it, you would need to edit Mediawiki:Metakeywords and Mediawiki:Metadescription according to the following format.

The keywords provided are added into the metatag keyword that is automatically generated after the first term, which is the page title, and before the nine other auto-generated words. Both the (all) keywords and the namespace keywords are included.

The description is a new meta-tag, which has a value of either the Namespace specific line OR the (all) line. You can use $1 to represent the page title.

namespace_name|content to add to tag

For example.

 //[[Mediawiki:Metakeywords]]
(all)|Wiktionary,free,dictionary,online
(main)|definition,translation,define
Talk|discussion,about
 //[[Mediawiki:Metadescription]]
(all)|Wiktionary, a GFDL dictionary, thesaurus and general word forum.
(main)|Free definition of $1 from Wiktionary.
Wiktionary|Discussion about the leading online GFDL dictionary

[edit] Installation

  1. Download a snapshot and extract it to your extensions directory. Choose the version that matches your version of MediaWiki.
  2. Add
    require_once( "$IP/extensions/MetaKeywords/MetaKeywords.php" );
    to the bottom of LocalSettings.php.
  3. Installation can now be verified through Special:Version of your wiki.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox