Jump to content

Extension:Cite

From mediawiki.org
This page is a translated version of the page Extension:Cite and the translation is 17% complete.
Outdated translations are marked like this.
این صفحه افزونه را مستند می‌کند. For how to use it, see help on citing.
راهنمای افزونهٔ مدیاویکی
Cite
وضعیت انتشار: پایدار
انجام Tag
توضیحات Allows footnotes for citing sources and helps for correctly citing content in offline media
نویسنده(گان) Ævar Arnfjörð Bjarmasonبحث
آخرین نسخه: به‌روزرسانی‌های پیوسته
سیاست سازگاری Snapshots releases along with MediaWiki. Master is not backward compatible.
PHP 7.0+
تغییر پایگاه داده خیر
  • $wgCiteDefaultRefDirAuto
  • $wgCiteReferencePreviewsConflictingNavPopupsGadgetName
  • $wgCiteResponsiveReferencesThreshold
  • $wgCiteCitationTypeAutoNames
  • $wgCiteResponsiveReferences
  • $wgCiteSubReferencing
  • $wgCiteDefaultBacklinkAlphabet
  • $wgCiteBacklinkCommunityConfiguration
  • $wgCiteReferencePreviews
  • $wgCiteUseLegacyBacklinkLabels
  • $wgCiteVisualEditorOtherGroup
  • $wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
  • ‎<ref>
  • ‎<references>
Licence پروانۀ همگانی گنو ۲٫۰ یا بعدتر
بارگیری
نمونه: Wikipedia:Footnotes
Translate the Cite extension if it is available at translatewiki.net
Issues Open tasks · گزارش یک مشکل

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.

استفاده

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

نصب

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
    
  • کد زیر را در انتهای $LocalSettings خودتان اضافه کنید:
    wfLoadExtension( 'Cite' );
    
  • Configure as required.
  • Yes انجام شد – به Special:Version در ویکی خودتان بروید تا مطئمن شوید که افزونه با موفقیت نصب شده است.


Vagrant installation:

  • اگر از Vagrant استفاده می‌کنید، با vagrant roles enable cite --provision نصب کنید

پیکربندی

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 جعبه یادکرد 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

همچنین ببینید