於腳註中創建短的哈佛參考文獻格式。詳情見「列明來源」。特點:
- 自動整合相同腳註。
- 自動創建到頁底該引用的具體信息的連結。錨點只有當你添加了
|harv=
參數到目的模板才會被創建。這個連結只有當參數|last=
、|last2=
和|year=
與{{sfn}}相匹配時才會被創建,或者|ref=
被設置為一個其他的錨點id。
{{Sfn |Last name of author(s)|Year| loc = Location in the text}}
如果不想用選填的loc參數,可以改用以下參數其中一個:
- 注意
(※)注意:編輯本模板時請同步更改{{Harv}}、{{Harvnb}}和{{Harvs}}。
More information Markup, Result ...
Markup |
Result
|
句子。{{sfn |Smith|2006| p=25}}
|
句子。
|
句子。{{sfn |Smith|2006| pp=25–26}}
|
句子。 引用多頁。
|
句子。{{sfn |Smith|2006| loc=§8.5}}
|
句子。 提及引用的段落。
|
句子。{{sfn |Smith|2006| p=25}}
|
句子。 同一頁的第二個引用。
|
句子。{{sfn |Smith|Jones|2006| p=25}}
|
句子。 兩位作者。
|
句子。{{sfn |Smith|Jones|Brown|2009| p=25}}
|
句子。 三位作者。
|
句子。{{sfn |Smith|Jones|Brown|Black|2006| p=25}}
|
句子。 多位作者。
|
句子。{{sfn |Wallace|1993a| p=25}}下一个句子。{{sfn |Wallace|1993b| p=32}}
|
句子。下一個句子。 同一年的不同書籍、論文。
|
==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
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.
|
Close
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}}生成{{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>
More information 參數, 描述 ...
模板參數
此模板以參數行內格式為優先。
參數 | 描述 | 類型 | 狀態 |
---|
作者的姓 | 1 | 第一作者的姓 - 範例
- 張
| 行 | 必填 |
---|
年份或第二作者 | 2 | 文獻的發表年份,或第二位作者的姓 - 範例
- 2006
| 字串 | 必填 |
---|
年份或第三作者 | 3 | 文獻的發表年份,或第三位作者的姓
| 字串 | 非必填 |
---|
第四作者或年份 | 4 | 文獻的發表年份,或第四位作者的姓
| 字串 | 非必填 |
---|
年份(如已包含四名作者) | 5 | 文獻的發表年份
| 數值 | 非必填 |
---|
頁碼 | p page | 相關信息只存在單頁時的頁碼(多頁時請用「多篇頁碼」參數,其他位置數據使用「位置」參數) - 範例
- 42
| 行 | 建議 |
---|
多篇頁碼 | pp pages | 來源中的多篇頁碼 - 範例
- 23–24
| 行 | 非必填 |
---|
後記 | ps | 補充引用或評論 - 範例
- This is an additional comment.
| 字串 | 非必填 |
---|
位置 | loc | 在來源中的位置 - 範例
- section 7
| 行 | 非必填 |
---|
Close