模板:Cite web/doc

来自梦日记中文维基

描写wiki条目时经常需要参考网络上的各种资源,因此更多地使用这个模板可以将所参考的来源记录下来,以便浏览者以及之后的编写者找到这些来源资料。

模板-{zh-hans:数据; zh-hant:資料; zh-tw:資料; zh-hk:數據;}-

用來列明wiki條目中来自网站的來源。新闻、图书、期刊等不适用这个模板

模板参数

参数描述类型状态
網址url

网站页面的網址。開頭必須帶有通訊協議 例如http://或https://。

字符串必需
標題title

网站页面的標題。

字符串必需
-{zh-hans:访问; zh-hant:造訪;}-日期accessdate

可使用ISO 8601中規定的YYYY-MM-DD格式,例如accessdate= 2013-07-26。

日期必需
作者author

作者的名字。

字符串推荐
發表日期date

原文出版或發表的日期,請使用包括年、月、日的完整日期格式並與所寫條目風格保持一致。不能與year或month參數同時使用。建议使用ISO 8601中規定的YYYY-MM-DD格式,例如date= 2013-07-26。

日期推荐
last

作者的姓。不要与author参数同时使用

字符串可选
first

作者的名字。不要与author参数同时使用

字符串可选
作者條目authorlink

鏈接至作者的wiki百科條目。

页面名称可选
共同作者coauthors

另外的共同作者。

字符串可选
发表年份year

发表年份。不能與date參數同時使用。

数字可选
发表月份month

发表月份。不能與date參數同時使用。

数字可选
-{zh-hans:文件; zh-hant:檔案;}-格式format

-{zh-hans:文件; zh-hant:檔案;}-格式,例如PDF-{zh-hans:文件; zh-hant:檔案;}-。此項為空則被缺省認為是HTML格式。

字符串可选
作品work

如果這個引用項是包括在一個更大「作品」之中,例如是一本書、一份期刊雜誌或是一個網站,那麼請寫下這個「作品」的名字。

字符串可选
出版者publisher

如果存在出版者,例如這個網站是由某個政府服務部門、教育機構或公司來提供運作,則可以在此輸入名字。

字符串推荐
頁數pages

引用項所在的頁數或者是所在的起始頁和終止頁,而不是在此寫明所引用書籍的總頁數。此項在引用項為PDF文件時特別有用。

字符串可选
語言language

引用項使用的語言(為中文時作為缺省情況可以不用提示)。

字符串可选
DOIdoi

有關-{zh-hans:文档; zh-hant:文件;}-的數位物件識別號(DOI)。

字符串可选
存檔網址archiveurl

重要的網頁可以被類似WebCite這樣的網站存檔,這時候這個參數應該是這個存檔副本的網頁網址(需要同時使用archivedate參數)。

字符串可选
存檔日期archivedate

此-{zh-hans:文件; zh-hant:檔案;}-存檔的日期(需要同時使用archiveurl參數),請使用ISO 8601YYYY-MM-DD格式,例如2006-02-17。不需要在輸入日期時加上wiki連結,它會自動被系統加上。

日期可选
引文quote

被引用的相關原文。

字符串可选

模板用法

常用格式

常用格式(带有当前查阅日期)

{{Cite web|url=|title=|accessdate=2024-09-16|work=|publisher=|date=}}

使用作者姓名参数(名在前,姓在后)以及共同作者参数(带有当前查阅日期)

{{Cite web |url= |title= |accessdate=2024-09-16 |last= |first= |coauthors= |date= |work= |publisher=}}

使用作者参数(带有当前查阅日期)

{{Cite web |url= |title= |accessdate=2024-09-16 |author= |date= |work= |publisher=}}

使用非链式查阅日期格式及最终作者、最初作者参数

{{Cite web |url= |title= |accessmonthday= |last= |first= |date= |work= |publisher= }}

使用非链式查阅日期格式及作者参数

{{Cite web |url= |title= |accessmonthday= |author= |date= |work= |publisher= }}

所有参数

该模版参数既可竖式也可横式排列,使用时复制下列文字并删除不需要的参数即可。

横式排列的全部参数
{{Cite web|url=|title=|accessdate=2024-09-16|author=|last=|first=|authorlink=|coauthors=|date=|year=|month=|format=|work=|publisher=|pages=|language=|doi=|archiveurl=|archivedate=|quote=}}
竖式排列的全部参数
{{Cite web
|url= 
|title= 
|accessdate= 
|author= 
|last= 
|first= 
|authorlink= 
|coauthors= 
|date= 
|year= 
|month= 
|trans_title = 
|format= 
|work= 
|publisher= 
|pages= 
|language= 
|doi= 
|archiveurl= 
|archivedate= 
|quote= 
}}

必填参数(否则会报错

  • url: 引用项的网址。开头必须带有通讯协议 例如http://或https://。
  • title: 引用项的标题(原文)。
  • accessdate: 可使用ISO 8601中规定的YYYY-MM-DD格式,例如"accessdate= 2024-09-16"。

选填参数

  • trans_title:標題的中文翻譯
  • author: 作者的名字
  • *lastfirst 参数一起使用产生效果如名字, 姓名.(主要用于外国名字在前,姓氏在后的情况)。
    • authorlink参数与author一同使用,如果是与last参数和first参数一同使用则在两个作者之间加上|。这个参数的作用是链接到相应的wiki条目,而不是链到外部链接。
    • coauthors: 在此处可以添加另外的共同作者。
  • date: 原文出版或发表的日期,请使用包括年、月、日的完整日期格式并与所写条目风格保持一致。如果是与使用ISO 8601中规定的YYYY-MM-DD格式时,例如是2006-02-17,则不需要在输入日期时加上wiki链接,它会自动被系统加上。
    • 或者使用另一种组合: year: 出版年份和month: 出版月份。如果你有详细的日子,请使用date参数。这种方式也不需要加上wiki链接,它会自动被系统加上。
  • format: 文件格式,例如PDF文件。此项为空则被缺省认为是HTML格式。
  • work: 如果这个引用项是包括在一个更大「作品」之中,例如是一本书、一份期刊杂志或是一个网站,那么请写下这个"作品"的名字。
  • publisher: 如果存在出版者--例如这个网站是由某个政府服务部门、教育机构或公司来提供运作,则可以在此输入名字。
  • pages: pp. 5–7: 引用项所在的页数或者是所在的起始页和终止页,而不是在此写明所引用书籍的总页数。此项在引用项为PDF文件时特别有用。
  • language: 引用项使用的语言(为中文时作为缺省情况可以不用提示)。
  • doi: 有关文档的数位物件识别号,例如10.1038/news070508-7
    • Doilabel: 如果此DOI包括一些必须要进行URL编码的字符,请使用"Doilabel}}"参数表明为进行URL编码的版本。
  • archiveurl: 重要的网页可以被类似WebCite这样的网站存档,这时候这个参数应该是这个存档副本的网页网址(需要同时使用archivedate参数)。
  • archivedate: 此文档存档的日期(需要同时使用archiveurl参数),请使用ISO 8601YYYY-MM-DD格式,例如2006-02-17。不需要在输入日期时加上wiki链接,它会自动被系统加上。这个参数不支持(美国/国际)日期格式的日期格式(它们会被显示成错误的红色链接格式)。
  • quote: 被引用的相关原文。

举例说明

一些常见用法
  • {{Cite web | author = Doe, John | title = My favorite things part II | publisher = Open Publishing | date = 2005-04-30 | work = Encyclopedia of things | url = http://www.example.org/ | accessdate = 2005-07-06 }}
    Doe, John (2005-04-30). My favorite things part II. Encyclopedia of things. Open Publishing. Retrieved on 7月 6, 2005.
  • {{Cite web | author = Doe, John | title = My favorite things part II | date = 2005-04-30 | work = Encyclopedia of things | url = http://www.example.org/ | accessdate = 2005-07-06 }}
    Doe, John (2005-04-30). My favorite things part II. Encyclopedia of things. Retrieved on 7月 6, 2005.
  • {{Cite web | author = Doe, John | title = My favorite things part II | date = 2005-04-30 | url = http://www.example.org/ | accessdate = 2005-07-06 }}
    Doe, John (2005-04-30). My favorite things part II. Retrieved on 7月 6, 2005.
  • {{Cite web | author = Doe, John | title = My favorite things part II | url = http://www.example.org/ | accessdate = 2005-07-06 }}
    Doe, John. My favorite things part II. Retrieved on 7月 6, 2005.
  • {{Cite web | title = My favorite things part II | url = http://www.example.org/ | accessdate = 2005-07-06 }}
    My favorite things part II. Retrieved on 7月 6, 2005.
  • {{Cite web | url = http://www.nfl.com/fans/ | title = Digest of rules | publisher = National Football League | accessdate = 2005-07-06 }}
    Digest of rules. National Football League. Retrieved on 7月 6, 2005.


使用format参数
  • {{Cite web | title = List of psychotropic substances under international control | publisher = International Narcotics Control Board | url = http://www.incb.org/pdf/e/list/green.pdf | format = PDF | accessdate = 2005-07-06 }}
    List of psychotropic substances under international control (PDF). International Narcotics Control Board. Retrieved on 7月 6, 2005.


使用language参数
  • {{Cite web | author = Joliet, François | title = Honnit soit qui mal y pense | date = 2005-04-30 | url = http://www.example.org/ | accessdate = 2005-07-06 | language = fr }}
    Joliet, François (2005-04-30). Honnit soit qui mal y pense (fr). Retrieved on 7月 6, 2005.


使用coauthors参数
  • {{Cite web | first = John | last = Doe | coauthors = Smith, Peter; Smythe, Jim | title = My favorite things part II | publisher = Open Publishing | date = 2005-04-30 | work = Encyclopedia of things | url = http://www.example.org/ | accessdate = 2006-05-16 }}
    Doe, John; Smith, Peter; Smythe, Jim (2005-04-30). My favorite things part II. Encyclopedia of things. Open Publishing. Retrieved on 5月 16, 2006.


使用authorlink参数
  • {{Cite web | url = http://www.ceo.gov.hk/chi/press/oped.htm | title = 「大市場 小政府」── 我們恪守的經濟原則 | accessdate = 2008-08-08 | author = 曾蔭權 | authorlink = 曾蔭權 | date = 2006-9-18 | work = 香港特別行政區行政長官網頁 | publisher = 香港特別行政區政府新聞處 | language = zh-hant | quote = 對於私營界別可以自己做的事,政府不應對市場作任何干預 }}
    曾蔭權 (2006-9-18). 「大市場 小政府」── 我們恪守的經濟原則 (zh-hant). 香港特別行政區行政長官網頁. 香港特別行政區政府新聞處. Retrieved on 8月 8, 2008. “對於私營界別可以自己做的事,政府不應對市場作任何干預”


不使用author参数
  • {{Cite web | title = My favorite things part II | publisher = Open Publishing | date = 2005-04-30 | work = Encyclopedia of things | url = http://www.example.org/ | accessdate = 2006-05-16 }}
    My favorite things part II. Encyclopedia of things. Open Publishing (2005-04-30). Retrieved on 5月 16, 2006.


不使用author和publisher参数
  • {{Cite web | title = My favorite things part II | date = 2005-04-30 | work = Encyclopedia of things | url = http://www.example.org/ | accessdate = 2005-07-06 }}
    My favorite things part II. Encyclopedia of things (2005-04-30). Retrieved on 7月 6, 2005.
  • {{Cite web | title = My favorite things part II | date = 2005-04-30 | url = http://www.example.org/ | accessdate = 2005-07-06 }}
    My favorite things part II (2005-04-30). Retrieved on 7月 6, 2005.
  • {{Cite web | title = List of psychotropic substances under international control | date = 2005-04-30 | url = http://www.incb.org/pdf/e/list/green.pdf | format = PDF | accessdate =2005-07-06 | language = el }}
    List of psychotropic substances under international control (el) (PDF) (2005-04-30). Retrieved on 7月 6, 2005.


为已被类似WebCite这样的网站存档的网页使用参数archiveurl和archivedate
  • {{Cite web | title = List of psychotropic substances under international control | date = 2005-04-30 | url = http://www.incb.org/pdf/e/list/green.pdf | format = PDF | accessdate = 2005-07-06 | archiveurl = http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf | archivedate = 2005-09-11 }}
    List of psychotropic substances under international control (PDF) (2005-04-30). Archived from the original on 9月 11, 2005. Retrieved on 7月 6, 2005.
  • {{Cite web | url = http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm | title = Interview with Maggie Downs | date = 2006-03-31 | publisher = The Desert Sun | archiveurl = http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm | archivedate = 2006-04-26 }}
    Interview with Maggie Downs. The Desert Sun (2006-03-31). Archived from the original on 4月 26, 2006.


使用quote参数
  • {{Cite web | title = My favorite things part II | work = Encyclopedia of things | url = http://www.example.org/ | accessdate = 2005-07-06 | quote = Lorem ipsum dolor. }}
    My favorite things part II. Encyclopedia of things. Retrieved on 7月 6, 2005. “Lorem ipsum dolor.”


因title参数忘记填写而导致的错误
  • {{Cite web | work = Encyclopedia of things | url = http://www.example.org/ | accessdate = 2005-07-06 | quote = Lorem ipsum dolor. }}
    Error on call to Template:cite web: Parameters url and title must be specified. Encyclopedia of things. Retrieved on 7月 6, 2005. “Lorem ipsum dolor.”

注意事項

某些外文標點符號(-{“ ” ‘ ’}-)在「繁體」模式時會錯誤轉換為引號,例如:

{{Cite web|url=http://zh.wikipedia.org|title=“Title text”}} 顯示為:

“Title text”.

這時應為其添加非中文的language參數,例如language=en,此時標題的轉換會關閉,效果:

“Title text” (en).

日文漢字被錯誤轉換時請添加language=ja

使用“Title text”也可強制不轉換,當有標題中外文引號被錯誤轉換,或某些漢字不需要轉換時可以使用。例如:

“Title text”.

如果網頁標題含有「 | 」,請在填寫title參數時把那些「 | 」改成「|」。