Jump to content

Extension:Cite/th

From mediawiki.org
This page is a translated version of the page Extension:Cite and the translation is 3% complete.
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ð Bjarmasonคุย
Latest version Continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.34+
PHP 7.0+
License GNU General Public License 2.0 or later
Download
Example Wikipedia:Footnotes
  • $wgCiteDefaultBacklinkAlphabet
  • $wgCiteReferencePreviewsConflictingNavPopupsGadgetName
  • $wgCiteResponsiveReferencesThreshold
  • $wgCiteResponsiveReferences
  • $wgCiteSubReferencing
  • $wgCiteBacklinkCommunityConfiguration
  • $wgCiteReferencePreviews
  • $wgCiteUseLegacyBacklinkLabels
  • $wgCiteVisualEditorOtherGroup
  • $wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
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.
  • ดาวน์โหลดและวางไฟล์ลงในไดเร็กทอรีที่ชื่อ Cite ในโฟลเดอร์ extensions/ ของคุณ
    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.php ของคุณ:
    wfLoadExtension( 'Cite' );
    
  • Configure as required.
  • Yes สำเร็จ – ตรวจสอบที่ Special:Version บนวิกิของคุณเพื่อตรวจการติดตั้งส่วนขยาย


การติดตั้งโดยใช้ Vagrant:

  • หากคุณใช้ Vagrant สามารถติดตั้งได้โดยใช้ vagrant roles enable cite --provision

Configuration

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

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.

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

ดูเพิ่มเติม