GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Extension:Cite - MediaWiki

This page documents the extension. For how to use it, see help on citing.
MediaWiki extensions manual
Cite
Release status: stable
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 Snapshots releases along with MediaWiki. Master is not backward compatible.
PHP 7.0+
Database changes No
Parameters
  • $wgCiteDefaultRefDirAuto
  • $wgCiteReferencePreviewsConflictingNavPopupsGadgetName
  • $wgCiteResponsiveReferencesThreshold
  • $wgCiteCitationTypeAutoNames
  • $wgCiteResponsiveReferences
  • $wgCiteSubReferencing
  • $wgCiteDefaultBacklinkAlphabet
  • $wgCiteBacklinkCommunityConfiguration
  • $wgCiteReferencePreviews
  • $wgCiteUseLegacyBacklinkLabels
  • $wgCiteVisualEditorOtherGroup
  • $wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
Tags
  • ‎<ref>
  • ‎<references>
Hooks used
  • APIQuerySiteInfoGeneralInfo
  • CommunityConfigurationProvider_initList
  • ContentHandlerDefaultModelFor
  • EditPage::showEditForm:initial
  • GetPreferences
  • MakeGlobalVariablesScript
  • ParserAfterParse
  • ParserClearState
  • ParserFirstCallInit
  • ResourceLoaderGetConfigVars
  • ResourceLoaderRegisterModules
  • UserGetDefaultOptions
Licence GNU General Public License 2.0 or later
Download
Download extension
Git [?]:
  • Browse repository (Phabricator · GitHub)
  • Gerrit code review
  • Git commit log
  • Download source tarball
Help Help:Extension:Cite
Example Wikipedia:Footnotes
Translate the Cite extension if it is available at translatewiki.net
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.

Usage

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

Installation

This extension comes with MediaWiki 1.21 and later, so you do not need to download it. The remaining configuration instructions must still be followed.
  • Download and move the extracted Cite 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/Cite
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Cite' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


Vagrant installation:

  • If using Vagrant , install with vagrant roles enable cite --provision

Configuration

Name Description Default
$wgCiteSubReferencing Enables sub-referencing when set to true, see the help page. false
$wgCiteReferencePreviews Enables Reference Previews when Extension:Popups is installed and set to true true
$wgCiteReferencePreviewsConflictingRefTooltipsGadgetName The local Reference Tooltips gadget name used as its identifier in MediaWiki:Gadgets-definition .

This gadget is incompatible with reference previews. Reference previews will disable themselves for users with the gadget enabled.

$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.

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. false

By adding a definition in JSON to MediaWiki:Cite-tool-definition.json, the cite menu can be populated with tools that create references containing specific templates. The content of the definition should be an array containing a series of objects, one for each tool. Each object must contain name, icon, template properties. An optional title property can also be used to define the tool title in plain text. The name property is a unique identifier for the tool, and also provides a fallback title for the tool by being transformed into a message key. The name is prefixed with visualeditor-cite-tool-name-, and messages can be defined on Wiki. Some common messages are pre-defined for tool names such as web, book, news, journal, map.

Example:

[ { "name": "web", "icon": "browser", "template": "Cite web" }, ... ]

(From: gerrit:plugins/gitiles/mediawiki/extensions/Cite/+/refs/heads/wmf/1.46.0-wmf.7/modules/ve-cite/ve.ui.MWReference.init.js#66)

Limitations

Tracked in Phabricator
Task T4700
Open
  • The pipe trick and other pre-save transforms do not work within footnotes created with this extension.

See also

  • Help:Cite
  • Extension:Semantic Cite
  • Extension:CiteThisPage
This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page.
This extension is included in the following wiki farms/hosts and/or packages:
  • BlueSpice
  • Canasta
  • Debian
  • Fandom
  • Miraheze
  • MyWikis
  • ProWiki
  • semantic::core
  • ShoutWiki
  • Telepedia
  • Weird Gloop
  • wiki.gg
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:Cite&oldid=8444132"
Categories:
  • Stable extensions
  • Tag extensions
  • APIQuerySiteInfoGeneralInfo extensions
  • CommunityConfigurationProvider initList extensions
  • ContentHandlerDefaultModelFor extensions
  • EditPage::showEditForm:initial extensions
  • GetPreferences extensions
  • MakeGlobalVariablesScript extensions
  • ParserAfterParse extensions
  • ParserClearState extensions
  • ParserFirstCallInit extensions
  • ResourceLoaderGetConfigVars extensions
  • ResourceLoaderRegisterModules extensions
  • UserGetDefaultOptions extensions
  • GPL licensed extensions
  • Extensions in Wikimedia version control
  • All extensions
  • Extensions bundled with MediaWiki 1.21
  • Extensions used on Wikimedia
  • Extensions included in BlueSpice
  • Extensions included in Canasta
  • Extensions available as Debian packages
  • Extensions included in Fandom
  • Extensions included in Miraheze
  • Extensions included in MyWikis
  • Extensions included in ProWiki
  • Extensions included in semantic::core
  • Extensions included in ShoutWiki
  • Extensions included in Telepedia
  • Extensions included in Weird Gloop
  • Extensions included in wiki.gg
  • Referencing extensions
  • Extensions with VisualEditor support
Hidden category:
  • Extensions with release branches compatibility policy
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.