Extension:MetaKeywords

From MediaWiki.org

Jump to: navigation, search

   

Manual on MediaWiki Extensions
List of MediaWiki Extensions
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

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