Jump to content

Extension:Cite

From mediawiki.org
(Redirected from Extension:Cite/Cite.php/ja)
This page is a translated version of the page Extension:Cite and the translation is 76% complete.
このページでは拡張機能について記述しています。 その使用方法については引用のヘルプを参照してください。
MediaWiki 拡張機能マニュアル
Cite
リリースの状態: 安定
実装 タグ
説明 情報源を挙げるための脚注を提供し、オフライン媒体の内容の正しい引用を支援する
作者 Ævar Arnfjörð Bjarmasonトーク
最新バージョン 継続的な更新
互換性の方針 MediaWiki とともにリリースされるスナップショット。 master には後方互換性がありません。
MediaWiki 1.34+
PHP 7.0+
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
Wikipedia:Footnotes
  • $wgCiteDefaultBacklinkAlphabet
  • $wgCiteReferencePreviewsConflictingNavPopupsGadgetName
  • $wgCiteResponsiveReferencesThreshold
  • $wgCiteResponsiveReferences
  • $wgCiteSubReferencing
  • $wgCiteBacklinkCommunityConfiguration
  • $wgCiteReferencePreviews
  • $wgCiteUseLegacyBacklinkLabels
  • $wgCiteVisualEditorOtherGroup
  • $wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
translatewiki.net で翻訳を利用できる場合は、Cite 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

Cite拡張機能によって、利用者がページの脚注として参考文献を作成できます。 それはMediaWikiに2つのパーサーフック‎<ref>‎<references /> を追加し、これらはページに引用を加えるための操作です。

使用法

更に詳しい情報はヘルプ ページ Cite 拡張機能にあります。

インストール

この拡張機能は MediaWiki 1.21 以降に同梱されているため、ダウンロードする必要はありません。 残りの設定手順は必ず従ってください。
  • ダウンロードして、ファイルをextensions/フォルダー内のCiteという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
    
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'Cite' );
    
  • 必要に応じて設定を変更
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。


Vagrantでのインストール:

  • Vagrant を使用している場合は、vagrant roles enable cite --provisionでインストールしてください。

設定

$wgCiteBookReferencing

true に設定すると実験的な機能である補参照を使用できるようになる。詳細はヘルプページ参照。 既定値: false

$wgCiteResponsiveReferences

脚注のレスポンシブ対応に関する既定の設定。 true に設定すると、脚注セクションが複数列で表示される。 ユーザドキュメントも参照のこと。 既定値: true

$wgCiteVisualEditorOtherGroup

true に設定すると、引用のツールバーボタンが挿入メニューの下に移動する。 この機能はWikivoyageで使われている。 機能リクエストの元記事も参照のこと。 既定値: 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.

例:

[ { "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)

制限

関連項目