文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

短脚注模板

目的

于脚注中创建短的哈佛参考文献格式。详情见「列明來源」。特点:

用法

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

如果不想用選填的loc參數,可以改用以下參數其中一個:

注意


Editors editing this template are requested to consider making parallel changes to ((Harv)), ((Harvnb)) and ((Harvs)).

例子

Markup Result
句子。((sfn |Smith|2006| p=25)) 句子。[1]
句子。((sfn |Smith|2006| pp=25–26)) 句子。[2] 引用多页。
句子。((sfn |Smith|2006| loc=§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:

SfnRef

You may use the ((SfnRef)) template to generate the proper value for the |ref= parameter. Pass the same parameters used with ((sfn)) to ((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
单行文本可选

相關

對應