Extension:ArticleMetaDescription
ArticleMetaDescription Release status: stable |
|
---|---|
Implementation | Data extraction |
Description | Adds SEO-friendly <meta description="..." /> tags containing a brief snippet of the article to article pages' HTML |
Author(s) |
|
Latest version | 1.4 |
MediaWiki | 1.39+ |
License | GNU General Public License 2.0 or later |
Download | |
Example | ShoutWiki |
Quarterly downloads | 9 (Ranked 128th) |
Public wikis using | 6,846 (Ranked 27th) |
Translate the ArticleMetaDescription extension if it is available at translatewiki.net | |
ArticleMetaDescription extension adds SEO-friendly <meta description="..." />
tags containing a brief snippet of the article to article pages' HTML.
Additionally said description for the Main Page only can be overridden by editing the MediaWiki:Description
interface message.
Installation
edit- Download and move the extracted
ArticleMetaDescription
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/ArticleMetaDescription - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'ArticleMetaDescription' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
editArticleMetaDescription automatically takes the first paragraph of the article and puts it into the <meta description="..." />
tag inside the page header section. All templates (infoboxes, tables etc.) are ignored by default.
It's possible to set predefined description for the wiki's main page (the name of which is specified in MediaWiki:Mainpage
) by putting desired text into the MediaWiki:Description
message.
See also
editThis extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |