Template:Harvard citations

From Hârn
(Redirected from Template:Harvs)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Purpose[edit source]

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, harxtxt, and harvnb are easier to use.

The template name "Harvard citations" can be abbreviated as "harvs".

Parameters (all optional)[edit source]

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=
}}.
  • last (or last1): The first author's surname or last name.
  • first (or first1): The first author's first or given name(s).
  • author-link (or author1-link): Title of an existing Wikipedia article about the first author.
  • last2, last3, last4: The second, third, and fourth authors' surname or last name, if applicable.
  • first2, first3, first4: The second, third, and fourth authors' first or given name(s), if applicable.
  • author2-link, author3-link, author4-link: Title of an existing Wikipedia article about the second, third, and fourth author, if applicable.
  • year: Year of authorship or publication.
  • year2, year3, year4: Years of other references
  • editor-last (or editor1-last): The first editor's surname or last name.
  • editor-first (or editor1-first): The first editor's first or given name(s).
  • editor-link (or editor1-link): Title of an existing Wikipedia article about the first editor.
  • editor2-last, editor3-last, editor4-last: The second, third, and fourth editor' surname or last name, if applicable.
  • editor2-first, editor3-first, editor4-first: The second, third, and fourth editors' first or given name(s), if applicable.
  • editor2-link, editor3-link, editor4-link: Title of an existing Wikipedia article about the second, third, and fourth editor, if applicable.
  • txt: txt=yes or txt (i.e. you can use "txt" as the template's first or second numbered parameter) has the same effect as using harvtxt instead of harv: the author's name appears outside the ().
  • nb: nb=yes or nb (i.e. you can use "nb" as the template's first or second numbered parameter) has the same effect as using harvnb instead of harv: the () are omitted.
  • otherpage: the name of a different page to link to.
  • ref, ref1, etc.: alternative links.
  • loc1 (or loc), loc2, location (example: loc2=theorem 5)

Examples[edit source]

An example with authorlinks:

A reference is {{harvard citations |first=F. J. |last=Murray |author1-link=F. J. Murray |first2=J. |last2=von Neumann |author2-link=von Neumann |year=1936 |loc1=p. 118 }}.

A reference is Template:Harvard citations/core.

An example with txt

The theory was developed by {{harvard citations |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 Template:Harvard citations/core.

An example using nb to list 2 sets of authors, using citationpage to link to the von Neumann algebra page:

The theory was developed in a series of papers ({{harvard citations |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 }}, {{harvard citations |nb |citationpage=von Neumann algebra |first=J. |last=von Neumann |year1=1938 |year2=1940 |year3=1943 |year4=1949 }}).

The theory was developed in a series of papers (Template:Harvard citations/core, Template:Harvard citations/core).

More examples (mainly for debugging template)[edit source]

{{Harvard citations |last1=Beilinson |last2=Bernstein |last3=Deligne |year=1982 |txt=yes }}

Template:Harvard citations/core

{{Harvard citations |last1=Beilinson |last2=Bernstein |last3=Deligne |year=1982 |txt }}

Template:Harvard citations/core

{{Harvard citations |last1=Beilinson |last2=Bernstein |last3=Deligne |year=1982 }}

Template:Harvard citations/core

Sample references[edit source]

See also[edit source]

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

External links[edit source]