首页
随机
登录
设置
关于NeuroWiki
免责声明
NeuroWiki
搜索
查看“Template:Cite web/doc”的源代码
←
Template:Cite web/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
== 简介== 描写条目时经常需要参考网络上的各种资源,因此更多地使用这个模板可以将所参考的来源记录下来,以便浏览者以及之后的编写者找到这些来源资料。 本模板是用来列明条目中非新闻的网络参考资料。<br />所有的参数{{Color|red|仅允许小写}}。 ==用法== 所有参数都'''必须'''使用小写字母。 使用时可以复制下面的空白模板。参数之间以“|”符号分隔。请删除未使用的参数以保持编辑框的整齐。 有作者的参考 :<code><nowiki>{{Cite web|url=|title=|author=|date=|website=|publisher=|access-date=|quote=}}</nowiki></code> 没有作者的参考 :<code><nowiki>{{Cite web|url=|title=|date=|website=|publisher=|access-date=|quote=}}</nowiki></code> ;直式排列的最常用参数 <pre class="prettyprint lang-wiki" lang="wiki"> {{Cite web |url= |title= |author= |last= |first= |date= |website= |publisher= |access-date= |quote= }} </pre> ;直式排列的全部参数 <code><nowiki>{{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=}}</nowiki></code> <!-- Please synchronize this list with the corresponding one at the overview page [[Wikipedia:Citation templates#Examples]] --> <pre class="prettyprint lang-wiki" lang="wiki"> {{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= }} </pre> ====必填参数(<span style="color: red;">否则会报错</span>)==== *'''title''': 引用项的标题(原文)。 ** '''script-title''':外语文献(特别是可能错误简繁转换的日文)建议使用该参数代替,开头需用<code>ja:</code>等形式标示语言。请参考[[Help:语言标签]]。 *'''url''': 引用项的网址。开头必须带有通讯协议 例如<nowiki>http://或https://</nowiki>。 ====选填参数==== *'''accessdate''': 查阅日期。可使用[[zhwp:ISO 8601|ISO 8601]]中规定的YYYY-MM-DD格式,例如"accessdate= {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}"。 *'''trans_title''':标题的中文翻译 *'''author''': 作者的名字 **'''last''' 与 '''first''' 参数一起使用产生效果如<code>姓, 名. </code>(主要用于外国人名名字在前,姓氏在后的情况)。 **'''authorlink'''参数与'''author'''一同使用,如果是与'''last'''参数和'''first'''参数一同使用则在两个作者之间加上'''|'''。这个参数的作用是链接到相应的维基条目,而不是链到外部链接。 <!--**'''coauthors''': 在此处可以添加另外的共同作者。--> *'''date''': 原文出版或发表的日期,请使用包括年、月、日的完整日期格式并与所写条目风格保持一致。如果是与使用[[zhwp:ISO 8601|ISO 8601]]中规定的YYYY-MM-DD格式时,例如是''2006-02-17'',<s>则不需要在输入日期时加上维基链接,它会自动被系统加上</s><small>(根据2014年[[zhwp:WP:格式手册|WP:格式手册]]的'''新规定''',不再对日期添加链接,原有的“<nowiki>[[2015年]][[10月21日]]</nowiki>”等内文链接也逐步被[[zhwp:User:Yinweichen-bot|User:Yinweichen-bot]]等人移除)</small>。 **或者使用另一种组合: '''year''': 出版年份和'''month''': 出版月份。如果你有详细的日子,请使用''date''参数。<s>这种方式也不需要加上维基链接,它会自动被系统加上</s><small>(根据2014年[[zhwp:WP:格式手册|WP:格式手册]]的'''新规定''',不再对日期添加链接)</small>。 *'''language''': 引用项使用的语言(为中文时作为缺省情况可以不用提示)。 *'''format''': 文件格式,例如PDF文件。此项为空则被缺省认为是HTML格式。 *'''work''': 如果这个引用项是包括在一个更大「作品」之中,例如是一本书、一份期刊杂志或是一个网站,那么请写下这个"作品"的名字。 *'''pages''': ''5–7'': 引用项所在的页数或者是所在的起始页和终止页,而不是在此写明所引用书籍的总页数。此项在引用项为PDF文件时特别有用。<!-- COmmentedout:notimplemented in the template! This is especially useful for [[PDF]] format, where the page can be linked to with the <code>#page=''number''</code> anchor tagged on the end of the URL: *:<code><nowiki>pages= [http://www.example.org/file.pdf#page=123 p. 123]</nowiki></code>--> *'''publisher''': 如果存在出版者--例如这个网站是由某个政府服务部门、教育机构或公司来提供运作,则可以在此输入。 *'''via''': 非出版者--例如社群或信息网站是由某个人、部门机构或公司发布消息,则可以在此输入。(例如[[Twitter]]、[[新浪微博]]等)。 * '''doi''': 有关文档的[[zhwp:DOI|数位物件识别号]],例如''<nowiki>10.1038/news070508-7</nowiki>'' **'''Doilabel''': 如果此DOI包括一些必须要进行[[enwp:Percent-encoding|URL编码]]的字符,请使用"Doilabel"参数表明为进行URL编码的版本。参见[[zhwp:template:doi|doi]]: "id"等同于"doi"而"label"等同于"doilabel" *'''archiveurl''': 重要的网页可以被类似[[zhwp:互联网档案馆|互联网档案馆]]这样的网站存档,这时候这个参数应该是这个存档副本的网页网址(需要同时使用'''archivedate'''参数)。 *'''archivedate''': 此文档存档的日期(需要同时使用'''archiveurl'''参数),请使用[[zhwp:ISO 8601|ISO 8601]]YYYY-MM-DD格式,例如''2006-02-17''。<s>不需要在输入日期时加上维基链接,它会自动被系统加上。这个参数不支持(美国/国际)日期格式的日期格式(它们会被显示成错误的红色链接格式)</s><small>(根据2014年[[zhwp:维基百科:格式手册|格式手册]]的'''新规定''',不再对日期添加链接)</small>。 *'''dead-url''': 标记源链接是否为失效链接。填<code>yes</code>表示失效链接,此时会以存档链接为显示主体;填<code>no</code>表示未失效链接,此时存档仅为备份作用,并以未失效的源链接为显示主体。(需要同时使用'''archiveurl'''和'''archivedate'''参数) *'''quote''': 被引用的相关原文。 *'''website''': 被引用的相关网站,可以用内链。 ==举例说明== ===一些常见用法=== *<code><nowiki>{{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 }}</nowiki></code><br />→ <span style="background:white">{{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 }}</span> *<code><nowiki>{{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 }}</nowiki></code><br />→ <span style="background:white">{{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 }}</span> *<code><nowiki>{{Cite web |author=Doe, John |title=My favorite things part II |date=2005-04-30 |url=http://www.example.org/ |accessdate=2005-07-06 }}</nowiki></code><br />→ <span style="background:white">{{Cite web |author=Doe, John |title=My favorite things part II |date=2005-04-30 |url=http://www.example.org/ |accessdate=2005-07-06 }}</span> *<code><nowiki>{{Cite web |author=Doe, John |title=My favorite things part II |url=http://www.example.org/ |accessdate=2005-07-06 }}</nowiki></code><br />→ <span style="background:white">{{Cite web |author=Doe, John |title=My favorite things part II |url=http://www.example.org/ |accessdate=2005-07-06 }}</span> *<code><nowiki>{{Cite web |title=My favorite things part II |url=http://www.example.org/ |accessdate=2005-07-06 }}</nowiki></code><br />→ <span style="background:white">{{Cite web |title=My favorite things part II |url=http://www.example.org/ |accessdate=2005-07-06 }}</span> *<code><nowiki>{{Cite web |url=http://www.nfl.com/fans/ |title=Digest of rules |publisher= National Football League |accessdate=2005-07-06 }}</nowiki></code><br />→ <span style="background:white">{{Cite web |url=http://www.nfl.com/fans/ |title=Digest of rules |publisher= National Football League |accessdate=2005-07-06 }}</span> <br /> ===使用format参数=== *<code><nowiki>{{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 }}</nowiki></code><br /> → <span style="background:white">{{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 }}</span> <br /> ===使用language参数=== *<code><nowiki>{{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 }}</nowiki></code><br />→ <span style="background:white">{{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 }}</span> <br /> <!--===使用coauthors参数=== *<code><nowiki>{{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 }}</nowiki></code><br />→ <span style="background:white">{{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 }}</span> <br />--> ===使用authorlink参数=== *<code><nowiki>{{Cite web |url= https://twitter.com/humikane/status/564910485095452672 |title=U酱母港设定 |accessdate= 2017-01-06 |author=岛田文金 |authorlink= 岛田文金 |date= 2015-02-09 |work= Twitter |publisher= |language= ja |quote= {{lj|母港では違和感出るの承知で(特に中破)、どうしても水中運用のシーンが書きたくて、運営さんにワガママきいていただきました。可愛がってやってね}} }}</nowiki></code><br />→ <span style="background:white">{{Cite web |url= https://twitter.com/humikane/status/564910485095452672 |title= U酱母港设定 |accessdate= 2017-01-06 |author=岛田文金 |authorlink= 岛田文金 |date= 2015-02-09 |work= Twitter |publisher= |language= ja |quote= {{lj|母港では違和感出るの承知で(特に中破)、どうしても水中運用のシーンが書きたくて、運営さんにワガママきいていただきました。可愛がってやってね}} }}</span> <br /> ===不使用author参数=== *<code><nowiki>{{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 }}</nowiki></code><br />→ <span style="background:white">{{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 }}</span> <br /> ===不使用author和publisher参数=== *<code><nowiki>{{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 }}</nowiki></code><br />→ <span style="background:white">{{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 }}</span> *<code><nowiki>{{Cite web |title=My favorite things part II |date=2005-04-30 |url=http://www.example.org/ |accessdate=2005-07-06}}</nowiki></code><br />→ <span style="background:white">{{Cite web |title=My favorite things part II |date=2005-04-30 |url=http://www.example.org/ |accessdate=2005-07-06}}</span> *<code><nowiki>{{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 }}</nowiki></code><br /> → <span style="background:white">{{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 }}</span> <br /> ===为已被类似[[enwp:WebCite|WebCite]]这样的网站存档的网页使用参数archiveurl和archivedate=== *<code><nowiki>{{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 }}</nowiki></code><br /> → <span style="background:white">{{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 }}</span> *<code><nowiki>{{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 }}</nowiki></code><br /> → <span style="background:white">{{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 }}</span> <br /> ===使用quote参数=== *<code><nowiki>{{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. }}</nowiki></code><br />→ <span style="background:white">{{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. }}</span> ==注意事项== 某些外文标点符号(-{“ ” ‘ ’}-)在「繁体」模式时会错误转换为引号,例如: <nowiki>{{Cite web |url=https://zh.wikipedia.org |title=“Title text”}}</nowiki> 显示为: {{Cite web |url=https://zh.wikipedia.org |title=“Title text”}} 使用script-title参数可强制该等标点不转换: <nowiki>{{Cite web |url=https://zh.wikipedia.org |script-title=en:“Title text”}}</nowiki>显示为 {{Cite web |url=https://zh.wikipedia.org |script-title=en:“Title text”}} 如在location和quote参数填入的文字有该等标点,使用<nowiki>-{... }-</nowiki>即可强制该等标点不转换。 如果网页标题含有以下字符,请在填写title参数时依下表替换。 {| class="wikitable" style="text-align:center;" ! 网页标题原有字符 !! 替换为 |- | <nowiki>|</nowiki> | &#124; |- | colspan=2 align=left|以下为以往引致错误的字符,已于2016年修复问题,<br />可直接于title填「|title=[文字...] 文字...」,继续依下表转换亦可 |- | <nowiki><</nowiki> | &#60; |- | <nowiki>[</nowiki> | &#91; |- | <nowiki>]</nowiki> | &#93; |- |} ==参见== * [[Template:Cite_news]]:引用来源为新闻时 * [[Template:Cite_book]]:引用来源为书籍时 * [[Template:Cite_journal]]:引用来源为期刊时 * [[:Template:Citation Style documentation/deprecated]]:如果在Cite web模板内使用某些「旧」参数,条目会被自动加入「[[:Category:含有过时参数的引用的页面]]」,改用建议的参数名称后就不会被加入该分类。<includeonly>[[Category:引用模板]]</includeonly><noinclude>[[Category:模板文档]]</noinclude>
该页面使用的模板:
Template:Cite web
(
查看源代码
)
Template:Color
(
查看源代码
)
Template:Lj
(
查看源代码
)
Module:Citation/CS1
(
查看源代码
)
Module:Citation/CS1/Configuration
(
查看源代码
)
Module:Citation/CS1/Date validation
(
查看源代码
)
Module:Citation/CS1/Whitelist
(
查看源代码
)
返回
Template:Cite web/doc
。