The Citation template generates a citation for a book, periodical, contribution in a collective work, patent, or a web page.
This template is used on 189,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This template uses Lua: |
It determines the citation type by examining which parameters are used. As with other citation templates, this template can be used either in a footnote (between ...
tags) or in a section that lists sources. This template uses the same Lua code as citation style 1 (CS1) templates with parameters to change the displayed format to citation style 2 (CS2).
If the correct parameters are used, this template produces output identical to that of the Cite templates, such as {{Cite book}} and {{Cite web}}, with one important exception: By default, this Citation template uses commas in places where the Cite templates use periods (full stops) by default; either type of template can use periods (full stops) or commas by using an optional parameter. Also, this template by default generates anchors for Harvard references whereas the Cite templates by default do not (although they can be made to do so).
Regardless of which citation templates are used or even if none are used at all, all citations should have the same format throughout an article in the saved, rendered text.
Note: All parameter names must be lowercase.
This section covers the most commonly used parameters. You can copy the horizontal form or vertical form below and then add in extra parameters from the full list. Spacing and ordering of the parameters within the template is irrelevant and does not affect the final, rendered text.
{{Citation |last= |first= |year= |title= |publisher= |publication-place= |page= |url= |accessdate= }}
{{Citation | last = | first = | year = | title = | publisher = | publication-place = | page = | url = | accessdate = }} |
|date=
specifies both month and year.{{Citation | last = Turner | first = Orsamus | title = History of the pioneer settlement of Phelps and Gorham's purchase, and Morris' reserve | publisher = William Alling | place = Rochester, New York | year = 1851 | ol = 7120924W }} | Turner, Orsamus (1851), History of the pioneer settlement of Phelps and Gorham's purchase, and Morris' reserve, Rochester, New York: William Alling, OL 7120924W |
These can be used for all types of publication except patents. All are optional and indentation is used simply to group related items — these may be mutually exclusive where indicated. Some hyphenated names can also be placed without hyphens.
{{Citation | author = | last = | first = | author2 = | last2 = | first2 = | author-link = | author2-link = | author-separator = | author-name-separator = | author-mask = | display-authors = | editor = | editor-last = | editor-first = | editor2 = | editor2-last = | editor2-first = | editor-link = | editor2-link = | translator-last = | translator-first = | translator-link = | translator2-last = | translator2-first = | translator2-link = | others = | publication-date = | date = | year = | origyear = | title = | chapter = | chapter-url = | chapter-format = | contribution = | contribution-url = | type = | journal = | periodical = | newspaper = | magazine = | encyclopedia = | work = | edition = | series = | volume = | issue = | publisher = | publication-place = | place = | language = | page = | pages = | nopp = | at = | id = | isbn = | issn = | oclc = | pmid = | pmc = | bibcode = | doi = | doi-inactive-date= | zbl = | url = | accessdate = | format = | archiveurl = | archivedate = | dead-url = | quote = | layurl = | laysource = | laydate = | separator = | postscript = | ref = }} |
Nested parameters rely on their parent parameters:
Template:Citation Style documentation/sep comma
This template embeds COinS metadata in the HTML output, allowing reference management software to retrieve bibliographic metadata. Template:Hatnote inline/invoke As a general rule, only one data item per parameter. Do not include explanatory or alternate text:
|date=27 September 2007
not |date=27 September 2007 (print version 25 September)
Use of templates within the citation template is discouraged because many of these templates will add extraneous HTML or CSS that will be included raw in the metadata. Also, HTML entities, for example
, –
, etc, should not be used in parameters that contribute to the metadata. Do not include Wiki markup ''
(italic font) or '''
(bold font) because these markup characters will contaminate the metadata.
|periodical=
, |journal=
, |newspaper=
, |magazine=
, |work=
, |website=
, |encyclopedia=
, |encyclopaedia=
, |dictionary=
|chapter=
, |contribution=
, |entry=
, |article=
, |section=
|title=
|publication-place=
, |publicationplace=
, |place=
, |location=
|date=
, |year=
, |publication-date=
, |publicationdate=
|series=
, |version=
|volume=
|issue=
, |number=
|page=
, |pages=
, |at=
|edition=
|publisher=
, |distributor=
, |institution=
|url=
|chapter-url=
, |chapterurl=
, |contribution-url=
, |contributionurl=
, |section-url=
, |sectionurl=
|author#=
, |author-last#=
, |author#-last=
, |last#=
, |surname#=
|author-first#=
, |author#-first=
, |first#=
, |given#=
|isbn=
, |issn=
, |doi=
, |pmc=
, etc)None of the cs1|2 parameters is deprecated.
|author=Bono
). Aliases: surname, author, last1, surname1, author1. |first1=...
|last1=...
|author2=...
.vanc
and when the list uses last
/first
parameters for the name list(s).|vauthors=Smythe JB, ((Megabux Corp.))
|vauthors=
as described above|editor-first1=...
|editor-last1=...
|editor2=...
.vanc
and when the list uses last
/first
parameters for the name list(s)|veditors=Smythe JB ((Megabux Corp.))
|veditors=
, as described aboveTemplate:Citation Style documentation/title Template:Citation Style documentation/chapter
|language=French, German
. The use of language names or language codes recognized by Wiki adds the page to the appropriate subcategory of Category:CS1 foreign language sources; do not use templates or wikilinks. Note: When the language is "English" (or "en"), no language is displayed in the citation. Note: When two or more languages are listed there is no need to include "and" before the last language. "and" is inserted automatically by the template.{{sfn}}
links to multiple-work citations by the same author in the same year.[more] Do not wikilink. Displays after the authors and is enclosed in parentheses. If there is no author, then displays after publisher. Template:Hatnote inline/invokec.
", like this: |date=c. 1900
.|date=n.d.
|date=
is recommended unless all of the following conditions are met: |ref=harv
, or the template is {{citation}}
, or |mode=cs2
|date=
format is YYYY-MM-DD.CITEREF
disambiguator.|orig-year=First published 1859
or |orig-year=Composed 1904
. Alias: origyeardmy
– set publication dates to day month year format; access- and archive-dates are not modified;mdy
– as above for month day, year formatymd
– as above for year initial numeric format YYYY-MM-DDdmy-all
– set publication, access-, and archive-dates to day month year format;mdy-all
– as above for month day, year formatymd-all
– as above for year initial numeric format YYYY-MM-DDTemplate:Citation Style documentation/journal
Template:Citation Style documentation/edition
Template:Citation Style documentation/volume
|page=
or |pages=
, but not both. Displays preceded by p.
unless |nopp=y
.|page=
or |pages=
, but not both. Separate using an en dash (–); separate non-sequential pages with a comma (,); do not use to indicate the total number of pages in the source. Displays preceded by pp.
unless |nopp=y
. Hyphens are automatically converted to en dashes; if hyphens are appropriate, for example: pp. 3-1–3-15, use |pages=3{{hyphen}}1–3{{hyphen}}15
or |at=pp. 3-1–3-15
. p.
or pp.
notations where this is inappropriate; for example, where |page=Front cover
or |pages=passim
.|page=
or |pages=
. Use only one of |page=
, |pages=
, or |at=
.#ixzz2rBr3aO94
or ?utm_source=google&utm_medium=...&utm_term=...&utm_campaign=...
. Template:Hatnote inline/invoke Do not link to any commercial booksellers, such as Amazon.com; use |ISBN=
or |OCLC=
to provide neutral search links for books. Invalid URLs, including those containing spaces, will result in an error message. |dead-url=no
) the archived link is displayed first, with the original link at the end. Alias: archiveurl. |dead-url=yes
; equivalent values are y or true. Ignored if archive-url is not set. When the URL is still live, but pre-emptively archived, then set |dead-url=no
; this changes the display order, with the title retaining the original link and the archive linked at the end. When the original URL has been usurped for the purposes of spam, advertising, or is otherwise unsuitable, setting |dead-url=unfit
or |dead-url=usurped
suppresses display of the original URL (but |url=
and |archive-url=
are still required). Alias: deadurl.|template-doc-demo=true
to disable categorization; mainly used for documentation where the error is demonstrated. Alias: no-cat.http://
and https://
will be supported by all browsers; however, ftp://
, gopher://
, irc://
, ircs://
, mailto:
and news:
may require a plug-in or an external application and should normally be avoided. IPv6 host-names are currently not supported.%20
. To encode the URL, replace the following characters with:sp | " | ' | < | > | [ | ] | { | | | } |
---|---|---|---|---|---|---|---|---|---|
%20 | %22 | %27 | %3c | %3e | %5b | %5d | %7b | %7c | %7d |
Template:Citation Style documentation/chapterurl
Template:Citation Style documentation/ref2
|id=NCJ 122967
will append "NCJ 122967" at the end of the citation. You can use templates such as |id={{NCJ|122967}}
to append NCJ 122967 instead.These identifiers create links and are designed to accept a single value. Using multiple values or other text will break the link and/or invalidate the identifier. In general, the parameters should include only the variable part of the identifier, e.g. rfc=822
or pmc=345678
.
arxiv=hep-th/9205027
(before April 2007) or arxiv=0706.0001
(April 2007 – December 2014) or arxiv=1501.00001
(since January 2015). Do not include extraneous file extensions like ".pdf" or ".html".asin=B00005N5PF
au
, br
, ca
, cn
, co.jp
, co.uk
, de
, es
, fr
, it
, mx
1974AJ.....79..819H
078733
for http://biorxiv.org/content/early/2016/10/01/078733 or https://dx.doi.org/10.1101/078733)10.1.1.176.341
for http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.176.341 )10.1038/news070508-7
. It is checked to ensure it begins with (10.
). eissn=1557-2986
Alias: EISSNhdl=20.1000/100
Alias: HDL978-0-8126-9593-9
. Template:Hatnote inline/invoke Dashes in the ISBN are optional, but preferred. Use the ISBN actually printed on or in the book. Use the 13-digit ISBN – beginning with 978 or 979 – when it is available. If only a 10-digit ISBN is printed on or in the book, use it. ISBNs can be found on the page with the publisher's information – usually the back of the title page – or beneath the barcode as a number beginning with 978 or 979 (barcodes beginning with any other numbers are not ISBNs). For sources with the older 9-digit SBN system, prefix the number with a zero; thus, SBN 902888-45-5 should be entered as |isbn=0-902888-45-5
. Do not convert a 10-digit ISBN to 13-digit by just adding the 978 prefix; the last digit is a calculated check digit and just making changes to the numbers will make the ISBN invalid. This parameter should hold only the ISBN without any additional characters. It is checked for length, invalid characters – anything other than numbers, spaces, and hyphens, with "X" permitted as the last character in a 10-digit ISBN – and the proper check digit. Alias: ISBN979-0-9016791-7-7
. Hyphens or spaces in the ISMN are optional. Use the ISMN actually printed on or in the work. This parameter should hold only the ISMN without any additional characters. It is checked for length, invalid characters – anything other than numbers, spaces, and hyphens – and the proper check digit. Alias: ISMNissn=2049-3630
Alias: ISSNjfm=53.0144.01
jstor=3793107
will generate JSTOR 3793107.lccn=2004042477
mr=630583
oclc=9355469
ol=7030731M
osti=4367507
pmc=345678
. Do not include "PMC" in the value. Template:Hatnote inline/invoke pmid=17322060
Template:Hatnote inline/invokerfc=3143
ssrn=1900856
zbl=0472.53010
|mode=cs1
, element separator and terminal punctuation is a period (.
); where appropriate, initial letters of certain words are capitalized ('Retrieved...'). For |mode=cs2
, element separator is a comma (,
); terminal punctuation is omitted; where appropriate, initial letters of certain words are not capitalized ('retrieved...'). To override default terminal punctuation use postscript.{{reflist}}
,
or similar as there is no control of the order in which references are displayed. You can also use editor-mask and translator-mask in the same way.|display-authors=2
will display only the first two authors in a citation. By default, all authors are displayed. |display-authors=etal
displays all authors in the list followed by et al. Aliases: displayauthors.|display-editors=2
will display only the first two editors in a citation. By default, all editors are displayed. |display-editors=etal
displays all editors in the list followed by et al. Aliases: displayeditors. &
) when set to y
, yes
, or true
. Example: |last-author-amp=yes
Citations of online sources that require registration or a subscription are acceptable in Wikipedia as documented in Verifiability – Access to sources. As a courtesy to readers and other editors, editors can signal the access restrictions of the external links included in a citation.
Four access levels can be used:
free
: the source is free to read for anyone (this applies in particular to articles in open access)registration
: a free registration is required to access the sourcelimited
: there are other constraints (such as a cap on daily views) to freely access this sourcesubscription
: the source is only accessible via a paid subscriptionAs there are often multiple external links with different access levels in the same citation, these values are attributed to a particular external link.
|url=
Links inserted with |url=
are expected to be free to read by default. If not, editors can use one of
|url-access=subscription
|url-access=registration
|url-access=limited
to indicate the relevant access restriction.
Links inserted by identifiers such as |doi=
are not expected to offer a free full text by default. If they do, editors can use |doi-access=free
(in the case of |doi=
) to indicate the relevant access level. The following identifiers are supported:
|bibcode=
with |bibcode-access=free
|doi=
with |doi-access=free
|hdl=
with |hdl-access=free
|jstor=
with |jstor-access=free
|ol=
with |ol-access=free
|osti=
with |osti-access=free
Some identifiers always link to free full texts. In this case, the access level is automatically indicated by the template. This is the case for |arxiv=
, |biorxiv=
, |citeseerx=
, |pmc=
, |rfc=
and |ssrn=
.
The parameters |registration=yes
and |subscription=yes
can also be used to indicate the access level of a citation. However, they do not indicate which link they apply to, so editors are encouraged to use |url-access=registration
and |url-access=subscription
instead, when the restriction applies to |url=
. If the restriction applies to an identifier, these parameters should be omitted.
These parameters add a link note to the end of the citation:
|registration=yes
(or y
, or true
); superseded by subscription if both are set.|subscription=yes
(or y
, or true
); supersedes registration if both are set.Setting |registration=
or |subscription=
to any value other than y
, yes
, or true
will generate an error message.
Three authors, a volume, and an edition. Ampersand (&) forced before final author's name. | {{Citation | last1 = Lincoln | first1 = A. | last2 = Washington | first2 = G. | last3 = Adams | first3 = J. | lastauthoramp = yes | title = All the Presidents' Names | publisher = The Pentagon | place = Home Base, New York | volume = XII | edition = 2nd | year = 2007 }} | Lincoln, A.; Washington, G. & Adams, J. (2007), All the Presidents' Names, XII (2nd ed.), Home Base, New York: The Pentagon |
Web page | {{Citation | url = http://nrhp.focus.nps.gov/ | title = NPS Focus | work = National Register of Historic Places | publisher = [[National Park Service]] | accessdate = November 30, 2010 | ref = none }} | "NPS Focus", National Register of Historic Places, National Park Service, retrieved November 30, 2010 |
Archived page | {{Citation | url = http://liftoff.msfc.nasa.gov/academy/space/atmosphere.html | title = Earth's Atmosphere | accessdate = October 25, 2007 | publisher = [[National Aeronautics and Space Administration]] | year = 1995 | author = NASA | archiveurl = https://web.archive.org/web/20071013232332/http:// liftoff.msfc.nasa.gov/academy/space/atmosphere.html | archivedate = October 13, 2007 }} | NASA (1995), Earth's Atmosphere, National Aeronautics and Space Administration, archived from the original on October 13, 2007, retrieved October 25, 2007 |
Journal article | {{Citation | last = Hill | first = Marvin S. | title = Joseph Smith and the 1826 Trial: New Evidence and New Difficulties | journal = BYU Studies | volume = 12 | issue = 2 | year = 1976 | pages = 1–8 | url = https://byustudies.byu.edu/shop/PDFSRC/12.2Hill.pdf }} | Hill, Marvin S. (1976), "Joseph Smith and the 1826 Trial: New Evidence and New Difficulties" (PDF), BYU Studies, 12 (2): 1–8 |
Journal article with multiple authors and identifier | {{Citation | last1 = Mandelkern | first1 = M, | last2 = Elias | first2 = J, | last3 = Eden | first3 = D, | last4 = Crothers | first4 = D | display-authors = 2 | title = The dimensions of DNA in solution | journal = J Mol Biol | volume = 152 | issue = 1 | pages = 153–161 | year = 1981 | pmid = 7338906 | doi = 10.1016/0022-2836(81)90099-1 }} | Mandelkern, M,; Elias, J,; et al. (1981), "The dimensions of DNA in solution", J Mol Biol, 152 (1): 153–161, doi:10.1016/0022-2836(81)90099-1, PMID 7338906CS1 maint: extra punctuation (link) |
Newspaper article | {{Citation | last = Smith | first = Joseph III | author-link = Joseph Smith III | title = Last Testimony of Sister Emma | newspaper = The Saints' Herald | publication-place = Plano, IL | volume = 26 | issue = 19 | date = October 1, 1879 | page = 289 | url = http://www.sidneyrigdon.com/dbroadhu/ IL/sain1872.htm#100179 }} | Smith, Joseph III (October 1, 1879), "Last Testimony of Sister Emma", The Saints' Herald, Plano, IL, 26 (19), p. 289 |
Conference paper | {{Citation | last = Sullivan | first = D.B. | contribution = Time and frequency measurement at NIST: The first 100 years | year = 2001 | title = 2001 IEEE Int'l Frequency Control Symp. | publisher = National Institute of Standards and Technology | contribution-url = http://tf.nist.gov/timefreq/general/pdf/1485.pdf | chapter-format = PDF }} | Sullivan, D.B. (2001), "Time and frequency measurement at NIST: The first 100 years" (PDF), 2001 IEEE Int'l Frequency Control Symp., National Institute of Standards and Technology |
Lecture | {{Citation | last = Habicht | first = Christian | contribution = Hellenistic Athens and her Philosophers | year = 1988 | title = David Magie Lecture, Princeton University Program in the History, Archaeology, and Religions of the Ancient World | publisher = Princeton University | page=14 }} | Habicht, Christian (1988), "Hellenistic Athens and her Philosophers", David Magie Lecture, Princeton University Program in the History, Archaeology, and Religions of the Ancient World, Princeton University, p. 14 |
Manuscript published in an edited compilation | {{Citation | last = Bidamon | first = Emma Smith | author-link = Emma Hale Smith | chapter = Letter to Emma S. Pilgrim | date = March 27, 1876 | editor-last = Vogel | editor-first = Dan | title = Early Mormon Documents | volume = 1 | publisher = Signature Books | publication-date = 1996 | isbn = 1-56085-072-8 }} | Bidamon, Emma Smith (March 27, 1876), "Letter to Emma S. Pilgrim", in Vogel, Dan (ed.), Early Mormon Documents, 1, Signature Books (published 1996), ISBN 1-56085-072-8 |
Work with an editor but no author | {{Citation | editor-last = Vogel | editor-first = Dan | title = Early Mormon Documents | volume = 1 | publisher = Signature Books | publication-date = 1996 | isbn = 1-56085-072-8 }} | Vogel, Dan, ed. (1996), Early Mormon Documents, 1, Signature Books, ISBN 1-56085-072-8 |
Encyclopedia article by a named author | {{Citation | last = Kramer | first = Martin | author-link = Martin Kramer | year=1999 | title = Bernard Lewis | editor-last = Boyd | editor-first = Kelley | encyclopedia = Encyclopedia of Historians and Historical Writing | volume = 1 | pages = 719–720 | location = London | publisher = Fitzroy Dearborn | url = http://www.geocities.com/martinkramerorg/BernardLewis.htm }} | Kramer, Martin (1999), "Bernard Lewis", in Boyd, Kelley (ed.), Encyclopedia of Historians and Historical Writing, 1, London: Fitzroy Dearborn, pp. 719–720 |
Encyclopedia article with no named author | {{Citation | title = Bernard Lewis | editor-last = Boyd | editor-first = Kelley | year = 1999 | encyclopedia = Encyclopedia of Historians and Historical Writing | volume = 1 | pages = 719–720 | publisher = Fitzroy Dearborn | location = London | url = http://www.geocities.com/martinkramerorg/BernardLewis.htm }} | Boyd, Kelley, ed. (1999), "Bernard Lewis", Encyclopedia of Historians and Historical Writing, 1, London: Fitzroy Dearborn, pp. 719–720 |
Manuscript edited and published in a journal | {{Citation | last = Knight | first = Joseph, Sr. | year = 1833 | editor-last = Jessee | editor-first = Dean | title = Joseph Knight's Recollection of Early Mormon History | journal = BYU Studies | volume = 17 | issue = 1 | publication-date = 1976 | page = 35 | url = https://byustudies.byu.edu/shop/PDFSRC/17.1Jessee.pdf }} | Knight, Joseph, Sr. (1833), Jessee, Dean (ed.), "Joseph Knight's Recollection of Early Mormon History" (PDF), BYU Studies (published 1976), 17 (1): 35 |
Manuscript written at one date and place, then published in a periodical at a different date and place with commentary by the editor. | {{Citation | last = Klingensmith | first = Philip | type = Affidavit | date = September 5, 1872 | place = Lincoln County, Nevada | title = Mountain Meadows Massacre | editor-last = Toohy | editor-first = Dennis J. | journal = Corinne Daily Reporter | publication-date = September 24, 1872 | publication-place = Corinne, Utah | volume = 5 | issue = 252 | page = 1 | url = http://udn.lib.utah.edu/u?/corinne,5359 }} | Klingensmith, Philip (September 5, 1872), written at Lincoln County, Nevada, Toohy, Dennis J. (ed.), "Mountain Meadows Massacre", Corinne Daily Reporter (Affidavit), Corinne, Utah (published September 24, 1872), 5 (252): 1 |
Press release with quotation | {{Citation | url = https://www.apple.com/pr/library/2010/04/05ipad.html | title = Apple Sells Over 300,000 iPads First Day | publisher = Apple Inc | accessdate = April 10, 2010 | quote = in the US as of midnight Saturday, April 3 | ref = none}} | Apple Sells Over 300,000 iPads First Day, Apple Inc, retrieved April 10, 2010, in the US as of midnight Saturday, April 3 |
{{Citation | inventor-last = | inventor-first = | inventorlink = | inventor2-last = | inventor2-first = | inventorlink2 = | publication-date = | issue-date = | title = | country-code = | description = | patent-number = | ref = }} |
|
United States patent with multiple inventors | {{Citation | inventor1-last = Degermark | inventor1-first = Mikael | inventor2-last = Brodnik | inventor2-first = Andrej | inventor3-last = Carlsson | inventor3-first = Svante | inventor4-last = Pink | inventor4-first = Stephen | title = Fast routing lookup system using complete prefix tree, bit vector, and pointers in a routing table for determining where to route IP datagrams | issue-date = 2001 | patent-number = 6266706 | country-code = US}} | Template:Citation/patent |
This template can generate a citation that can be combined with shortened footnotes or parenthetical referencing. It does this by creating an HTML anchor containing an ID. The special parameter |ref=harv
generates an ID suitable for Harvard referencing templates such as {{harv}} as specified in the next section; this is the default for the {{citation}} template.
To disable anchor generation, specify |ref=none
(in contrast, other Cite templates such as {{cite book}} and {{cite news}} do not create an anchor by default). You can also specify the ID directly, using the |ref=ID
parameter. For example, suppose an article's References section contains the markup:
{{Citation |author=Sigmund Freud |title=Civilization and Its Discontents |year=1930 |ref=CivDis}}
which generates the citation:
Then, the markup "([[#CivDis|Freud 1930]])
" generates a parenthetical reference "(Freud 1930)" containing a wikilink to the citation (try clicking on the wikilink).
IDs compatible with Harvard referencing templates such as {{harv}} are computed from the last names of the authors (or editors, if no authors are given) and the year of the cited source. For example, the markup "{{harv|Wright|Evans|1851|p=ix}}
" generates the Harvard reference "(Wright & Evans 1851, p. ix)", which wikilinks to the citation whose markup and appearance are shown below:
{{Citation |last1=Wright |first1=Thomas |last2=Evans |first2=R. H. |title=Historical and Descriptive Account of the Caricatures of James Gillray |location=London |publisher=Henry G. Bohn |year=1851 |oclc=59510372}}
In this example the {{citation}} template defines, and the {{harv}} template uses, the HTML ID "CITEREFWrightEvans1851
", composed by concatenating the string "CITEREF
" with the last names of the authors and the year. The {{harvid}} template can be used to generate such IDs, for example, {{harvid|Wright|Evans|1851}}
generates "Template:Harvid
".
Related methods which leave only a number in the text are to use the {{harvnb}} template enclosed in the html code, or to use the {{sfn}} template alone. The example above would be {{harvnb|Wright|Evans|1851|p=ix}}
or {{sfn|Wright|Evans|1851|p=ix}}
both of which generate a footnote, such as
The names of only the first four authors are used; other author names are not concatenated to the ID. If no author names are given, editor names are used instead. For patents, inventor names are used instead of authors or editors. If these names are not given, this template does not generate an anchor.
Last names are used, as specified by the parameters |last1=
(or |last=
), |last2=
, |last3=
, and |last4=
, and similarly for |editor1-last=
etc. and for |inventor1-last=
etc. If a full name is given but no last name is specified, this template falls back on the full name, but this usage is not recommended. For example, in "{{Citation | author = Sigmund Freud | title = The Ego and the Id | year = 1923}}
" no last name is given, so this citation cannot be combined with the Harvard reference "{{harv|Freud|1923}}
". To make these {{citation}} and {{harv}} invocations compatible, either replace "|author=Sigmund Freud
" with "|first=Sigmund
|last=Freud
", or add "|ref={{harvid|Freud|1923}}
" to the {{citation}} invocation, or add the same ref parameter (say, "|ref=EgoId
") to both the {{citation}} and the {{harv}} invocations.
Similarly, the year is used, as specified by |year=
. If no year is given, this template attempts to derive the year from |date=
(or, if no date is given, from |publication-date=
) by applying the MediaWiki § Time function. This heuristic works with many common date formats (American, International and ISO 8601 standard format YYYY-MM-DD as listed in WP:MOS), but may not work as expected with other formats, so when in doubt it may be safer to use |year=
. Note that if only a year, say 2005, is known you must use |year=2005
rather than |date=2005
.
Names, years, and hand-specified IDs must be chosen so that the IDs are unique within a page; otherwise the HTML will not conform to the W3C standards, and any references to the citations will not work reliably. For example, suppose a page contains the following two citations with {{harv}}-compatible IDs:
If these citations were altered to say "2008" rather than "2008a" and "2008b", the resulting page would not work, because the two different citations would both attempt to use the ID "CITEREFMontesHalterman2008
". To avoid this problem, distinguish the citations by appending suffixes to the years, e.g. "|year=2008a
" and "|year=2008b
", as was done above. Any Harvard references to these citations should use years with the same suffixes.
It is good practice to verify that a page does not contain duplicate IDs by using the W3C Markup Validation Service; see External links.
See Wikipedia:Citing sources § Citation templates and tools for a list of tools that can help create a reference in the "citation" format.
This template data section needs to be edited. It includes deprecated parameters and does not include parameters that were added in the Lua updates. It also includes a mix of patent and non-patent parameters. |
TemplateData for Citation
The Citation template generates a citation for a book, periodical, contribution in a collective work, patent, or a web page. It determines the citation type by examining which parameters are used.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Last name | last author author1 authors last1 | The surname of the author; don't wikilink, use 'authorlink'; can suffix with a numeral to add additional authors | Line | suggested |
First name | first first1 | Given or first name, middle names, or initials of the author; don't wikilink, use 'authorlink'; can suffix with a numeral to add additional authors | Line | suggested |
title of source | title | Title of source; displays in italics. | String | required |
date of source | date | Full date of source being referenced in the same format as other publication dates in the citations.[1] Do not wikilink. Displays after the authors and enclosed in parentheses. If there is no author, then displays after publisher. | String | optional |
url of source | url | URL of an online location where the text of the publication can be found. | String | optional |
country-code | country-code | no description | String | optional |
country | country | no description | String | optional |
publication-number | publication-number | no description | String | optional |
patent-number | patent-number | no description | String | optional |
number | number | no description | String | optional |
description | description | no description | String | optional |
status | status | no description | String | optional |
publication-date | publication-date | no description | String | optional |
pubdate | pubdate | no description | String | optional |
issue-date | issue-date | no description | String | optional |
gdate | gdate | no description | String | optional |
Year of publication | year | Year of the source being referenced; recommended only when date parameter format is YYYY-MM-DD and a CITEREF disambiguator is needed | Number | optional |
fdate | fdate | no description | String | optional |
pridate | pridate | no description | String | optional |
assign1 | assign1 | no description | String | optional |
assign2 | assign2 | no description | String | optional |
separator | separator | no description | String | optional |
postscript | postscript | no description | String | optional |
author-separator | author-separator | no description | String | optional |
author-mask | author-mask | no description | String | optional |
authormask | authormask | no description | String | optional |
inventor-last | inventor-last inventor-surname inventor-last1 inventor invent-1 invent1 inventor1-surname | no description | String | optional |
inventor2-last | inventor2-last inventor2 invent2 inventor2-surname | no description | String | optional |
inventor3-last | inventor3-last inventor3 invent3 inventor3-surname | no description | String | optional |
inventor4-last | inventor4-last inventor4 invent4 inventor4-surname | no description | String | optional |
inventor-first | inventor-first inventor1-first inventor-given inventor1-given | no description | String | optional |
inventor2-first | inventor2-first inventor2-given | no description | String | optional |
inventor3-first | inventor3-first inventor3-given | no description | String | optional |
inventor4-first | inventor4-first inventor4-given | no description | String | optional |
inventorlink | inventorlink inventorlink1 | no description | String | optional |
inventorlink2 | inventorlink2 | no description | String | optional |
inventorlink3 | inventorlink3 | no description | String | optional |
inventorlink4 | inventorlink4 | no description | String | optional |
Last name 2 | last2 author2 surname2 | The surname of the second author; don't wikilink, use 'authorlink2'. | Line | optional |
First name 2 | first2 given2 | Given or first name, middle names, or initials of the second author; don't wikilink. | Line | optional |
Last name 3 | last3 author3 surname3 | The surname of the third author; don't wikilink, use 'authorlink3'. | Line | optional |
First name 3 | first3 given3 | Given or first name, middle names, or initials of the third author; don't wikilink. | Line | optional |
Last name 4 | last4 author4 surname4 | The surname of the forth author; don't wikilink, use 'authorlink4'. | Line | optional |
First name 4 | first4 given4 | Given or first name, middle names, or initials of the forth author; don't wikilink. | Line | optional |
Last name 5 | last5 author5 surname5 | The surname of the fifth author; don't wikilink, use 'authorlink5'. | Line | optional |
First name 5 | first5 given5 | Given or first name, middle names, or initials of the fifth author; don't wikilink. | Line | optional |
Last name 6 | last6 author6 surname6 | The surname of the sixth author; don't wikilink, use 'authorlink6'. | Line | optional |
First name 6 | first6 | Given or first name, middle names, or initials of the sixth author; don't wikilink. | Line | optional |
Last name 7 | last7 author7 surname7 | The surname of the seventh author; don't wikilink, use 'authorlink7'. | Line | optional |
First name 7 | first7 given7 | Given or first name, middle names, or initials of the seventh author; don't wikilink. | Line | optional |
Last name 8 | last8 author8 surname8 | The surname of the eighth author; don't wikilink, use 'authorlink8'. | Line | optional |
First name 8 | first8 given8 | Given or first name, middle names, or initials of the eighth author; don't wikilink. | Line | optional |
Last name 9 | last9 author9 surname9 | The surname of the ninth author; don't wikilink, use 'authorlink9'. If nine authors are defined, then only eight will show and 'et al.' will show in place of the last author. | Line | optional |
First name 9 | first9 given9 | Given or first name, middle names, or initials of the ninth author; don't wikilink. | Line | optional |
author-link | author-link | no description | String | optional |
author1-link | author1-link | no description | String | optional |
authorlink | authorlink | no description | String | optional |
authorlink1 | authorlink1 | no description | String | optional |
author2-link | author2-link | no description | String | optional |
authorlink2 | authorlink2 | no description | String | optional |
author3-link | author3-link | no description | String | optional |
authorlink3 | authorlink3 | no description | String | optional |
author4-link | author4-link | no description | String | optional |
authorlink4 | authorlink4 | no description | String | optional |
author5-link | author5-link | no description | String | optional |
authorlink5 | authorlink5 | no description | String | optional |
author6-link | author6-link | no description | String | optional |
authorlink6 | authorlink6 | no description | String | optional |
author7-link | author7-link | no description | String | optional |
authorlink7 | authorlink7 | no description | String | optional |
author8-link | author8-link | no description | String | optional |
authorlink8 | authorlink8 | no description | String | optional |
author9-link | author9-link | no description | String | optional |
authorlink9 | authorlink9 | no description | String | optional |
coauthor | coauthor | no description | String | optional |
coauthors | coauthors | no description | String | optional |
Original year | orig-year origyear | Original year of publication; provide specifics | Number | optional |
month | month | no description | String | optional |
trans_chapter | trans_chapter | no description | String | optional |
Translated title | trans-title trans_title | An English language title, if the source cited is in a foreign language; 'language' is recommended | Content | optional |
Type | type | Additional information about the media type of the source; format in sentence case | Content | optional |
Archive URL | archive-url archiveurl | The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archivedate' | Line | optional |
Dead URL | dead-url deadurl | If set to 'no', the title display is adjusted; useful for when the URL is archived preemptively but still live | Line | optional |
Series | series version | Series identifier when the source is part of a series, such as a book series or a journal; alias of 'version' | Content | optional |
periodical | periodical | no description | String | optional |
newspaper | newspaper | no description | String | optional |
magazine | magazine | no description | String | optional |
work | work journal encyclopedia encyclopaedia dictionary | no description | String | optional |
Volume | volume | For one publication published in several volumes | Line | suggested |
Issue | issue | Issue identifier when the source is part of a series that is published periodically | Line | optional |
Page | page | Page in the source that supports the content; displays after 'p.' | Line | optional |
Pages | pages | Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.' | Line | suggested |
At | at | May be used instead of 'page' or 'pages' where a page number is inappropriate or insufficient | Line | optional |
No pp | nopp | Set to 'y' to suppress the 'p.' or 'pp.' display with 'page' or 'pages' when inappropriate (such as 'Front cover') | Line | optional |
Chapter | chapter | The chapter heading of the source | String | optional |
contribution | contribution | no description | String | optional |
chapter-url | chapter-url | no description | String | optional |
chapterurl | chapterurl | no description | String | optional |
contribution-url | contribution-url | no description | String | optional |
chapter-format | chapter-format | no description | String | optional |
others | others | no description | String | optional |
Edition | edition | When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.' | Line | optional |
Location of publication | place location | Geographical place of publication; usually not wikilinked | String | optional |
Place of publication | publication-place | Publication place shows after title; if 'place' or 'location' are also given, they are displayed before the title prefixed with 'written at' | Content | optional |
Publisher | publisher | Name of the publisher; displays after title | Content | optional |
Language | language | The language in which the source is written, if not English; use the full language name; do not use icons or templates | Content | optional |
in | in | no description | String | optional |
Format | format | Format of the work referred to by 'url' ('url' is required when using 'format'); examples: PDF, DOC, XLS; do not specify HTML | Content | optional |
arXiv identifier | arxiv | An identifier for arXive electronic preprints of scientific papers | Line | optional |
ASIN | asin ASIN | Amazon Standard Identification Number; 10 characters | Line | optional |
ASIN TLD | asin-tld | ASIN top-level domain for Amazon sites other than the US | Line | optional |
Bibcode | bibcode | Bibliographic Reference Code (REFCODE); 19 characters | Line | optional |
biorXiv | biorxiv | biorXiv identifier; 6 digits | Line | optional |
CiteSeerX | citeseerx | CiteSeerX identifier; found after the 'doi=' query parameter | Line | optional |
DOI | doi DOI | Digital Object Identifier; begins with '10.' | String | optional |
doi_inactivedate | doi_inactivedate | no description | String | optional |
DOI broken date | doi-broken-date | The date that the DOI was determined to be broken | Date | optional |
ISBN | isbn | International Standard Book Number; use the 13-digit ISBN where possible | Line | optional |
ISSN | issn | International Standard Serial Number (print); 8 characters; usually split into two groups of four using a hyphen | Line | optional |
eISSN | eissn | International Standard Serial Number (online); 8 characters; usually split into two groups of four using a hyphen | Line | optional |
jfm code | jfm | Jahrbuch über die Fortschritte der Mathematik classification code | Line | optional |
JSTOR | jstor | JSTOR identifier | Line | optional |
LCCN | lccn | Library of Congress Control Number | Line | optional |
MR | mr | Mathematical Reviews identifier | Line | optional |
OCLC | oclc | Online Computer Library Center number | Number | optional |
OL | ol | Open Library identifier | Line | optional |
OSTI | osti | Office of Scientific and Technical Information identifier | Line | optional |
PMC | pmc | PubMed Center article number | Number | optional |
PMID | pmid | PubMed Unique Identifier | Line | optional |
RFC | rfc | Request for Comments number | Number | optional |
SSRN | ssrn | Social Science Research Network | Line | optional |
Zbl | zbl | Zentralblatt MATH journal identifier | Line | optional |
id | id | A unique identifier used where none of the specialized ones are applicable | Line | optional |
Quote | quote | Relevant text quoted from the source; displays last, enclosed in quotes; needs to include terminating punctuation | Content | optional |
Ref | ref | An anchor identifier; can be made the target of wikilinks to full references; special value 'harv' generates an anchor suitable for the harv and sfn templates | Line | optional |
URL access date | access-date accessdate | The full date when the original URL was accessed; do not wikilink | Date | optional |
Lay URL | laysummary layurl lay-url | URL link to a non-technical summary or review of the source | Line | optional |
Lay source | lay-source laysource | Name of the source of the laysummary; displays in italics, preceded by an en dash | String | optional |
Lay date | lay-date laydate | Date of the summary; displays in parentheses | Date | optional |
author-name-separator | author-name-separator | no description | String | optional |
lastauthoramp | lastauthoramp | no description | String | optional |
display-authors | display-authors | no description | String | optional |
archivedate | archivedate | no description | String | optional |
Editor last name | editor-last editor editor-surname editor-last1 editor-surname1 editor1 editor1-last editor1-surname editors | The surname of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors | Unknown | optional |
Editor first name | editor-first editor-first1 editor-given1 editor1-first editor1-given | The surname of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors | Unknown | optional |
Editor last name 2 | editor2-last editor2 | The surname of the second editor; don't wikilink, use 'editor2-link'. | Line | optional |
Editor first name 2 | editor2-first editor2-given | Given or first name, middle names, or initials of the second editor; don't wikilink. | Line | optional |
Editor last name 3 | editor3-last editor3 | The surname of the third editor; don't wikilink, use 'editor3-link'. | Line | optional |
Editor first name 3 | editor3-first editor3-given | Given or first name, middle names, or initials of the third editor; don't wikilink. | Line | optional |
Editor last name 4 | editor4-last editor4 | The surname of the fourth editor; don't wikilink, use 'editor4-link'. | Line | optional |
Editor first name 4 | editor4-first editor4-given | Given or first name, middle names, or initials of the fourth editor; don't wikilink. | Line | optional |
Editor last name 5 | editor5-last editor5 | The surname of the fifth editor; don't wikilink, use 'editor5-link'. | Line | optional |
Editor first name 5 | editor5-first editor5-given | Given or first name, middle names, or initials of the fifth editor; don't wikilink. | Line | optional |
Editor last name 6 | editor6-last editor6 | The surname of the sixth editor; don't wikilink, use 'editor6-link'. | Line | optional |
Editor first name 6 | editor6-first editor6-given | Given or first name, middle names, or initials of the sixth editor; don't wikilink. | Line | optional |
Editor last name 7 | editor7-last editor7 | The surname of the seventh editor; don't wikilink, use 'editor7-link'. | Line | optional |
Editor first name 7 | editor7-first editor7-given | Given or first name, middle names, or initials of the seventh editor; don't wikilink. | Line | optional |
Editor last name 8 | editor8-last editor8 | The surname of the eighth editor; don't wikilink, use 'editor8-link'. | Line | optional |
Editor first name 8 | editor8-first editor8-given | Given or first name, middle names, or initials of the eighth editor; don't wikilink. | Line | optional |
Editor last name 9 | editor9-last editor9 | The surname of the ninth editor; don't wikilink, use 'editor9-link'. | Line | optional |
Editor first name 9 | editor9-first editor9-given | Given or first name, middle names, or initials of the ninth editor; don't wikilink. | Line | optional |
editor-link | editor-link | no description | String | optional |
editor1-link | editor1-link | no description | String | optional |
editor2-link | editor2-link | no description | String | optional |
editor3-link | editor3-link | no description | String | optional |
editor4-link | editor4-link | no description | String | optional |
Translator last name | translator-last translator translator-last1 translator1 translator1-last | The surname of the translator; don't wikilink, use 'translator-link'; can suffix with a numeral to add additional translators. | String | optional |
Translator first name | translator-first translator1-first translator-first1 | Given or first name, middle names, or initials of the translator; don't wikilink, use 'translator-link'; can suffix with a numeral to add additional translators. | String | optional |
Translator link | translator-link translator-link1 translator1-link | Title of existing Wikipedia article about the translator; can suffix with a numeral to add additional translators. | Page name | optional |
Translator last name 2 | translator-last2 translator2 translator2-last | The surname of the second translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 2 | translator-first2 translator2-first | Given or first name, middle names, or initials of the second translator; don't wikilink, use 'translator-link'. | String | optional |
Translator last name 3 | translator-last3 translator3 translator3-last | The surname of the third translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 3 | translator-first3 translator3-first | Given or first name, middle names, or initials of the third translator; don't wikilink, use 'translator-link'. | String | optional |
Translator last name 4 | translator-last4 translator4 translator4-last | The surname of the fourth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 4 | translator-first4 translator4-first | Given or first name, middle names, or initials of the fourth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator last name 5 | translator-last5 translator5 translator5-last | The surname of the fifth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 5 | translator-first5 translator5-first | Given or first name, middle names, or initials of the fifth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator last name 6 | translator-last6 translator6 translator6-last | The surname of the sixth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 6 | translator-first6 translator6-first | Given or first name, middle names, or initials of the sixth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator last name 7 | translator-last7 translator7 translator7-last | The surname of the seventh translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 7 | translator-first7 translator7-first | Given or first name, middle names, or initials of the seventh translator; don't wikilink, use 'translator-link'. | String | optional |
Translator last name 8 | translator-last8 translator8 translator8-last | The surname of the eighth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 8 | translator-first8 translator8-first | Given or first name, middle names, or initials of the eighth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator last name 9 | translator-last9 translator9 translator9-last | The surname of the ninth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator first name 9 | translator-first9 translator9-first | Given or first name, middle names, or initials of the ninth translator; don't wikilink, use 'translator-link'. | String | optional |
Translator link 2 | translator-link2 translator2-link | Title of existing Wikipedia article about the second translator. | Page name | optional |
Translator link 3 | translator-link3 translator3-link | Title of existing Wikipedia article about the third translator. | Page name | optional |
Translator link 4 | translator-link4 translator4-link | Title of existing Wikipedia article about the fourth translator. | Page name | optional |
Translator link 5 | translator-link5 translator5-link | Title of existing Wikipedia article about the fifth translator. | Page name | optional |
Translator link 6 | translator-link6 translator6-link | Title of existing Wikipedia article about the sixth translator. | Page name | optional |
Translator link 7 | translator-link7 translator7-link | Title of existing Wikipedia article about the seventh translator. | Page name | optional |
Translator link 8 | translator-link8 translator8-link | Title of existing Wikipedia article about the eighth translator. | Page name | optional |
Translator link 9 | translator-link9 translator9-link | Title of existing Wikipedia article about the ninth translator. | Page name | optional |
This template produces COinS metadata; see COinS in Wikipedia for background information.
Template:Wikipedia help pages