Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:Cite

From mediawiki.org
(Redirected fromExtension:Cite/Cite.php)
Translate this page
Languages:
This page documents the extension. For how to use it, seehelp on citing.
MediaWiki extensions manual
Cite
Release status: stable
ImplementationTag
DescriptionAllows footnotes for citing sources and helps for correctly citing content in offline media
Author(s)Ævar Arnfjörð Bjarmasontalk
Latest versionContinuous updates
Compatibility policySnapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki1.34+
PHP7.0+
LicenseGNU General Public License 2.0 or later
Download
HelpHelp:Extension:Cite
ExampleWikipedia:Footnotes
  • $wgCiteDefaultBacklinkAlphabet
  • $wgCiteReferencePreviewsConflictingNavPopupsGadgetName
  • $wgCiteResponsiveReferencesThreshold
  • $wgCiteResponsiveReferences
  • $wgCiteSubReferencing
  • $wgCiteBacklinkCommunityConfiguration
  • $wgCiteReferencePreviews
  • $wgCiteUseLegacyBacklinkLabels
  • $wgCiteVisualEditorOtherGroup
  • $wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
Translate the Cite extension if it is available at translatewiki.net
IssuesOpen tasks ·Report a bug

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

Usage

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

Installation

This extensioncomes 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 extractedCite folder to yourextensions/ directory.
    Developers and code contributors should install the extensionfrom Git instead, using:
    cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
  • Add the following code at the bottom of yourLocalSettings.php file:
    wfLoadExtension('Cite');
  • Configure as required.
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.


Vagrant installation:

  • If usingVagrant, install withvagrant roles enable cite --provision

Configuration

$wgCiteBookReferencing

Enables an experimental feature for sub-references when set totrue, see thehelp page. Default value:false

$wgCiteResponsiveReferences

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

$wgCiteVisualEditorOtherGroup

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

By adding a definition in JSON toMediaWiki: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 containname,icon,template properties.An optionaltitle property can also be used to define the tool title in plain text.Thename 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 withvisualeditor-cite-tool-name-, and messages can be defined on Wiki.Some common messages are pre-defined for tool names such asweb,book,news,journal.

Example:

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

(From:https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Cite/+/refs/heads/REL1_44/modules/ve-cite/ve.ui.MWReference.init.js#64)

Limitations

Tracked inPhabricator
Task T4700
Open

See also

This extension is being used on one or moreWikimedia 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'sCommonSettings.php andInitialiseSettings.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'sSpecial:Version page.
This extension is included in the following wiki farms/hosts and/or packages:This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:Cite&oldid=7841773"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp