扩展:引用
此扩展已绑定在MediaWiki 1.21及以上版本 因此您不需要再次下载。 然而,您仍需要跟随提供的其他指示。
Cite 发布状态: 稳定版 |
|
---|---|
![]() |
|
实现 | 标签 |
描述 | 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 backwards compatible. |
MediaWiki | 1.34+ |
PHP | 7.0+ |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下载 | |
例子 | Wikipedia:Footnotes |
|
|
翻譯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
; these operate together to add citations to pages.
<references />
用法
- 參見使用Cite擴展的帮助頁面以獲取更多資訊。
安装
- 如果使用Vagrant ,请通过
vagrant roles enable cite --provision
安装
- 手动安装
- 下载文件,并将其放置在您
extensions/
文件夹中的Cite
目录内。 - 只有從git安裝才运行Composer来安装PHP依赖,通过发行
composer install --no-dev
至扩展目录。 (参见任务T173141了解潜在问题。) - 将下列代码放置在您的LocalSettings.php的底部:
wfLoadExtension( 'Cite' );
- 根据需要配置。
- 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。
配置
$wgCiteBookReferencing
Enables an experimental feature for sub-references when set to true
, see the help page. 默认值: 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. 默认值: 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
参见
此扩展被用于一个或多个维基媒体项目上。 这可能意味着扩展稳定且工作良好,足以用在同等高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中寻找此扩展名称以查看安装它的网站。 详细的已安装扩展的完整列表可在wiki的Special:Version页面找到。 |