Template:Harvard citations
This template is used on approximately 1,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Purpose
The "Harvard citations" template is for producing more complicated Harvard citations, when one wishes to link several publications by the same author, or add a link to the author's name. For most simple Harvard citations the templates {{harv}}, {{harvtxt}}, and {{harvnb}} are easier to use.
The template name "Harvard citations" can be abbreviated as "harvs".
Note that the use (or even non-use) of these templates is an element of citation "style", and adding or removing them in articles with an established style should be consistent with that style. See WP:CITEVAR.
Also note that inline use of these templates, i.e. use of {{harvs}} without <ref>...</ref>
tags around it, was deprecated in September 2020.
Parameters (all optional)
Most of the parameters, in particular those for authors, editors, and year, should be the same as for the corresponding citation template. (If these are missing the template will try to guess them by looking for other parameters such as "date", "author" and so on.) In fact one can produce this template just by changing the name "citation" in the corresponding citation template to "harvard citations" and keeping all parameters the same.
{{Harvard citations
| last=
| first=
| author-link=
| last2=
| first2=
| author2-link=
| year=
| year2=
| editor-last=
| editor-first=
| editor-link=
| editor2-last=
| editor2-first=
| editor2-link=
| txt=
| nb=
| otherpage=
| ref=
| loc1=
}}.
|
|
Examples
Author links
An example with |authorn-link=
:
Markup | Renders as |
---|---|
A reference is {{harvs |first=F. J. |last=Murray |author1-link=F. J. Murray |first2=J. |last2=von Neumann |author2-link=John von Neumann |year=1936 |loc1=p. 118 }}. ==References== * {{citation |first=Francis J. |last=Murray |first2=John |last2=von Neumann |title=On rings of operators |journal=Annals of Mathematics |series=Second Series |volume=37 |year=1936 |pages=116–229 |jstor=1968693 }}. * {{citation |first=Francis J. |last=Murray |first2=John |last2=von Neumann |title=On rings of operators II |journal=Transactions of the American Mathematical Society |volume=41 |year=1937 |pages=208–248 |jstor=1989620 }}. * {{citation |first=Francis J. |last=Murray |first2=John |last2=von Neumann |title=On rings of operators IV |journal=Annals of Mathematics |series=Second Series |volume=44 |year=1943 |pages=716–808 |jstor=1969107 }} |
A reference is (F. J. Murray & J. von Neumann 1936, p. 118). References
|
Using harvtxt
instead of harv
styling
An example with |txt=
or |txt=yes
to use {{harvtxt}} styling instead of the default {{harv}} styling:
Markup | Renders as |
---|---|
The theory was developed by {{harvs |txt |first=F. J. |last=Murray |author1-link=F. J. Murray |first2=J. |last2=von Neumann |year=1936 |year2=1937 |year3=1943 }}. |
The theory was developed by F. J. Murray and J. von Neumann (1936, 1937, 1943). |
Linking to source references on another page
An example using |nb=
to list two sets of authors, using |citationpage=
to link to the
von Neumann algebra page:
Markup | Renders as |
---|---|
The theory was developed in a series of papers ({{harvs |nb=yes |citationpage=von Neumann algebra |first=F. J. |last=Murray |author1-link=F. J. Murray |first2=J. |last2=von Neumann |year=1936 |year2=1937 |year3=1943 }}, {{harvs |nb |citationpage=von Neumann algebra |first=J. |last=von Neumann |year1=1938 |year2=1940 |year3=1943 |year4=1949 }}). |
More examples (mainly for debugging template)
Markup | Renders as |
---|---|
{{harvs |last1=Beilinson |last2=Bernstein |last3=Deligne |year=1982 |txt=yes }} |
Beilinson, Bernstein, and Deligne (1982) |
{{harvs |last1=Beilinson |last2=Bernstein |last3=Deligne |year=1982 |txt }} |
Beilinson, Bernstein, and Deligne (1982) |
{{harvs |last1=Beilinson |last2=Bernstein |last3=Deligne |year=1982 }} |
(Beilinson, Bernstein & Deligne 1982) |
See also
- Use
{{Citation}}
to format the citations in the References section.