Extension:CiteThisPage

This extension comes with MediaWiki 1.25 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
Category:Extensions bundled with MediaWiki 1.25 Category:GPL licensed extensions
MediaWiki extensions manual
CiteThisPage
Release status: stableCategory:Stable extensions
Implementation Special page Category:Special page extensions
Description Adds a special page that provides different citation formats for a particular article
Author(s)
  • Ævar Arnfjörð Bjarmason
  • James D. Forrester
Latest version continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy
MediaWiki 1.36+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgCiteThisPageAdditionalNamespaces
Quarterly downloads 32 (Ranked 64th)
Public wikis using 1,524 (Ranked 197th)
Translate the CiteThisPage extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The CiteThisPage extension, previously known as SpecialCite.php, is an extension that creates a special page (Special:CiteThisPage) and toolbox link to it for pages in the main namespace. Given an article name, this extension generates citations to it in a variety of styles.

Installation

  • Download and move the extracted CiteThisPage folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'CiteThisPage' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Example

English Wikipedia

w:Special:CiteThisPage/Train provides citation info about the article w:Train, in the format specified by the local English MediaWiki file w:MediaWiki:Citethispage-content

Each normal page (current version only) has a sidebar link to that special page, in addition to the link "permanent link".

The citing style it uses is customizable from the MediaWiki namespace (MediaWiki:Citethispage-content), for instance:

 * ''{{FULLPAGENAME}}'' (last modified {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} UTC).
 {{SITENAME}}, {{int:sitesubtitle}}. Retrieved <citation>{{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}}
 {{CURRENTYEAR}}</citation> from {{fullurl:{{FULLPAGENAME}}|oldid={{REVISIONID}}}}

Might produce:

Main Page (last modified 02:47, 26 November 2005 UTC). Wikipedia, The Free Encyclopedia. Retrieved 21:14, 26 November 2005 from https://en.wikipedia.org/w/index.php?title=Main_Page&oldid=10403

Variables

The parser variables e.g. {{CURRENTTIME}}, {{CURRENTMONTH}} etc. will display the time of the last edit to the requested page, to get the current time use <citation>, e.g. <citation>{{CURRENTTIME}}</citation>.

See also

Category:Extensions used on Wikimedia#CiteThisPage Category:Referencing extensions#CiteThisPage Category:Special page extensions#CiteThisPage
Category:All extensions Category:Extensions available as Debian packages Category:Extensions bundled with MediaWiki 1.25 Category:Extensions in Wikimedia version control Category:Extensions included in BlueSpice Category:Extensions included in Canasta Category:Extensions included in Miraheze Category:Extensions included in MyWikis Category:Extensions included in ProWiki Category:Extensions included in WikiForge Category:Extensions included in semantic::core Category:Extensions included in wiki.gg Category:Extensions used on Wikimedia Category:Extensions with manual MediaWiki version Category:Extensions with release branches compatibility policy Category:GPL licensed extensions Category:Referencing extensions Category:SidebarBeforeOutput extensions Category:Special page extensions Category:Stable extensions