Difference between revisions of "Template:Harvard citation"

From Point Omega Research
Jump to: navigation, search
(Copied template logic from http://en.wikipedia.org/wiki/Template:Harvard_citation)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
({{#ifeq:{{{Ref|}}}|none
+
<includeonly>({{#ifeq:{{{Ref|}}}|none
 
   |{{#if:{{{5|}}}
 
   |{{#if:{{{5|}}}
 
       |{{{1|}}} et al. {{{5|}}}
 
       |{{{1|}}} et al. {{{5|}}}
Line 31: Line 31:
 
       }}
 
       }}
 
   }}
 
   }}
}})
+
}})</includeonly><noinclude>
 +
{{Template doc}}
 +
</noinclude>

Latest revision as of 20:50, 15 July 2007

[view] [edit]Template-info-50px.png Template documentation

Usage

{{Harvard citation | ''Last name of author(s)'' | ''Year'' | ''Location in the text'' }}

Alternative to using Location, you may also use the following parameters:

p = page pp = pages

Notes
  • The abbreviation Harv may be used.
  • The first parameter is the author's last name.
  • The second parameter is the year of publication.
  • 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 (e.g., "{{ Harv | Smith | 2006 | p=25 }}" yields (Smith 2006, p. 25).
  • The parameter pp is an optional page range parameter (e.g., "{{ Harv | Smith | 2006 | pp=25-26 }}" yields (Smith 2006, pp. 25-26).

If Ref=none, then no hyperlink is created.

Examples

  • {{Harvard citation | Smith | 2006 | loc=ch. 100}}
  • {{Harv | Smith | 2006 | p=25}}
  • {{Harv | Smith | 2006 | pp=25-26}}
  • {{Harv | Smith | 2006 | pp=25-26 | Ref=none}}
  • {{Harv | Smith | Jones | 2006 | p=25}}
  • {{Harv | Smith | Jones | Brown | 2006 | p=25}}
  • {{Harv | Smith | Jones | Brown | Black | 2006 | p=25}}

yields:

Other versions

Editors editing this template are requested to make parallel changes to these other versions.

See also

  • Use {{Citation}} to format the citations in the References section.