User:RichardHeigl/Draft

The AdvancedMeta extension allows setting the robots, keywords and description meta tags for MediaWiki, for SEO purposes. Meta settings can be edited for individual pages, or entire namespaces can be denied from indexing by robots.

Usage
Pages that are not excluded from indexing (see Installation) will have an extra section in their edit pages, as shown in the screenshot. These forms allow you to add meta keywords and a description, as well as setting the robots meta tag to index and/or follow your page. If the "index"-checkbox is disabled, keywords and descriptions are of no use obviously, but they will be saved in case you want to have the page indexed later.

Installation
The following section has to be updated and moved to the ExtensionInstall template:

Add the page Mediawiki:Globalkeywords into your own wiki and write the global keywords there, splitted in commas.

There are some settings you can change in LocalSettings.php. Possible settings are namespaces that are indexed by default (default setting: NS_MAIN and NS_PROJECT), and users/usergroups that are allowed to edit the meta settings (default: sysop and bureaucrat).

Note
The following MediaWiki variables are taken into account during configuration of the index and follow rules. These are initially observed. After saving the index/follow information in the AdvancedMeta dialog only the specific information is valid.

Permission

 * "advancedmeta-edit"
 * By default sysops and bureaucrats have this permission allowing to edit meta elements. To give the group user edit permissions, set
 * $wgGroupPermissions['user']['advancedmeta-edit'] = true;

Compatibility
Ii is not sure how this extension works combined with other extensions. It is however expected that the ones that also work with keywords and descriptions will collide.

It is incompatible with maintenance script "ImportImages.php".

Category:HTML head extensions Category:Search engine optimization extensions