Template:Cite web

来自音MAD维基
extension 模板文档 TEMPLATE DOCUMENTATION  [查看] [编辑] [历史] [刷新]

简介

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

本模板是用来列明维基条目中非新闻的网络参考资料。
所有的参数仅允许小写

用法

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

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

有作者的参考

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

没有作者的参考

{{cite web |url= |title= |author=<!--Staff writer(s); no by-line.--> |date= |website= |publisher= |access-date= |quote=}}
直式排列的最常用参数
{{cite web
 | url =
 | title =
 | author=
 | last =
 | first =
 | date =
 | website =
 | publisher =
 | access-date =
 | quote = }}

{{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= |archive-url= |archive-date= |dead-url= |access-date= |quote= |ref= |postscript= |subscription= |registration=}}

直式排列的全部参数
{{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:等形式标示语言。语言代码参考ISO 639-1
  • url: 引用项的网址。开头必须带有通讯协议 例如http://或https://。

选填参数

  • accessdate: 查阅日期。可使用YYYY-MM-DD格式,例如"accessdate= 2024-04-24"。
  • trans_title:标题的中文翻译
  • author: 作者的名字
    • lastfirst 参数一起使用产生效果如姓, 名. (主要用于外国人名名字在前,姓氏在后的情况)。
    • authorlink参数与author一同使用,如果是与last参数和first参数一同使用则在两个作者之间加上|。这个参数的作用是链接到相应的维基条目,而不是链到外部链接。
  • date: 原文出版或发表的日期,请使用包括年、月、日的完整日期格式并与所写条目风格保持一致。如果使用YYYY-MM-DD格式时,如2006-02-17则不需要在输入日期时加上维基链接,它会自动被系统加上(根据2014年格式手册的新规定,不再对日期添加链接,原有的“[[2015年]][[10月21日]]”等内文链接也逐步被移除)
    • 或者使用另一种组合: year: 出版年份和month: 出版月份。如果你有详细的日子,请使用date参数。这种方式也不需要加上维基链接,它会自动被系统加上(根据2014年格式手册的新规定,不再对日期添加链接)
  • language: 引用项使用的语言(为中文时作为缺省情况可以不用提示)。
  • format: 文件格式,例如PDF文件。此项为空则被缺省认为是HTML格式。
  • work: 如果这个引用项是包括在一个更大「作品」之中,例如是一本书、一份期刊杂志或是一个网站,那么请写下这个"作品"的名字。
  • pages: 5–7: 引用项所在的页数或者是所在的起始页和终止页,而不是在此写明所引用书籍的总页数。此项在引用项为PDF文件时特别有用。
  • publisher: 如果存在出版者--例如这个网站是由某个政府服务部门、教育机构或公司来提供运作,则可以在此输入。
  • via: 非出版者--例如社群或信息网站是由某个人、部门机构或公司发布消息,则可以在此输入。
  • doi: 有关文档的数位物件识别号,例如10.1038/news070508-7
    • Doilabel: 如果此DOI包括一些必须要进行URL编码的字符,请使用"Doilabel}}"参数表明为进行URL编码的版本。参见:"id"等同于"doi"而"label"等同于"doilabel"
  • archiveurl: 重要的网页可以被类似 WebCite 这样的网站存档,这时候这个参数应该是这个存档副本的网页网址(需要同时使用archivedate参数)。
  • archivedate: 此文档存档的日期(需要同时使用archiveurl参数),请使用YYYY-MM-DD格式,例如2006-02-17不需要在输入日期时加上维基链接,它会自动被系统加上。这个参数不支持(美国/国际)日期格式的日期格式(它们会被显示成错误的红色链接格式)(根据2014年格式手册的新规定,不再对日期添加链接)
  • dead-url: 标记源链接是否为失效链接。填yes表示失效链接,此时会以存档链接为显示主体;填no表示未失效链接,此时存档仅为备份作用,并以未失效的源链接为显示主体。(需要同时使用archivedate参数)。

举例说明

一些常见用法

  • {{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].