Extension:ExplicitDescription

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
ExplicitDescription
Release status: beta
ExplicitDescription.png
Implementation User interface
Description Generates META description tag based on your explicit definition
Author(s) Bogdan Stăncescu (Gutzatalk)
Latest version 1.0.5 (2009-10-23)
MediaWiki 1.15+
Database changes No
License GNU General Public License 2.0 or later
Download source
changelog
Example example article; description page
Hooks used
ArticleViewHeader
EditPage::showEditForm:fields
Translate the ExplicitDescription extension if it is available at translatewiki.net
Check usage and version matrix.

The ExplicitDescription extension generates the META description tag based on your definition. The extension includes the interface for pointing to the associated description page upon editing pages. Talk pages are ignored.

Usage[edit]

Once the extension is installed, simply edit any page in any namespace and you'll get a box pointing to the article's description page (e.g. MediaWiki:Desc-0-Foo would be the description page for foo). Conversely, editing the description page shows a box pointing back to the associated article.

Installation[edit]

  • Download and place the file(s) in a directory called ExplicitDescription in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/ExplicitDescription/ExplicitDescription.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Notes[edit]

  • If you don't like the appearance of the description box edit extensions/ExplicitDescription/ExplicitDescription.css
  • Do not include any markup in the description!
  • If you have to localize the messages take a look at extensions/ExplicitDescription/ExplicitDescription.i18n.php

Known issue: Fatal error: Call to undefined function wfLoadExtensionMessages() in /var/www/test18/w/extensions/ExplicitDescription/ExplicitDescription.php on line 52[edit]

Get rid of this line from ExplicitDescription.php:

wfLoadExtensionMessages( 'ExplicitDescription' );

See also[edit]