Template:Cite web
Lua错误 package.lua的第80行:module 'Module:List' not found
Template:NoteTA 描写维基条目时经常需要参考网络上的各种资源,因此更多地使用这个模板可以将所参考的来源记录下来,以便浏览者以及之后的编写者找到这些来源资料。
本模板是用來列明維基條目中非新聞來源(參見列明來源的關於維基條目列明的一般注意事項,並參見{{Cite news}}以學習如何列名新聞來源)。
此模板用来取代過時的{{Web reference}}。它的參數僅允許小寫。
模板數據
Cite web <templatedata> { "description": "用來列明維基條目中来自网站的來源。新闻、图书、期刊等不适用这个模板", "params": { "url": { "label": "網址", "type": "string", "required": true, "description": "网站页面的網址。開頭必須帶有通訊協議 例如http://或https://。" }, "title": { "label": "標題", "type": "string", "required": true, "description": "网站页面的標題。" }, "accessdate": { "label": "访问日期", "type": "date", "required": true, "description": "可使用ISO 8601中規定的YYYY-MM-DD格式,例如accessdate= 2013-07-26。" }, "author": { "label": "作者", "type": "string", "suggested": true, "description": "作者的名字。" }, "date": { "label": "發表日期", "type": "date", "suggested": true, "description": "原文出版或發表的日期,請使用包括年、月、日的完整日期格式並與所寫條目風格保持一致。不能與year或month參數同時使用。建议使用ISO 8601中規定的YYYY-MM-DD格式,例如date= 2013-07-26。" }, "last": { "label": "姓", "type": "string", "description": "作者的姓。不要与author参数同时使用" }, "first": { "label": "名", "type": "string", "description": "作者的名字。不要与author参数同时使用" }, "authorlink": { "label": "作者條目", "type": "string/wiki-page-name", "description": "鏈接至作者的維基百科條目。" }, "coauthors": { "label": "共同作者", "type": "string", "description": "另外的共同作者。" }, "year": { "label": "发表年份", "type": "number", "description": "发表年份。不能與date參數同時使用。" }, "month": { "label": "发表月份", "type": "number", "description": "发表月份。不能與date參數同時使用。" }, "format": { "label": "文件格式", "type": "string", "description": "文件格式,例如PDF文件。此項為空則被缺省認為是HTML格式。" }, "work": { "label": "作品", "type": "string", "description": "如果這個引用項是包括在一個更大「作品」之中,例如是一本書、一份期刊雜誌或是一個網站,那麼請寫下這個「作品」的名字。" }, "publisher": { "label": "出版者", "type": "string", "suggested": true, "description": "如果存在出版者,例如這個網站是由某個政府服務部門、教育機構或公司來提供運作,則可以在此輸入名字。" }, "pages": { "label": "頁數", "type": "string", "description": "引用項所在的頁數或者是所在的起始頁和終止頁,而不是在此寫明所引用書籍的總頁數。此項在引用項為PDF文件時特別有用。" }, "language": { "label": "語言", "type": "string", "description": "引用項使用的語言(為中文時作為缺省情況可以不用提示)。" }, "doi": { "label": "DOI", "type": "string", "description": "有關文檔的數位物件識別號(DOI)。" }, "archiveurl": { "label": "存檔網址", "type": "string", "description": "重要的網頁可以被類似WebCite這樣的網站存檔,這時候這個參數應該是這個存檔副本的網頁網址(需要同時使用archivedate參數)。" }, "archivedate": { "label": "存檔日期", "type": "date", "description": "此文檔存檔的日期(需要同時使用archiveurl參數),請使用ISO 8601YYYY-MM-DD格式,例如2006-02-17。不需要在輸入日期時加上維基鏈接,它會自動被系統加上。" }, "quote": { "label": "引文", "type": "string", "description": "被引用的相關原文。" } }, "maps": { "citoid": { "title": "title", "url": "url", "subject": "title", "publicationTitle": "work", "seriesTitle": "work", "publisher": "publisher", "date": "date", "pages": "pages", "accessDate": "accessdate", "language": "language", "author": [ [ "first", "last" ] ] } } } </templatedata>
模板用法
常用格式
- 常用格式(带有当前查阅日期)
{{Cite web |url= |title= |accessdate=2025-04-02 |work= |publisher= |date= }}
- 使用作者姓名参数(名在前,姓在后)以及共同作者参数(带有当前查阅日期)
{{Cite web |url= |title= |accessdate=2025-04-02 |last= |first= |coauthors= |date= |work= |publisher=}}
- 使用作者参数(带有当前查阅日期)
{{Cite web |url= |title= |accessdate=2025-04-02 |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= |author= |last= |first= |authorlink= |coauthors= |date= |year= |month= |trans_title = |format= |work= |publisher= |pages= |language= |doi= |archiveurl= |archivedate= |quote= }}
必填参数(否则会报错)
- url: 引用项的网址。开头必须带有通讯协议 例如http://或https://。
- title: 引用项的标题(原文)。
- script-title:外语文献(特别是可能错误简繁转换的日文)建议使用该参数代替,开头需用
ja:
等形式标示语言。
- script-title:外语文献(特别是可能错误简繁转换的日文)建议使用该参数代替,开头需用
- accessdate: 可使用ISO 8601中规定的YYYY-MM-DD格式,例如"accessdate= 2025-04-02"[來源請求]。
选填参数
- trans_title:標題的中文翻譯
- author: 作者的名字
- last 与 first 参数一起使用产生效果如
姓, 名.
(主要用于外国人名名字在前,姓氏在后的情况)。 - authorlink参数与author一同使用,如果是与last参数和first参数一同使用则在两个作者之间加上|。这个参数的作用是链接到相应的维基条目,而不是链到外部链接。
- coauthors: 在此处可以添加另外的共同作者。
- last 与 first 参数一起使用产生效果如
- date: 原文出版或发表的日期,请使用包括年、月、日的完整日期格式并与所写条目风格保持一致。如果是与使用ISO 8601中规定的YYYY-MM-DD格式时,例如是2006-02-17,
则不需要在输入日期时加上维基链接,它会自动被系统加上(根据2014年WP:格式手册的新规定,不再对日期添加链接,原有的“2015年10月21日”等内文链接也逐步被User:Yinweichen-bot等人移除)。- 或者使用另一种组合: year: 出版年份和month: 出版月份。如果你有详细的日子,请使用date参数。
这种方式也不需要加上维基链接,它会自动被系统加上(根据2014年WP:格式手册的新规定,不再对日期添加链接)。
- 或者使用另一种组合: year: 出版年份和month: 出版月份。如果你有详细的日子,请使用date参数。
- format: 文件格式,例如PDF文件。此项为空则被缺省认为是HTML格式。
- work: 如果这个引用项是包括在一个更大「作品」之中,例如是一本书、一份期刊杂志或是一个网站,那么请写下这个"作品"的名字。
- publisher: 如果存在出版者--例如这个网站是由某个政府服务部门、教育机构或公司来提供运作,则可以在此输入名字。
- pages: pp. 5–7: 引用项所在的页数或者是所在的起始页和终止页,而不是在此写明所引用书籍的总页数。此项在引用项为PDF文件时特别有用。
- language: 引用项使用的语言(为中文时作为缺省情况可以不用提示)。
- doi: 有关文档的数位物件识别号,例如10.1038/news070508-7
- archiveurl: 重要的网页可以被类似WebCite这样的网站存档,这时候这个参数应该是这个存档副本的网页网址(需要同时使用archivedate参数)。
- archivedate: 此文档存档的日期(需要同时使用archiveurl参数),请使用ISO 8601YYYY-MM-DD格式,例如2006-02-17。
不需要在输入日期时加上维基链接,它会自动被系统加上。这个参数不支持(美国/国际)日期格式的日期格式(它们会被显示成错误的红色链接格式)(根据2014年WP:格式手册的新规定,不再对日期添加链接)。 - quote: 被引用的相关原文。
- website: 被引用的相关网站,可以用内链。
举例说明
- 一些常见用法
- {{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
}}
→ Joliet, François. Honnit soit qui mal y pense. 2005-04-30 [2005-07-06] (français).
- 使用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. My favorite things part II. Encyclopedia of things. Open Publishing. 2005-04-30 [2006-05-16].
- 使用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] (Ελληνικά).
- 为已被类似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 [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=
为空 (帮助)
注意事項
某些外文標點符號(“ ” ‘ ’)在「繁體」模式時會錯誤轉換為引號,例如:
{{Cite web |url=https://zh.wikipedia.org |title=“Title text”}} 顯示為:
使用script-title參數可強制該等標點不轉換:
{{Cite web |url=https://zh.wikipedia.org |script-title=en:“Title text”}}顯示為
雖然使用<nowiki>“Title text”</nowiki>也可強制不轉換,但是會出現「存在delete character」紅字錯誤訊息(2016年情況),例如:
“Title text”. 参数|title=
值左起第1位存在delete character (帮助)
如在location和quote參數填入的文字有該等標點,使用-{... }-即可強制該等標點不轉換。
如果網頁標題含有以下字符,請在填寫title參數時依下表替換。
網頁標題原有字符 | 替換為 |
---|---|
| | | |
以下為以往引致錯誤的字符,已於2016年修復問題, 可直接於title填「|title=[文字...] 文字...」,繼續依下表轉換亦可 | |
[ | [ |
] | ] |
加入language=en
(或ja、es之類)關閉轉換的方法於2015年12月以後失效。
參見
- Wikipedia:列明来源:格式指引
- Wikipedia:模板消息/条目来源:相關模板
- Template:Cite news:引用來源為新聞時
- Template:Cite book:引用來源為書籍時
- Template:Cite journal:引用來源為期刊時
- Help:引文格式1错误:因為填寫參數有問題而產生紅字提示的解答指南
- Template:Citation Style documentation/deprecated:如果在Cite web模板內使用某些「舊」參數,條目會被自動加入「Category:Pages containing cite templates with deprecated parameters」,改用建議的參數名稱後就不會被加入該分類。
af:Sjabloon:Webaanhaling bg:Шаблон:Цитат уеб cs:Šablona:Citace webu da:Skabelon:Kilde www de:Vorlage:Cite web en:Template:Cite web el:Πρότυπο:Cite web eo:Ŝablono:Citaĵo el la reto es:Plantilla:Cita web fr:Modèle:Lien web hr:Predložak:Cite web ia:Patrono:Cite web it:Template:Cita web ja:Template:Cite web ko:틀:웹 인용 ms:Templat:Cite web nl:Sjabloon:Voetnoot web no:Mal:Kilde www pl:Szablon:Cytuj stronę pt:Predefinição:Citar web ro:Format:Citat web ru:Шаблон:Cite web sk:Šablóna:Cite web sl:Predloga:Navedi splet sv:Mall:Webbref fi:Malline:Verkkoviite vi:Tiêu bản:Chú thích web