Extension:AdvancedMeta

The Advanced Meta 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).

To set these settings, add this line first

Then add one or more of these lines


 * Warning: If you don't set these rules, by default all sysops and bureaucrats can modify meta information

Namespaces that are not in the 'indexedpages' variable will get a "noindex,follow" by default. There is currently no setting to also prevent them from being followed, but I might add that sooner or later depending on if it's being requested (feel free to contact me).

Permission

 * "advancedmeta-edit"
 * By default sysops and bureaucrats have this permission allowing to edit meta elements.

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".