(Translated by https://www.hiragana.jp/)
Template:Sfn - 维基百科,自由的百科全书 とべ转到内容ないよう

Template:Sfn

被永久保护的模板
维基百科ひゃっか自由じゆうてき百科ひゃっかぜん
文档图示 板文いたぶん[查看] [编辑] [历史] [きよしじょ缓存]

たん脚注きゃくちゅうばん

目的もくてき

脚注きゃくちゅうちゅう创建たんてき哈佛参考さんこう文献ぶんけん格式かくしき。详情见れつあきららいみなもととくてん:

  • 整合せいごうしょうどう脚注きゃくちゅう
  • 动创けんいた页底该引用いんようてき具体ぐたいしんいきてき链接。锚点ただゆうとう添加てんかりょう|harv=さんすういた目的もくてきばんざいかい创建。这个链接ただゆうとうさんすう|last=|last2=|year=あずか{{sfn}}しょうひきはい时才かい创建,あるもの|ref=设置为一个其他的锚点id。

用法ようほう

{{Sfn |Last name of author(s)|Year| loc = Location in the text}}

如果そうようせんはまてきlocさんすう以改よう以下いかさんすう其中いち

  • |p=page
  • |pp=pages
注意ちゅうい
  • だい一個參數是作者的姓(last name)。
  • 以填うつし最多さいた4作者さくしゃ作為さくいさんすうれい)。如果作者さくしゃ於4,請只れつくび4れつさら多作たさくしゃ就会发生かいてき事情じじょう
  • した一個參數是出版年份(the year of publication)。
  • とし份和作者さくしゃせい名前なまえきさき不能ふのうゆうあまりてきそらかくいや生成せいせいてき链接无效(BUG)。
  • The "loc = " parameter is the location of the cited material within the reference. 此參すうせんはま
  • さんすうp选填てき页码さんすう; thus "{{sfn|Smith|2006| p=25}}" yields "Smith 2006だい25ぺーじ".
  • さんすうpp选填てき页码范围さんすう; thus "{{sfn|Smith|2006| pp=25–26}}" yields "Smith 2006だい25–26ぺーじ".
  • 如果作者さくしゃざいどう一年發表了多於一份著作,標準ひょうじゅん做法ざいとし份後めんa、b……區別くべつれい如year=2006a year=2006b)。
  • If multiple references are made to the same location of the same work, only one footnote is generated.
  • 如果需要じゅよう加入かにゅうさら注解ちゅうかい,use {{Harvnb}} or {{Harvtxt}} in <ref> tags to achieve a similar effect. E.g.
    Jones writes "blah blah".<ref>Quoted in {{Harvnb|Smith|2006|p=25}}.</ref>

(※)注意ちゅうい:编辑ほんばん时请どう更改こうかい{{Harv}}、{{Harvnb}}かず{{Harvs}}。

れい

Markup Result
。{{sfn |Smith|2006| p=25}} [1]
。{{sfn |Smith|2006| pp=25&ndash;26}} [2] 引用いんよう页。
。{{sfn |Smith|2006| loc=&sect;8.5}} [3] ひさげ引用いんようてき段落だんらく
。{{sfn |Smith|2006| p=25}} [1] どう一页的第二个引用。
。{{sfn |Smith|Jones|2006| p=25}} [4] 两位作者さくしゃ
。{{sfn |Smith|Jones|Brown|2009| p=25}} [5] さん作者さくしゃ
。{{sfn |Smith|Jones|Brown|Black|2006| p=25}} [6] 作者さくしゃ
。{{sfn |Wallace|1993a| p=25}}したいち个句。{{sfn |Wallace|1993b| p=32}} [7]したいち个句[8] どういちねんてき不同ふどう书籍、论文。
==Notes==
{{reflist}}

==References==
* {{Cite book
| last = Smith | first = John
| year = 2006
| title = Smith's Book
| ref = harv
}}
* {{Cite web
| last = Smith | first = John
| last2 = Jones | first2 = Sam
| title = Smith & Jones website
| url = http://en.wikipedia.org
| year = 2006
| ref = harv
}}
* {{Cite news
| last = Smith | first = John
| last2 = Jones | first2 = Sam
| last3 = Brown | first3 = Tom
| title = Article by Smith, Jones and Brown
| year = 2009
| newspaper = Big Urban Newspaper
| ref = harv
}}
* {{Cite journal
| last = Smith
| last2 = Jones
| last3 = Brown
| last4 = Black
| year= 2006
| title= Smith, Jones, Brown and Black's Paper
| journal = Important Journal
| ref = harv
}}
* {{Cite journal
| last = Wallace | first = Bill
| year = 1993a
| title = Wallace's first paper
| journal= Important Journal
| ref = harv
}}
* {{Cite journal
| last = Wallace | first = Bill
| year = 1993b
| title = Wallace's second paper
| journal= Another Important Journal
| ref = harv
}}
Notes
  1. ^ 1.0 1.1 Smith 2006だい25ぺーじ.
  2. ^ Smith 2006だい25–26ぺーじ.
  3. ^ Smith 2006,§8.5.
  4. ^ Smith & Jones 2006だい25ぺーじ.
  5. ^ Smith, Jones & Brown 2009だい25ぺーじ.
  6. ^ Smith et al. 2006だい25ぺーじ.
  7. ^ Wallace 1993aだい25ぺーじ.
  8. ^ Wallace 1993bだい25ぺーじ.
References
  • Smith, John. Smith's Book. 2006. 
  • Smith, John; Jones, Sam. Smith & Jones website. 2006. 
  • Smith, John; Jones, Sam; Brown, Tom. Article by Smith, Jones and Brown. Big Urban Newspaper. 2009. 
  • Smith; Jones; Brown; Black. Smith, Jones, Brown and Black's Paper. Important Journal. 2006. 
  • Wallace, Bill. Wallace's first paper. Important Journal. 1993a. 
  • Wallace, Bill. Wallace's second paper. Another Important Journal. 1993b. 

Anchor IDs

This template generates an HTML IDd as an anchor to link the short citation to the full citation.. The |ref=harv field is necessary in each of the {{cite ...}} templates to enable the id. The {{citation}} template always generates an id.

If the article cites multiple works by the same author in the same year, then duplicate IDs will be generated. One method to resolve this is to add an alpha suffix to the year. Example: 2009a, 2009b, 2009c.

If works are cited where the author or year is unknown— such as for a web page —then an invalid ID will be generated. To resolve this, create a custom ID:

{{sfn|cite name|year}}
{{cite ... |ref=CITEREFcite_nameyear }}

Where cite_name is a name such as the publisher, and must follow these rules:

  • Must begin with a letter A-Z or a-z
  • Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"), underscores ("_"), colons (":"), and periods (".")
  • Spaces in the |ref= field must be replaced with underscores
  • Case-sensitive

SfnRef

使用しよう{{SfnRef}}生成せいせい{{cite}}系列けいれつばんちゅう|ref=ところ需要じゅようてきさんすう证{{sfn}}かず{{SfnRef}}ちゅう使用しようどう样的值(主要しゅよう作者さくしゃ和年かずとし份,SfnRefちゅう书籍页数通常つうじょうはま):

{{sfn|cite name|year}}
{{cite ... |ref={{SfnRef|cite name|year}} }}

Articles using {{sfn}} should be checked for duplicate IDs with the W3C Markup Validation Service.

注意ちゅうい

使用しようsfnばん需在前後ぜんこうじょう<ref></ref>,れい

{{sfn|Smith|2006|p=26}}
とう於如原始げんし碼:
<ref name=Smith200626>{{Harvnb|Smith|2006|p=26}}</ref>

TemplateData

以下いか该模いたてきかたぎいたすうすえ,适用于视化编辑とう工具こうぐ

Sfnいたすうすえ

ほんばんざい脚注きゃくちゅうちゅう创建りょう一个简短的作者日期引用,它允许你使用しよう哈佛引文(使用しようくくごう参考さんこうてきたん引文形式けいしきしょうないぶん链接いたあい应的かんせい书目引文。

ばんさんすう[编辑いたすうすえ]

此模ばんくび选参すう换行てき行内こうない格式かくしき

さんすう描述类型じょう
作者さくしゃてきせい1

だいいち作者さくしゃてきせい

しめせれい
行文こうぶんほん必需ひつじゅ
とし份或だい作者さくしゃ2

文献ぶんけんてき发表ねん份,あるだい作者さくしゃてきせい

しめせれい
2006
くし必需ひつじゅ
とし份或だいさん作者さくしゃ3

文献ぶんけんてき发表ねん份,あるだいさん作者さくしゃてきせい

くし
だい四作者或年份4

文献ぶんけんてき发表ねん份,あるだいよん作者さくしゃてきせい

くし
とし份(如已包含ほうがんよん名作めいさくしゃ5

文献ぶんけんてき发表ねん

数字すうじ
页码p page

あい关信いきただ存在そんざい单页时的页码(页时请用“へん页码”さんすう,其他位置いちすうすえ使用しよう位置いちさんすう

しめせれい
42
行文こうぶんほん推荐
へん页码pp pages

らいみなもとちゅうてきへん页码

しめせれい
23–24
行文こうぶんほん
きさきps

补充引用いんようある评论

しめせれい
This is an additional comment.
くし
位置いちloc

在来ざいらいげんちゅうてき位置いち

しめせれい
section 7
行文こうぶんほん

相關そうかん

對應たいおう