Extension:CiteThisPage

SpecialCite.php is a Cite extension that creates a special page (Special:Cite) and in the main namespace, a toolbox link to it.

Synopsis

 * Special:Cite/Article
 * Special:Cite&page=Article&id=int

Description
Cite is a special page extension that adds a special page Special:Cite, see w:en:Special:Cite. Here a pagename can be filled in, or one can directly use


 * Special:Cite/pagename

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:Cite_text), for instance:

, . Retrieved, 27 August 2024 from
 *  (last modified, 27 August 2024 UTC).

Might produce:


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

Variables
The parser variables e.g., August etc. will display the time of the last edit to the requested page, to get the current time use , e.g. August.

Example
English Wikipedia:

en:Special:Cite/Train provides citation info about the article en:Train, in the format specified by the local English MediaWiki file en:MediaWiki:Cite text

Installation

 * 1) Download the files from SVN and place them to the directory extensions/Cite
 * 2) Add  to LocalSettings.php (changing the folder if necessary).
 * 3) If you are using older distributions, you may have to provide a file called cite_text and place it in the same folder as SpecialCite.php. The cite_text file used by Wikipedia can be found here. If you are using a subversion checkout of Cite, it already contains this file. Alternatively, it may be necessary to copy/paste the text from cite_text into the wiki page MediaWiki:Cite_text.
 * 4) You also need to download extensions/ExtensionFunctions.php, because Special:Cite needs .  Add   to LocalSettings.php (changing the folder if necessary).
 * 5) The extension should be now active.

Note: Cite.php requires hooks in the main MediaWiki code found in HEAD as of 2005-11-27 08:16:59Z It might operate on earlier versions of MediaWiki, but it won't be operating properly.