User:Zayoo/Extension:Advanced Meta

This is a suggesting version of Extension:Advanced Meta.

Installation
To basically install the plugin, create a folder called MWAdvancedMeta in /extensions/ in your MediaWiki main folder, then upload the source code below in two files called MWAdvancedMeta.php and MWAdvancedMeta.i18n.php in the new folder. In LocalSettings.php add this line

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

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

Last, a table should be added to the mediawiki database. The following SQL should take care of that (note: change 'mw' to your wiki prefix as needed for the AL code and modify the table name referenced in the "write" function as well....):