User:RichardHeigl/Draft
AdvancedMeta Release status: beta |
|
---|---|
Implementation | Page action, Database |
Description | Allows per page editing of various meta tags for SEO reasons |
Author(s) | |
Maintainer(s) | Hallo Welt! GmbH |
Latest version | 3.0.0 (2018-05-17) |
Compatibility policy | Master maintains backward compatibility. |
MediaWiki | 1.27+ |
PHP | 5.5+ |
Database changes | Yes |
License | GNU General Public License 2.0 or later |
Download | |
|
|
Translate the RichardHeigl/Draft extension if it is available at translatewiki.net |
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
editPages 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
edit- Download and move the extracted
RichardHeigl
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RichardHeigl - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'RichardHeigl' );
- Run the update script which will automatically create the necessary database tables that this extension needs.
- Configure as required.
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Note: 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
editThe following MediaWiki variables are taken into account during configuration of the index and follow rules.
$DefaultRobotPolicy
$NamespaceRobotPolicies
$ArticleRobotPolicies
These are initially observed. After saving the index/follow information in the AdvancedMeta dialog only the specific information is valid.
Configuration
editPermission
edit- "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
editIi 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