Extension:引述本頁面

This page is a translated version of the page Extension:CiteThisPage and the translation is 43% complete.
此扩展已绑定在MediaWiki 1.25及以上版本。 因此您不需要再次下载。 然而,您仍需要跟随提供的其他指示。
MediaWiki的扩展的手冊
CiteThisPage
發佈狀態: 穩定版本
实现 特殊页面
描述 Adds a special page that provides different citation formats for a particular article
作者
  • Ævar Arnfjörð Bjarmason
  • James D. Forrester
最新版本 持續更新
兼容性政策 快照跟随MediaWiki发布。 master分支不向後兼容。
MediaWiki 1.36+
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
  • $wgCiteThisPageAdditionalNamespaces
季度下載量 114 (Ranked 87th)
公開的wiki使用 1,524 (Ranked 197th)
翻譯CiteThisPage的扩展,若在translatewiki.net可用
問題 尚未完成的工作 · 报告錯誤

The CiteThisPage extension, previously known as SpecialCite.php, is an extension that creates a special page (Special:CiteThisPage) and toolbox link to it for pages in the main namespace. Given an article name, this extension generates citations to it in a variety of styles.


安裝

  • 下载文件,并将其放置在您extensions/文件夹中的CiteThisPage目录内。
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'CiteThisPage' );
    
  •   完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

範例

英語維基百科

w:Special:CiteThisPage/Train provides citation info about the article w:Train, in the format specified by the local English MediaWiki file w:MediaWiki:Citethispage-content

Each normal page (current version only) has a sidebar link to that special page, in addition to the link "permanent link".

The citing style it uses is customizable from the MediaWiki namespace (MediaWiki:Citethispage-content), for instance:

 * ''{{FULLPAGENAME}}'' (last modified {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} UTC).
 {{SITENAME}}, {{int:sitesubtitle}}. Retrieved <citation>{{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}}
 {{CURRENTYEAR}}</citation> from {{fullurl:{{FULLPAGENAME}}|oldid={{REVISIONID}}}}

Might produce:

Main Page (last modified 02:47, 26 November 2005 UTC). Wikipedia, The Free Encyclopedia. Retrieved 21:14, 26 November 2005 from https://en.wikipedia.org/w/index.php?title=Main_Page&oldid=10403

变量

The parser variables e.g. {{CURRENTTIME}}, {{CURRENTMONTH}} etc. will display the time of the last edit to the requested page, to get the current time use ‎<citation>, e.g. ‎<citation>{{CURRENTTIME}}‎</citation>.

See also