Extension:Redircite

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Redircite
Release status: unmaintained
Implementation Tag
Description An extension that allows for abbreviated inline citations
Author(s) Joe Beaudoin Jr. Roan Kattouw
Latest version 1.0 (2007-10-04)
MediaWiki 1.11
License GPL
Download Template:WikimediaDownload/svn
README
CHANGELOG
Hooks used
ParserAfterTidy
Translate the Redircite extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?[edit]

When linking to articles with very long names (like Wikipedia:Biographies of living persons), it can be convenient to use the abbreviated redirect WP:BLP instead. However, it's not very clear to the reader what "WP:BLP" stands for. With the redircite extension, one can create a link to WP:BLP that expands to "Wikipedia:Biographies of living persons" when the user places the mouse cursor on it.

Installation[edit]

Just download redircite.php through the download link in the infobox on the right and move it to the /extensions/redircite/ directory. See also the README file.

Changes to LocalSettings.php[edit]

Add the following line on the bottom of your LocalSettings.php:

require_once("$IP/extensions/redircite/redircite.php");

Usage[edit]

To create a link to WP:BLP that expands to "Wikipedia:Biographies of living persons" when the user places the mouse cursor on it (as described above), use the following code: (this requires WP:BLP to be a redirect to Wikipedia:Biographies of living persons)

<redircite>WP:BLP</redircite>

If WP:BLP is non-existent, a red link will be displayed; if WP:BLP exists but is not a redirect, a normal link to WP:BLP will be displayed.

Sites using the extension[edit]

The following is a list of sites that use the extension. Feel free to add your wiki to this list if you use the Redircite extension. Also include your current MediaWiki version, so we can determine which versions of MediaWiki this extension works well with.