利用者:Omotecho/sandbox2
This guide needs improvement and expansion. |
{{Wikipedia how to|WP:SRF}}
Shortened footnotes are a hybrid of standard footnotes and Harvard-style parenthetical referencing. They use inline citations that link to a shortened reference in a list with a separate reference list with full citations to the source. The shortened reference may link to the full reference.
Shortened footnotes are used for several reasons: they allow the editor to cite many different pages of the same source without having to copy the entire citation; they avoid the inevitable clutter when citations are inserted into the source text; they bring together all the full citations into a coherent block of markup rather than being strewn throughout the text which allows the list to be alphabetized and makes it easier to edit all the full citations at once.
Please read en:Help:Footnotes first, as this guide builds upon the methods described there.
Overview
[編集]In this short example, note that an inline citation such as [1] links to the shortened footnote under "Notes", which in turn links to the long citation in the References list:
マークアップ | 描画 |
---|---|
The brontosaurus is thin at one end.{{sfn|Elk|1972|p=5}} Then it becomes much thicker in the middle.{{sfn|Elk|1972|p=6}} The Norwegian Blue Parrot will not move if its feet are nailed to the perch.{{sfn|Praline|1969|p=12}} Its metabolic processes are a matter of interest only to historians.{{sfn|Praline|1969|p=16}} ==Notes== {{reflist|2}} ==References== {{refbegin}} * {{cite book |ref=harv |last=Elk |first=Anne |title=[[:en:Anne Elk's Theory on Brontosauruses]] |date=November 16, 1972}} * {{cite book |ref=harv |last=Praline |first=Eric |title=[[:en:Dead Parrot sketch]] |date=December 7, 1969}} {{refend}} |
The brontosaurus is thin at one end.[1] Then it becomes much thicker in the middle.[2]
The Norwegian Blue Parrot will not move if its feet are nailed to the perch.[3] Its metabolic processes are a matter of interest only to historians.[4]
|
The browser back button or the backspace key can be used to navigate back.
Inline citations
[編集]An inline citation can be created using standard <ref>
tags, but this will not link to the long citation:
マークアップ | 描画 |
---|---|
<ref>Elk 1972, p. 5.</ref> {{reflist}} |
[1]
|
You can manually create a link to the long citation:
マークアップ | 描画 |
---|---|
<ref>[[:en:#CITEREFElk1972|Elk 1972]], p. 5.</ref> {{reflist}} |
[1] |
Using the {{sfn}} template along with |ref=harv
allows linking with simplified markup:
マークアップ | 描画 |
---|---|
{{sfn|Elk|1972|p=5}} {{reflist}} |
[1] |
The {{sfnp}} template places the date in parenthesis:
マークアップ | 描画 |
---|---|
{{sfnp|Elk|1972|p=5}} {{reflist}} |
[1]
|
The {{sfnm}} template supports the inclusion of multiple sources in a single footnote.
マークアップ | 描画 |
---|---|
{{sfnm |1a1=Elk |1y=1972 |1p=5 |2a1=Praline |2y=1969 |2p=12}} {{reflist}} |
[1]
|
Before {{sfn}} was developed, {{harvnb}} or a similar template was used in <ref>
tags:
マークアップ | 描画 |
---|---|
<ref>{{harvnb|Elk|1972|p=5}}</ref> {{reflist}} |
[1] |
This method is still in place in many articles. Templates in this series include {{harvnb}}, {{harv}}, {{harvtxt}}, {{harvcoltxt}}, {{harvcol}} and {{harvcolnb}}. When used with Citation Style 1 templates, all require |ref=harv
set inside the template in order to link to the full citation. The differences are in the use of parenthesis and colons; see {{Harvard citation documentation}}.
The link is normally created from the authors' last names and the year of publication.
List of footnotes
[編集]The list of footnotes is created by using {{reflist}}. When only shortened footnotes are used, then {{reflist|20em}}
will show the list in an appropriate number of columns. Where shortened and long footnotes are mixed, use {{reflist|30em}}
.
Linking
[編集]Citations in the References list are usually created with a citation template. When linking is desired between the shortened and long citations, the citation template must create an anchor. When using {{citation}}, an anchor is always created. When using one of the Citation Style 1 templates, |ref=
must be set, usually to |ref=harv
(See en:Help:Citation Style 1#Anchors for details). By setting |ref=harv
, the anchor is automatically created from the author's last name and the year of publication:
{{cite book |ref=harv |last=Elk |first=Anne |title=[[:en:Anne Elk's Theory on Brontosauruses]] |date=November 16, 1972}}
In many cases, there is no author, therefore the link and anchor must be created in a different manner. For example:
- The Lumberjack Song. (December 14, 1969)
Here the inline citation can be created as:
{{sfn|Lumberjack Song|1969}}
And the anchor for the citation created with {{sfnref}}:
{{cite book |ref={{sfnref|Lumberjack Song|1969}} |title=Lumberjack Song |date=December 14, 1969}}
References list
[編集]Full citations in the references list may be formatted manually or by use of templates. See the Wikipedia referencing navbox below for various citation styles.
The reference list is formatted by placing the citations in an unordered list using the * markup. Entries may be sorted by the author's last name. The text size may be formatted with {{refbegin}} and {{refend}}. The references list is normally displayed in one column with no indenting.
{{refbegin}}
*{{cite book |ref=harv |last=Elk |first=Anne |title=Anne Elk's Theory on Brontosauruses |date=November 16, 1972}}
{{refend}}
Date
[編集]The inline citation should include only the year. The full citation may include the year only or the full date. Most citation templates will extract the year from a full date to form the anchor. If both a date and a year are included, then the date is displayed, but the anchor is formed from the year.
If an author has multiple works in the same year, regardless of whether is a full date or only a year, then duplicate anchors will be generated. To resolve this, suffix the year with an alpha character. For example:
{{cite book |ref=harv |last=Elk |first=Anne |title=Anne Elk's Theory on Brontosauruses |date=November 16, 1972 |year=1972a}}
{{cite book |ref=harv |last=Elk |first=Anne |title=Anne Elk's Further Theory on Brontosauruses |date=December 20, 1972 |year=1972b}}
NoAuthor
No author
[編集]Some sources do not have a single author with a last name, such as a magazine article or a report from a government institution. Options include:
- For a newspaper or periodical, use the name of the publication and the date, or set the author parameter to "publication name staff".[i]
- For a publication by an institution, use the name of the institution.
- Some style guides recommend using the title of the article (title-date).
- Other style guides recommend using "Anonymous" or "Anon."
Explanatory notes
[編集]Explanatory or content notes are used to add explanations, comments or other additional information relating to the main content. One of the reasons they may be used is to avoid making the text too long or awkward to read. Such notes may include supporting references.
Shortened footnotes mixed with explanatory notes
[編集]This section uses {{sfn}} and {{efn}}.
マークアップ | 描画 |
---|---|
The Sun is pretty big.{{sfn|Miller|2005|page=23|ps=. But Miller points out that the Sun is not as large as some other stars.}} But the Moon{{efn|The Moon goes by other names, such as Selena - see, for example Jones, ''The Solar System'', MacMillan, 2005, p 623.}} is not so big.{{sfn|Brown|2001|page=46|ps=. Historically the Moon was not always considered to be large, see, for example {{harvnb|Peterson|2004|page=623}}}} The Sun is also quite hot.{{sfn|Smith|2005|page=334}} ==Notes== {{notelist}} {{reflist}} ==References== {{refbegin}} * {{citation |last=Brown |title=The Moon |publisher=Penguin |year=2001}} * {{citation |last=Miller |title=The Sun |publisher=Oxford |year=2005}} * {{citation |last=Smith |title=The Universe |publisher=Random House |year=2005}} * {{citation |last=Peterson |title=Astronomy |publisher=MacMillan |year=2004}} {{refend}} |
The Sun is pretty big.[1] But the Moon[注釈 1] is not so big.[2] The Sun is also quite hot.[3]
|
Shortened footnotes with separate explanatory notes
[編集]This example creates a separate notes section by using <ref>
and <ref group=>
.
マークアップ | 描画 |
---|---|
The Sun is pretty big.<ref name=Foot01/><ref group=Note name=Note01/> But the Moon<ref group=Note name=Note02/> is not so big.<ref name=Foot02/><ref group=Note name=Note03/> The Sun is also quite hot.<ref name=Foot03/> ==Notes== {{reflist|group=Note|refs= <ref name=Note01>But Miller points out that the Sun is not as large as some other stars.</ref> <ref name=Note02>The Moon goes by other names, such as Selena - see, for example Jones, ''The Solar System'', MacMillan, 2005, p 623.</ref> <ref name=Note03>Historically the Moon was not always considered to be large, see, for example, Peterson, ''Astronomy'', MacMillan, 2005, p 623.</ref> }} ==Citations== {{reflist|refs= <ref name=Foot01>Miller, p. 23</ref> <ref name=Foot02>Brown, p. 46</ref> <ref name=Foot03>Smith, p. 334</ref> }} ==References== {{refbegin}} * Brown, ''The Moon'', Penguin. 2001. * Miller, ''The Sun'', Oxford, 2005. * Smith, ''The Universe'', Random House, 2005. {{refend}} |
The Sun is pretty big.[1][Note 1] But the Moon[Note 2] is not so big.[2][Note 3] The Sun is also quite hot.[3]
|
Shortened footnotes with separate explanatory notes with references
[編集]This method uses {{sfn}} to create the main footnotes, {{refn}} to create the explanatory notes and {{sfn}} to create footnotes in the explanatory notes.
マークアップ | 描画 |
---|---|
The Sun is pretty big.{{sfn|Miller|2005|p=23}}{{refn|group=lower-alpha|But Miller points out that the Sun is not as large as some other stars.{{sfn|Miller|2005|p=23}}}} But the Moon{{refn|group=lower-alpha|The Moon goes by other names, such as Selena.{{sfn|Brown|2001|p=63}}}} is not so big.{{sfn|Brown|2001|p=46}}{{refn|group=lower-alpha|Historically the Moon was not always considered to be large.}} The Sun is also quite hot.{{sfn|Smith|2005|p=334}} ==Notes== {{reflist|group=lower-alpha}} ==Citations== {{reflist}} ==References== {{refbegin}} * {{citation |last=Brown |title=The Moon |publisher=Penguin |year=2001}} * {{citation |last=Miller |title=The Sun |publisher=Oxford |year=2005}} * {{citation |last=Smith |title=The Universe |publisher=Random House |year=2005}} {{refend}} |
The Sun is pretty big.[1][a] But the Moon[b] is not so big.[3][c] The Sun is also quite hot.[4]
|
This method uses {{sfn}} to create the main footnotes, {{efn}} to create the explanatory notes, {{sfn}} to create footnotes in the explanatory notes and {{notelist}} to create the notes list.
マークアップ | 描画 |
---|---|
The Sun is pretty big.{{sfn|Miller|2005|p=23}}{{efn|But Miller points out that the Sun is not as large as some other stars.{{sfn|Miller|2005|p=23}}}} But the Moon{{efn|The Moon goes by other names, such as Selena.{{sfn|Brown|2001|p=63}}}} is not so big.{{sfn|Brown|2001|p=46}}{{efn|Historically the Moon was not always considered to be large.}} The Sun is also quite hot.{{sfn|Smith|2005|p=334}} ==Notes== {{notelist}} ==Citations== {{reflist}} ==References== {{refbegin}} * {{citation |last=Brown |title=The Moon |publisher=Penguin |year=2001}} * {{citation |last=Miller |title=The Sun |publisher=Oxford |year=2005}} * {{citation |last=Smith |title=The Universe |publisher=Random House |year=2005}} {{refend}} |
The Sun is pretty big.[1][注釈 1] But the Moon[注釈 2] is not so big.[3][注釈 3] The Sun is also quite hot.[4]
|
Errors
[編集]Errors involving <ref>
tags will be automatically displayed in article, user, template, category, help and file pages. To show error messages on talk and other pages, see en:Help:Reference display customization.
It is very possible to create an inline citation that does not link to the full citation and to create full citations that do not have a matching inline citation. Often the link and anchor may not match for some reason. To catch these errors, use the en:User:Ucucha/HarvErrors script. When an inline citation does not have a matching full citation and cannot be readily resolved, then it can be tagged with {{Citation not found}}.
It is also possible to create duplicate IDs for the inline citation, resulting in invalid HTML. See en:Help:Markup validation for help in validating and resolving issues.
Examples
[編集]These articles exemplify the use of shortened footnotes:
These articles illustrate improperly implemented shortened footnotes:
- The article uses {{sfn}} (#10, 11, 12) to point to Rothenburg1976, which is a manually defined citation with no anchor (#9); the footnotes and shortened footnotes are mixed.
sfn template use notes
[編集]{{Sfn}}} and variant templates form the link from the author last name and the year. Up to four authors are supported, for example, {{sfn|Smith|Jones|1993}}
. The full citation must create an anchor that matches the {{sfn}} link. 出典表記形式1 templates use |ref=harv
to create the anchor; 出典表記形式2 always creates the anchor. An "anchor" is a landing place for a link to jump to. It is automatically created by/from certain parameters in the full citation template.
If there is a need to cite two works by the same author published in the same year see more than one work in a year for advice on what to do.
See also
[編集]Notes
[編集]- ^ Setting the author parameter to something solves the problem of having to set the "ref=" parameter to something other than that which is automatically generated.