For another way to enable
{{SHORTDESC:}}
parser without the use of this extension, see the
Wikibase option.
The ShortDescription extension allows wikis to add short descriptions to wikitext pages, similar to the implementation on Wikipedia and Wikibase. On top of that, it replaces the site tagline with short description on pages with short description.
Note that the latest version is located in the GitHub repo instead of Gerrit.
ShortDescription
in your extensions/
folder.wfLoadExtension( 'ShortDescription' );
{{SHORTDESC}}
, same as the implementation on Wikipedia{{GETSHORTDESC}}
#siteSub
)
&action=info
)The extension works out of the box without any configurations. The config flags allow more customization on the specific features in the extension.
Name Description Values Default$wgShortDescriptionEnableTagline
Enables short description in site tagline true
- enable; false
- disable true
$wgShortDescriptionExtendOpenSearchXml
Provide short description to the Opensearch API module true
- enable; false
- disable false
Add short description[edit]
To add Bacon ipsum dolor amet turkey
as short description, simply add {{SHORTDESC:Bacon ipsum dolor amet turkey}}
on the page.
To retrive the short description on the page Bacon
, simply add {{GETSHORTDESC:Bacon}}
on the page. If you are retrieving the short description on the same page (e.g. getting the short description of Bacon
on the Bacon
page), simply add {{GETSHORTDESC:}}
.
The short description can be called through the description
property in query
action in the Action API (e.g.api.php?action=query&prop=description
). It is also accessible through the shortdesc
property inside pageprops
.
The short description can be accessed through the description
property in the search endpoint in the REST API.
ShortDescription on
Skin:CitizenShortDescription on
Skin:MinervaShortDescription on
Skin:MonobookShortDescription on
Skin:TimelessShortDescription on
Skin:VectorRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4