Extension:WikiSEO
From MediaWiki.org
|
WikiSEO Release status: beta |
|||
|---|---|---|---|
| Description | Change your title and meta keyword/description tags. | ||
| Author(s) | (Andrujhontalk) | ||
| Last version | 1.0.0 | ||
| MediaWiki | 1.19.0 | ||
| PHP | 5.3 | ||
| License | GPL | ||
| Download | https://github.com/andru/wiki-seo | ||
|
|||
| Check usage and version matrix; stats | |||
WikiSEO is a simple extension which allows you to replace, append or prepend the html title tag content, and allows you to add meta keywords and a meta description.
Contents |
Installation[edit]
- Download and extract the files in a directory called "
WikiSEO" in your extensions/ folder. - Add the following code to your LocalSettings.php (at the bottom)
require_once( "$IP/extensions/WikiSEO/WikiSEO.setup.php" );
Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Usage[edit]
The {{#seo}} parser function accepts the following named parameters in any order.
- title
- The title you want to appear in the html title tag
- titlemode
- Set to append, prepend, or replace (default) to define how the title will be amended.
- keywords
- A comma separated list of keywords for the meta keywords tag
- description
- A text description for the meta description tag
Example[edit]
{{#seo:
|title=Your page title
|titlemode=append
|keywords=these,are,your,keywords
|description=Your meta description
}}
See also[edit]
This extension has been rewritten to current MediaWiki standards based on the Add HTML Meta and Title extension by Vladimir Radulovski. As I have also made some design changes, I have released it as a separate extension, but it is backwards compatible (it provides a <seo> tag, and permits the use of the metakeywords, metak, metadescription and metad attributes.
- Extension:MetaKeywordsTag for meta tags only
- If you only want to override the display title on pages (not append words to it), you might also look at the DISPLAYTITLE tag in combination with the Manual:$wgAllowDisplayTitle and Manual:$wgRestrictDisplayTitle settings.
- Extension:Advanced Meta for easily setting robots, meta and keywords on entire namespaces or individual pages