Template:Harvard citation documentation
Revision as of 17:36, 14 September 2007 by test>R.e.b. (→Usage: bug)
Template:Template doc page viewed directly
Contents
Usage
- {{Harvard citation |''Last name of author(s)''|''Year''| ''Location in the text''}}
Instead of using Location, you may also use one of the following parameters:
- p = page
- pp = pages
- Notes
- The abbreviation Harv may be used.
- The first parameter is the author's last name.
- Up to four authors can be given as parameters (see the examples) but more than four will cause an error. (BUG)
- The second parameter is the year of publication (assuming one author).
- The year and author name(s) must not have extra space before and after, else the generated links will not work. (BUG)
- The third parameter is the location of the cited material within the reference. This parameter is optional.
- The parameter p is an optional page parameter; thus "{{Harv|Smith|2006| p=25}}" yields "(Smith 2006, p. 25)".
- The parameter pp is an optional page range parameter; thus "{{Harv|Smith|2006| pp=25–26}}" yields "(Smith 2006, pp. 25–26)".
- If Ref=none, then no hyperlink is created.
- To avoid the brackets surrounding the citation, use
{{Harvard citation no brackets}}or{{Harvnb}}. - To use the author name(s) in the text, use
{{Harvard citation text}}or{{Harvtxt}}.
Editors editing this template are requested to make parallel changes to the other two versions.
Examples
Markup Result {{Harv |Smith|2006| loc=§8.5}} (Smith 2006, §8.5) {{Harv |Smith|2006| p=25}} (Smith 2006, p. 25) {{Harv |Smith|2006| pp=25–26}} (Smith 2006, pp. 25–26) {{Harv |Smith|2006| pp=25–26 | Ref=none}} (Smith 2006, pp. 25–26) {{Harv |Smith|Jones|2006| p=25}} (Smith & Jones 2006, p. 25) {{Harv |Smith|Jones|Brown|2006| p=25}} (Smith, Jones & Brown 2006, p. 25) {{Harv |Smith|Jones|Brown|Black|2006| p=25}} (Smith et al. 2006, p. 25) {{Harvnb |Smith|2006| p=25}} Smith 2006, p. 25 {{Harvtxt |Smith|2006| p=25}} Smith (2006, p. 25)
Recommended style
The recommended Harvard referencing style potentially uses all three templates. Each automatically generates a hypertext link based on the name(s) and date. Here is an example
- Markup
- Some works on gravitation are so massive they warp spacetime themselves {{Harv|Misner|Thorne|Wheeler|1973}}; yet {{Harvtxt|Einstein|1915}} presented essential equations with notable brevity. The essential ingredients are the curvature tensor and the stress-energy tensor ({{Harvnb|Einstein|1915|loc=p. 844}}; {{Harvnb|Misner|Thorne|Wheeler|1973|loc=p. 41}}).
- Result
- Some works on gravitation are so massive they warp spacetime themselves (Misner, Thorne & Wheeler 1973); yet Einstein (1915) presented essential equations with notable brevity. The two ingredients are the curvature tensor and the stress-energy tensor (Einstein 1915, p. 844; Misner, Thorne & Wheeler 1973, p. 41).
In short:
- For a single work with no author in the text (the most common case), use
{{Harv}}. - For a single work with the author named in the text, use
{{Harvtxt}}. - For multiple works at the same point, use explicit parentheses and
{{Harvnb}}separated by semicolons.
See also
- Use
{{Citation}}to format the citations in the References section.