Extension:CiteThisPage/zh

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:CiteThisPage and the translation is 20% complete.
Outdated translations are marked like this.
Other languages:
English • ‎Türkçe • ‎dansk • ‎magyar • ‎русский • ‎中文 • ‎日本語
See also the 扩展:引用 extension, which is unrelated to this, but used to live in the same repository as CiteThisPage.
此扩展已绑定在MediaWiki 1.25及以上版本 因此您不需要再次下载。 然而,您仍需要跟随提供的其他指示。
MediaWiki扩展手册
OOjs UI icon advanced.svg
CiteThisPage
发布状态: 稳定版
Cite This Page MediaWiki plugin.png
实现 特殊页面
描述 Adds a special page that provides different citation formats for a particular article
作者
  • Ævar Arnfjörð Bjarmason
  • James D. Forrester
最新版本 continuous updates
兼容性方针 发行分支
MediaWiki 1.30+
PHP 7.0+
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
  • $wgCiteThisPageAdditionalNamespaces
翻译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' );
    
  • Yes 完成 – 在您的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>.