Extension:WikiSEO

The WikiSEO extension allows you to replace, append or prepend the html title tag content, and allows you to add meta keywords and a meta description.

Automated Installation with Composer
This is possible starting with MediaWiki 1.22 and later. Follow the instructions at the Composer help page to add the package  to your   file.

Manual Installation
If you are cloning the extension via Git you will have to instead add the following line to your "LocalSettings.php" file:

Usage
The extension can be used via the  tag or the   parser function. Both accept the following named parameters in any order.
 * tags for general use
 * The title you want to appear in the html title tag
 * The title you want to appear in the html title tag


 * Set to append, prepend, or replace (default) to define how the title will be amended.
 * Set to append, prepend, or replace (default) to define how the title will be amended.


 * The separator in case titlemode was set to append or prepend; "-" (default)
 * The separator in case titlemode was set to append or prepend; "-" (default)


 * A comma separated list of keywords for the meta keywords tag
 * A comma separated list of keywords for the meta keywords tag


 * A text description for the meta description tag
 * A text description for the meta description tag


 * The Google site verification tag used by Google Webmaster Tools
 * This only needs to be added to your wiki's home page. This is the page that your server returns when someone requests your site (such as e.g. http://www.example.com/wiki/ )
 * This only needs to be added to your wiki's home page. This is the page that your server returns when someone requests your site (such as e.g. http://www.example.com/wiki/ )


 * tags related to the Open Graph protocol
 * The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required.
 * The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required.


 * An image URL which should represent your object within the graph.
 * An image URL which should represent your object within the graph.


 * If your object is part of a larger web site, the name which should be displayed for the overall site. e.g., "IMDb".
 * If your object is part of a larger web site, the name which should be displayed for the overall site. e.g., "IMDb".


 * The locale these tags are marked up in. Of the format language_TERRITORY. Default is en_US.
 * tags related to Open Graph type "article"
 * tags related to Facebook Insights
 * tags related to Twitter Cards
 * tags related to Facebook Insights
 * tags related to Twitter Cards
 * tags related to Facebook Insights
 * tags related to Twitter Cards
 * tags related to Twitter Cards
 * tags related to Twitter Cards
 * tags related to Twitter Cards

Adding static values
or 

Adding dynamic values
If you need to include variables or templates you should use the parser function to ensure they are properly parsed. This allows you to use Semantic MediaWiki and Semantic Forms for data entry, or for programatic creation of a page title from existing variables or content...