Extension:CiteThisPage
CiteThisPage Release status: stable |
|
---|---|
File:Cite This Page MediaWiki plugin.png | |
Implementation | Special page |
Description | Adds a special page that provides different citation formats for a particular article |
Author(s) |
|
Latest version | continuous updates |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.36+ |
License | GNU General Public License 2.0 or later |
Download | |
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the CiteThisPage extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
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
- <translate> [[<tvar name=2>Special:ExtensionDistributor/CiteThisPage</tvar>|Download]] and move the extracted <tvar name=name>
CiteThisPage
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'CiteThisPage' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
Cite This Page MediaWiki plugin.png |
- Pages with script errors
- Extensions bundled with MediaWiki 1.25
- Pages with broken file links
- Stable extensions
- Special page extensions
- Extensions with release branches compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- SidebarBeforeOutput extensions
- All extensions
- Extensions used on Wikimedia
- Referencing extensions