Template:Cite web/doc
描写wiki条目时经常需要参考网络上的各种资源,因此更多地使用这个模板可以将所参考的来源记录下来,以便浏览者以及之后的编写者找到这些来源资料。
模板数据[编辑]
<templatedata> { "description": "用来列明wiki条目中来自网站的来源。新闻、图书、期刊等不适用这个模板", "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 8601 YYYY-MM-DD格式,例如2006-02-17。不需要在输入日期时加上wiki链接,它会自动被系统加上。" }, "quote": { "label": "引文", "type": "string", "description": "被引用的相关原文。" } } } </templatedata>
模板用法[编辑]
常用格式[编辑]
- 常用格式(带有当前查阅日期)
{{Cite web|url=|title=|accessdate=2025-10-13|work=|publisher=|date=}}
- 使用作者姓名参数(名在前,姓在后)以及共同作者参数(带有当前查阅日期)
{{Cite web |url= |title= |accessdate=2025-10-13 |last= |first= |coauthors= |date= |work= |publisher=}}
- 使用作者参数(带有当前查阅日期)
{{Cite web |url= |title= |accessdate=2025-10-13 |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: 引用项的标题(原文)。
- accessdate: 可使用ISO 8601中规定的YYYY-MM-DD格式,例如"accessdate= 2025-10-13"。
选填参数[编辑]
- trans_title:标题的中文翻译
- author: 作者的名字
- *last 与 first 参数一起使用产生效果如
名字, 姓名.
(主要用于外国名字在前,姓氏在后的情况)。- 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. 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] (法语).
- 使用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-9-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=http://zh.wikipedia.org|title=“Title text”}} 顯示為:
这时应为其添加非中文的language参数,例如language=en
,此时标题的转换会关闭,效果:
“Title text” (英语).
日文汉字被错误转换时请添加language=ja
。
使用“Title text”也可强制不转换,当有标题中外文引号被错误转换,或某些汉字不需要转换时可以使用。例如:
如果网页标题含有「 | 」,请在填写title参数时把那些「 | 」改成「|」。