Extension:WikiSEO

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

As of Version 2.0 this extension is not a drop-in replacement for v1.2.2 (the last version before this fork).

Configuration
The following variables are in use by this extension.

Setting this variable will add a  tag to every page.

Usage:. See for more information.

Setting this variable will add a  tag to every page.

Usage:. See for more information.

Setting this variable will add a  tag to every page.

Usage:.

Setting this variable will add a  tag to every page.

Usage:. See for more information.

Setting this variable will add a  tag to every page.

Usage:. See for more information.

Setting this variable will add a  tag to every page.

Usage:. See for more information.

Setting this variable will add a  tag to every page.

Usage:. See for more information.

Only used when Twitter generator is loaded.

Setting this variable will add a  tag to every page.

Usage:.

Array containing the metadata generator names to load.

Default:.

If you only want to change the page title and add 'description', 'keywords', 'robots' tags set

Usage
The extension can be used via the  parser function. It accepts the following named parameters in any order.


 * 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


 * Controls the behavior of search engine crawling and indexing
 * Controls the behavior of search engine crawling and indexing


 * Controls the behavior of the google crawler
 * Controls the behavior of the google crawler


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


 * The image width in px.
 * The image width in px.


 * The image height in px.
 * The image height in px.


 * Alternative description for the image.
 * Alternative description for the image.


 * The locale these tags are marked up in. Of the format language_TERRITORY.
 * The locale these tags are marked up in. Of the format language_TERRITORY.


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


 * tags related to Open Graph type "article"
 * Writers of the article.
 * Writers of the article.


 * Translates into
 * Translates into


 * A high-level section name. E.g. Technology
 * A high-level section name. E.g. Technology


 * When the article was first published. ISO 8601 Format.
 * When the article was first published. ISO 8601 Format.


 * When the article was last changed. ISO 8601 Format.
 * When the article was last changed. ISO 8601 Format.


 * tags related to Twitter Cards (see OpenGraph Tags)
 * If you did not set a global site name through, you can set a site handle per page. If a global site handle is set this key will be ignored.
 * If you did not set a global site name through, you can set a site handle per page. If a global site handle is set this key will be ignored.

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 Cargo or Semantic MediaWiki, with Page Forms, for data entry, or for programmatic creation of a page title from existing variables or content...

Removed tags

 * DC.date.created
 * DC.date.issued
 * google
 * name
 * og:title (automatically set)
 * og:url (automatically set)
 * twitter:card (automatically set)
 * twitter:creator
 * twitter:domain

Removed configuration settings

 * $wgFacebookAdminIds (use $wgFacebookAppId instead)

Removed aliases

 * metakeywords / metak
 * use keywords instead


 * metadescription / metad
 * use description instead


 * titlemode / title mode
 * use title_mode instead

Changed tags

 * article:author -> author
 * article:section -> section
 * article:tag -> keywords
 * article:published_time -> published_time
 * article:modified_time / og:updated_time -> modified_time
 * og:image / twitter:image:src -> image
 * og:image:width -> image_width
 * og:image:height -> image_height
 * og:locale -> locale
 * og:site_name -> site_name
 * og:title -> title
 * og:type -> type
 * twitter:description -> description

Known Issues
Extension:PageImages will add an  tag if an image is found on the page. This overwrites any  tag set using this extension.

There is currently no way to disable PageImages setting the meta tag.