Template:Cite web

来自世界大典

模板簡介[编辑]

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

本模板是用來列明維基條目中非新聞來源(參見列明來源的關於維基條目列明的一般注意事項,並參見Template:Tlx以學習如何列明新聞來源)。
此模板用来取代過時的Template:Tlx。它的參數僅允許小寫

模板用法[编辑]

所有参数都必须使用小写字母。

使用时可以复制下面的空白模板。参数之间以“|”符号分隔。请删除未使用的参数以保持编辑框的整齐。

Template:Citation Style documentation/usage Template:Citation Style documentation/usage 有作者的參考

{{cite web |url= |title= |last= |first= |date= |website= |publisher= |accessdate= |quote=}}

没有作者的參考

{{cite web |url= |title= |date= |website= |publisher= |accessdate= |quote=}}

Template:End

直式排列的最常用參數
{{cite web
| url =
| title =
| author=
| last =
| first =
| date =
| website =
| publisher =
| access-date =
| quote = }}

Template:Citation Style documentation/usage full

{{cite web |url= |title= |last= |first= |author= |author-link= |last2= |first2= |author2= |author-link2= |date= |year= |editor-last= |editor-first= |editor= |editor-link= |editor2-last= |editor2-first= |editor2-link= |editors= |department= |website= |series= |publisher= |location= |page= |pages= |at= |language= |script-title= |trans-title= |type= |format= |arxiv= |asin= |bibcode= |doi= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= |archiveurl= |archivedate= |deadurl= |accessdate= |quote= |ref= |postscript= |subscription= |registration= }}

Template:End

直式排列的全部參數
{{cite web
| url =
| title =
| last =
| first =
| author=
| author-link =
| last2 =
| first2 =
| author2= 
| author-link2 =
| date =
| year =
| editor-last =
| editor-first =
| editor-link =
| editor2-last =
| editor2-first =
| editor2-link =
| department =
| website =
| series =
| publisher =
| via =
| location =
| page =
| pages =
| at =
| language =
| script-title =
| trans-title =
| type =
| format =
| arxiv =
| asin =
| bibcode =
| doi =
| doi-broken-date =
| isbn =
| issn =
| jfm =
| jstor =
| lccn =
| mr =
| oclc =
| ol =
| osti =
| pmc =
| pmid =
| rfc =
| ssrn =
| zbl =
| id =
| archive-url =
| archive-date =
| dead-url =
| access-date =
| quote =
| ref =
| postscript =
| subscription =
| registration = }}

必填参数(否则会报错[编辑]

  • title: 引用项的标题(原文)。
    • script-title:外语文献(特别字形与中文差异较大的日文)建议使用该参数代替,开头需用ja:等形式标示语言。
  • url: 引用项的网址。开头必须带有通讯协议 例如http://或https://。

选填参数[编辑]

  • accessdate: 查阅日期。可使用ISO 8601中规定的YYYY-MM-DD格式,例如"accessdate= 2024-04-20"。
  • trans_title:標題的中文翻譯
  • author: 作者的名字(通常用于中文名)
    • lastfirst:一起使用,产生效果如姓, 名. (主要用于英文人名名字在前,姓氏在后的情况),不要使用维基链接,作者的条目链接请填入authorlink
    • authorlink:有关作者的现有维基百科条目的标题,不要使用维基链接。
  • date: 原文出版或发表的日期,请使用包括年、月、日的完整日期格式并与所写条目风格保持一致。如果是与使用ISO 8601中规定的YYYY-MM-DD格式时,例如是2006-02-17则不需要在输入日期时加上维基链接,它会自动被系统加上(根据2014年WP:格式手册新规定,不再对日期添加链接,原有的“[[2015年]][[10月21日]]”等内文链接也逐步被User:Yinweichen-bot等人移除)
    • 或者使用另一种组合: year: 出版年份和month: 出版月份。如果你有详细的日子,请使用date参数。不要加上维基链接。
  • language: 引用项使用的语言,以ISO 639-1代码表来标示(使用多種語言時可以用","隔開)。
  • format: 文件格式,例如PDF文件。此项为空则被缺省认为是HTML格式。
  • work: 网站的名称,可以使用维基链接。
    • 等效参数:journal, newspaper, magazine, periodical, website
  • pages: 5–7: 引用项所在的页数或者是所在的起始页和终止页,而不是在此写明所引用书籍的总页数。此项在引用项为PDF文件时特别有用。
  • publisher: 如果存在出版者--例如这个网站是由某个政府服务部门、教育机构或公司来提供运作,则可以在此输入。
  • via: 非出版者--例如社群或信息网站是由某个人、部门机构或公司发布消息,则可以在此输入(例如Twitter新浪微博等)。
  • doi: 有关文档的数位物件识别号,例如10.1038/news070508-7
    • Doilabel: 如果此DOI包括一些必须要进行URL编码的字符,请使用"Doilabel}}"参数表明为进行URL编码的版本。参见Template:Tlx: "id"等同于"doi"而"label"等同于"doilabel"
  • archiveurl: 重要的网页可以被类似WebCite这样的网站存档,这时候这个参数应该是这个存档副本的网页网址(需要同时使用archivedate参数)。
  • archivedate: 此文档存档的日期(需要同时使用archiveurl参数),请使用ISO 8601YYYY-MM-DD格式,例如2006-02-17。不要加上维基链接。
  • dead-url: 标记源链接是否为失效链接。填yes表示失效链接,此时会以存档链接为显示主体;填no表示未失效链接,此时存档仅为备份作用,并以未失效的源链接为显示主体。(需要同时使用archiveurlarchivedate参数)
  • 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. My favorite things part II. Encyclopedia of things. Open Publishing. 2005-04-30 [2005-07-06]. 
  • {{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. My favorite things part II. Encyclopedia of things. 2005-04-30 [2005-07-06]. 
  • {{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. My favorite things part II. 2005-04-30 [2005-07-06]. 
  • {{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. [2005-07-06]. 
  • {{Cite web |title=My favorite things part II |url=http://www.example.org/ |accessdate=2005-07-06 }}
    My favorite things part II. [2005-07-06]. 
  • {{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. [2005-07-06]. 

使用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. [2005-07-06]. 

使用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,zh,ja }}
    Joliet, François. Honnit soit qui mal y pense. 2005-04-30 [2005-07-06] (法语、中文及日语). 

使用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-09-18 [2008-08-08] (中文(繁體)). 對於私營界別可以自己做的事,政府不應對市場作任何干預 

不使用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 [2006-05-16]. 

不使用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 [2005-07-06]. 
  • {{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 [2005-07-06]. 
  • {{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 (PDF). 2005-04-30 [2005-07-06] (希腊语). 

使用参数archiveurl和archivedate及url-status(可选)添加存档网页[编辑]

  • {{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 [2005-07-06]. (原始内容 (PDF)存档于2005-09-11). 
  • {{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. (原始内容存档于2006-04-26). 

使用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. [2005-07-06]. Lorem ipsum dolor. 

忘记填写title参数而导致的错误[编辑]

  • {{Cite web |work=Encyclopedia of things |url=http://www.example.org/ |accessdate=2005-07-06 |quote=Lorem ipsum dolor. }}
    Encyclopedia of things http://www.example.org/. [2005-07-06]. Lorem ipsum dolor.  缺少或|title=为空 (帮助)

注意事項[编辑]

某些外文標點符號(“ ” ‘ ’)在「繁體」模式時會錯誤轉換為引號,如在location和quote參數填入的文字有該等標點,使用-{... }-即可強制該等標點不轉換。

如果網頁標題含有以下字符,請在填寫title參數時依下表替換。

網頁標題原有字符 替換為
| |
以下為以往引致錯誤的字符,已於2016年修復問題,
可直接於title填「|title=[文字...] 文字...」,繼續依下表轉換亦可
< &#60;
[ &#91;
] &#93;

測試:{{Cite web |url=https://zh.wikipedia.org |title=一<二[三]四 | 五 }},顯示為:一<二[三]四.  已忽略文本“ 五 ” (帮助)

請勿使用Template:Tl顯示標題中的「|」,因為在{{!}}前面的文字將不會顯示,如{{Cite web |url=https://zh.wikipedia.org |title=前面{{!}}後面}}顯示為:

後面. 

請改用「&#124;」。

加入language=en(或ja、es之類)關閉轉換的方法於2015年12月以後失效。

模板數據[编辑]

Template:Templatedataheader <templatedata> { "description": "用來列明維基條目中来自网站的來源。新闻、图书、期刊等不适用这个模板", "params": { "url": { "label": "網址", "type": "string", "required": true, "description": "网站页面的網址。開頭必須帶有通訊協議 例如http://或https://。" }, "title": { "label": "標題", "type": "string", "required": true, "description": "网站页面的標題。" }, "date": { "label": "發表日期", "type": "date", "suggested": true, "description": "原文出版或發表的日期,請使用包括年、月、日的完整日期格式並與所寫條目風格保持一致。不能與year或month參數同時使用。建议使用ISO 8601中規定的YYYY-MM-DD格式,例如date= 2013-07-26。" }, "publisher": { "label": "出版者", "type": "string", "suggested": true, "description": "如果存在出版者,例如這個網站是由某個政府服務部門、教育機構或公司來提供運作,則可以在此輸入名字。" }, "author": { "label": "作者", "type": "string", "suggested": true, "description": "作者的名字。" }, "last": { "label": "姓", "type": "string", "description": "英文作者的姓。不要与author参数同时使用" }, "first": { "label": "名", "type": "string", "description": "英文作者的名字。不要与author参数同时使用" }, "authorlink": { "label": "作者條目", "type": "wiki-page-name", "description": "鏈接至作者的維基百科條目。" }, "coauthors": { "label": "共同作者", "type": "string", "description": "另外的共同作者。" }, "year": { "label": "发表年份", "type": "number", "description": "发表年份。不能與date參數同時使用。" }, "month": { "label": "发表月份", "type": "number", "description": "发表月份。不能與date參數同時使用。" }, "work": { "label": "網站名稱", "type": "string", "description": "網站的名稱,或其短網址,可以使用維基連結", "aliases": [ "website" ] }, "language": { "label": "語言", "type": "string", "description": "引用項使用的語言(為中文時作為缺省情況可以不用提示)。", "suggested": true }, "format": { "label": "文件格式", "type": "string", "description": "文件格式,例如PDF文件。此項為空則被缺省認為是HTML格式。", "suggested": true }, "agency": { "label": "新闻机构", "type": "string", "description": "所提供的内容的新闻机构(线服务);例子:美联社,路透社,法新社。如果相关可wikilinked。" }, "doi": { "label": "DOI", "type": "string", "description": "有關文檔的數位物件識別號(DOI)。" }, "dead-url": { "label": "失效連結", "description": "如果存檔網址已經失去連結效果,請填yes;反之如果存檔網址還有連結效果,請填no。配合「存檔網址」、「存檔日期」參數使用。", "type": "string", "default": "yes", "aliases": [ "deadurl" ] }, "quote": { "label": "引文", "type": "string", "description": "被引用的相關原文。" }, "script-title": { "aliases": [ "scripttitle" ], "label": "外文標題", "description": "外文標題,標題前須加上ISO639-1語言代碼和英文冒號(如日語標題可使用:|script-title=ja:……)" }, "trans-title": { "aliases": [ "transtitle" ], "label": "標題翻譯", "description": "外文標題的中文翻譯" }, "access-date": { "label": "访问日期", "description": "最後一次查閱網址的日期,建議使用ISO 8601中規定的YYYY-MM-DD格式,例如access-date= 2013-07-26。", "type": "date", "suggested": true, "aliases": [ "accessdate" ] }, "archive-url": { "aliases": [ "archiveurl" ], "label": "存檔網址", "description": "重要的網頁可以被類似WebCite這樣的網站存檔,這時候這個參數應該是這個存檔副本的網頁網址(需要同時使用archivedate參數)。", "type": "string" }, "archive-date": { "aliases": [ "archivedate" ], "label": "存檔日期", "description": "此文檔存檔的日期(需要同時使用archiveurl參數),請使用ISO 8601YYYY-MM-DD格式,例如2006-02-17。不需要在輸入日期時加上維基鏈接,它會自動被系統加上。", "type": "date" }, "pages": { "label": "頁數", "description": "引用項所在的頁數或者是所在的起始頁和終止頁,而不是在此寫明所引用書籍的總頁數。此項在引用項為PDF文件時特別有用。", "type": "string" } }, "maps": { "citoid": { "title": "title", "subject": "title", "url": "url", "seriesTitle": "work", "publicationTitle": "work", "forumTitle": "work", "websiteTitle": "work", "blogTitle": "work", "publisher": "publisher", "date": "date", "pages": "pages", "accessDate": "access-date", "language": "language", "contributor": [ [ "first", "last" ] ], "author": [ [ "first", "last" ] ] } }, "paramOrder": [ "title", "url", "access-date", "author", "date", "last", "first", "authorlink", "coauthors", "year", "month", "format", "work", "publisher", "agency", "pages", "language", "doi", "archive-url", "archive-date", "dead-url", "quote", "script-title", "trans-title" ], "format": "inline" } </templatedata>


Template:Sandbox other