Extension:引述本頁面
![]() 發佈狀態: 穩定版本 |
|
---|---|
![]() |
|
实现 | 特殊页面 |
描述 | Adds a special page that provides different citation formats for a particular article |
作者 |
|
最新版本 | 持續更新 |
兼容性政策 | 快照跟随MediaWiki发布。 master分支不向後兼容。 |
MediaWiki | 1.36+ |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
季度下載量 | 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
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |
此擴充功能包含在以下包或/和wiki農場: 這不是一份權威名單。即使一些wiki農場/託管者沒有被列在這裡,他們也可能包含這個extension。請以各wiki農場/託管者或包的狀態為準。 |