Open main menu

Extension:Cite

(Redirected from Extension:Cite/Cite.php)
Translate this page; This page contains changes which are not marked for translation.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎Ελληνικά • ‎русский • ‎فارسی • ‎中文 • ‎日本語 • ‎한국어
This page documents the extension. For how to use it, see help on footnotes and help on citing.
This extension comes with MediaWiki 1.21 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
MediaWiki extensions manual
OOjs UI icon advanced.svg
Cite
Release status: stable
Cite extension screenshot.png
Implementation Tag
Description Allows footnotes for citing sources and helps for correctly citing content in offline media
Author(s) Ævar Arnfjörð Bjarmasontalk
Latest version continuous updates
Compatibility policy release branches
MediaWiki 1.34+
PHP 7.0+
Database changes No
License GNU General Public License 2.0 or later
Download
Example Wikipedia:Footnotes
  • $wgCiteBookReferencing
  • $wgCiteResponsiveReferences
  • $wgCiteVisualEditorOtherGroup
Translate the Cite extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

The Cite extension allows a user to create references as footnotes on a page. It adds two parser hooks to MediaWiki, <ref> and <references />; these operate together to add citations to pages.

UsageEdit

See the help page for using the Cite extension for further information.

InstallationEdit

  • If using Vagrant , install with vagrant roles enable cite --provision
Manual installation
  • Download and place the file(s) in a directory called Cite in your extensions/ folder.
  • Only when installing from git run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See T173141 for potential complications.)
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Cite' );
    
  • Configure as required.
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

ConfigurationEdit

$wgCiteBookReferencing

Enables an experimental feature for sub-references when set to true, see the help page. Default value: false

$wgCiteResponsiveReferences

Default setting for responsive display of references. When set to true, the references section will be displayed in multiple columns. See the usage documentation. Default value: true

$wgCiteVisualEditorOtherGroup

When set to true, the Cite toolbar button can be moved under the Insert menu. This is used on Wikivoyage sites. See the original feature request. Default value: false

See alsoEdit