Jump to content

확장기능:Cite

From mediawiki.org
This page is a translated version of the page Extension:Cite and the translation is 9% complete.
Outdated translations are marked like this.
이 문서는 확장 기능에 관한 문서입니다. For how to use it, see help on citing.
미디어위키 확장 기능 설명서
Cite
출시 상태: 안정
구현 태그
설명 Allows footnotes for citing sources and helps for correctly citing content in offline media
만든 이 Ævar Arnfjörð Bjarmason토론
최신 버전 지속적인 업데이트
호환성 정책 스냅샷은 미디어위키와 함께 릴리스됩니다. Master is not backward compatible.
MediaWiki 1.34+
PHP 7.0+
라이선스 GNU 일반 공중 사용 허가서 2.0 또는 이후
다운로드
예제 Wikipedia:Footnotes
  • $wgCiteDefaultBacklinkAlphabet
  • $wgCiteReferencePreviewsConflictingNavPopupsGadgetName
  • $wgCiteResponsiveReferencesThreshold
  • $wgCiteResponsiveReferences
  • $wgCiteSubReferencing
  • $wgCiteBacklinkCommunityConfiguration
  • $wgCiteReferencePreviews
  • $wgCiteUseLegacyBacklinkLabels
  • $wgCiteVisualEditorOtherGroup
  • $wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
Cite 확장 기능 번역 (translatewiki.net에서 가능한 경우)
이슈 미해결 작업 · 버그 보고

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.

설치

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/ 디렉토리에 넣어 주세요.
    개발자와 코딩 기여자는 Git을 이용해 확장기능을 다운받는 것이 좋습니다.
    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

같이 보기