Template:Citation

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:Citation/doc.

This template may be used for creating citations to books, journal articles and websites.

The template automatically sets the following categories:

Usage


{{Citation
 |author =
 |last =
 |first =
 |authorlink =
 |author2 =
 |last2 =
 |first2 =
 |authorlink2 =
 |author3 =
 |last3 =
 |first3 =
 |authorlink3 =
 |author4 =
 |last4 =
 |first4 =
 |authorlink4 =
 |author5 =
 |last5 =
 |first5 =
 |authorlink5 =
 |coauthors =
 |quotee =
 |chapter =
 |chapterurl =
 |entry =
 |trans-chapter =
 |magazine =
 |newspaper =
 |journal =
 |periodical =
 |work =
 |blog =
 |site =
 |title =
 |trans-title =
 |series =
 |seriesvolume =
 |url =
 |archiveurl =
 |edition =
 |location =
 |publisher =
 |month =
 |year =
 |year_published =
 |date =
 |format =
 |genre =
 |language =
 |version =
 |volume =
 |issue =
 |others =
 |page =
 |pages =
 |pageurl =
 |sectionurl =
 |bibcode =
 |doi =
 |isbn =
 |issn =
 |jstor =
 |lccn =
 |oclc =
 |pmid =
 |ssrn =
 |id =
 |passage =
}}

Category:Main message boxesCategory:Intricate templates

Template parameters

ParameterDescriptionDefaultStatus
authorFirst author's full nameFull name of the first author. Do not use in combination with last and first!emptyoptional
lastFirst author's last nameLast name of the first author. Do not use in combination with author!emptyoptional
firstFirst author's first nameFirst name of the first author. Do not use in combination with author!emptyoptional
authorlinkFirst author's Wikipedia pageemptyoptional
author2Second author's full nameFull name of the second author. Do not use in combination with last2 and first2!emptyoptional
last2Second author's last nameLast name of the second author. Do not use in combination with author2!emptyoptional
first2Second author's first nameFirst name of the second author. Do not use in combination with author2!emptyoptional
authorlink2Second author's Wikipedia pageemptyoptional
author3Third author's full nameFull name of the third author. Do not use in combination with last3 and first3!emptyoptional
last3Third author's last nameLast name of the third author. Do not use in combination with author3!emptyoptional
first3Third author's first nameFirst name of the third author. Do not use in combination with author3!emptyoptional
authorlink3Third author's Wikipedia pageemptyoptional
author4Fourth author's full nameFull name of the fourth author. Do not use in combination with last4 and first4!emptyoptional
last4Fourth author's last nameLast name of the fourth author. Do not use in combination with author4!emptyoptional
first4Fourth author's first nameFirst name of the fourth author. Do not use in combination with author4!emptyoptional
authorlink4Fourth author's Wikipedia pageemptyoptional
author5Fifth author's full nameFull name of the fifth author. Do not use in combination with last5 and first5!emptyoptional
last5Fifth author's last nameLast name of the fifth author. Do not use in combination with author5!emptyoptional
first5Fifth author's first nameFirst name of the fifth author. Do not use in combination with author5!emptyoptional
authorlink5Fifth author's Wikipedia pageemptyoptional
coauthorsCo-authorsThe names of one or more coauthors, separated with semicolonsemptyoptional
quoteeQuoteeemptyoptional
chapteremptyoptional
chapterurlemptyoptional
entryemptyoptional
trans-chapteremptyoptional
magazineemptyoptional
newspaperemptyoptional
journalemptyoptional
periodicalemptyoptional
workemptyoptional
blogemptyoptional
siteemptyoptional
titleTitleThe title of the workemptyrequired
trans-titleemptyoptional
seriesemptyoptional
seriesvolumeemptyoptional
urlemptyoptional
archiveurlemptyoptional
editionemptyoptional
locationemptyoptional
publisheremptyoptional
monthemptyoptional
yearemptyoptional
year_publishedemptyoptional
dateemptyoptional
formatemptyoptional
genreemptyoptional
languageemptyoptional
versionemptyoptional
volumeemptyoptional
issueemptyoptional
othersemptyoptional
pageemptyoptional
pagesemptyoptional
pageurlemptyoptional
sectionurlemptyoptional
bibcodeemptyoptional
doiemptyoptional
isbn
ISBN
emptyoptional
issnemptyoptional
jstoremptyoptional
lccnemptyoptional
oclcemptyoptional
pmidemptyoptional
ssrnemptyoptional
idemptyoptional
passage
quote
text
Quotationthe text of the quotation to be referenced in the citationemptyoptional
atemptydeprecated
contributionemptydeprecated
contribution-urlemptydeprecated
chapter-urlemptydeprecated
placeemptydeprecated
inemptydeprecated
access-dateemptydeprecated
laysummaryemptydeprecated
laydateemptydeprecated
refemptydeprecated
publication-dateemptydeprecated
publication-placeemptydeprecated
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Category:Templates using TemplateData

This template may be used for creating citations to books, journal articles and websites.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
access-date

Unknowndeprecated
archiveurl

Unknownoptional
at

Unknowndeprecated
First author's full nameauthor

Full name of the first author. Do not use in combination with the "last" and "first" parameters!

Unknownoptional
Second author's full nameauthor2

Full name of the second author. Do not use in combination with the "last2" and "first2" parameters!

Unknownoptional
Third author's full nameauthor3

Full name of the third author. Do not use in combination with the "last3" and "first3" parameters!

Unknownoptional
Fourth author's full nameauthor4

Full name of the fourth author. <em >Do not use in combination with <var style="padding-right: 1px;" ><code>last4</code></var> and <var style="padding-right: 1px;" title="Fourth author's first name"><code>first4</code></var>!</em>

Unknownoptional
Fifth author's full nameauthor5

Full name of the fifth author. Do not use in combination with the "last5" and "first5" parameters!

Unknownoptional
First author's Wikipedia pageauthorlink

Unknownoptional
Second author's Wikipedia pageauthorlink2

Unknownoptional
Third author's Wikipedia pageauthorlink3

Unknownoptional
Fourth author's Wikipedia pageauthorlink4

Unknownoptional
Fifth author's Wikipedia pageauthorlink5

Unknownoptional
bibcode

Unknownoptional
blog

Unknownoptional
chapter

Unknownoptional
chapter-url

Unknowndeprecated
chapterurl

Unknownoptional
Co-authorscoauthors

The names of one or more coauthors, separated with semicolons

Unknownoptional
contribution

Unknowndeprecated
contribution-url

Unknowndeprecated
date

Unknownoptional
doi

Unknownoptional
edition

Unknownoptional
entry

Unknownoptional
First author's first namefirst

First name of the first author. Do not use in combination with the "author" parameter!

Unknownoptional
Second author's first namefirst2

First name of the second author. Do not use in combination with the "author2" parameter!

Unknownoptional
Third author's first namefirst3

First name of the third author. Do not use in combination with the "author3" parameter!

Unknownoptional
Fourth author's first namefirst4

First name of the fourth author. Do not use in combination with the "author4" parameter!

Unknownoptional
Fifth author's first namefirst5

First name of the fifth author. Do not use in combination with the "author5" parameter!

Unknownoptional
format

Unknownoptional
genre

Unknownoptional
id

Unknownoptional
in

Unknowndeprecated
isbn ISBN

Unknownoptional
issn

Unknownoptional
issue

Unknownoptional
journal

Unknownoptional
jstor

Unknownoptional
language

Unknownoptional
First author's last namelast

Last name of the first author. Do not use in combination with the "author" parameter!

Unknownoptional
Second author's last namelast2

Last name of the second author. Do not use in combination with the "author2" parameter!

Unknownoptional
Third author's last namelast3

Last name of the third author. Do not use in combination with the "author3" parameter!

Unknownoptional
Fourth author's last namelast4

Last name of the fourth author. Do not use in combination with the "author4" parameter!

Unknownoptional
Fifth author's last namelast5

Last name of the fifth author. Do not use in combination with the "author5" parameter!

Unknownoptional
laydate

Unknowndeprecated
laysummary

Unknowndeprecated
lccn

Unknownoptional
location

Unknownoptional
magazine

Unknownoptional
month

Unknownoptional
newspaper

Unknownoptional
oclc

Unknownoptional
others

Unknownoptional
page

Unknownoptional
pages

Unknownoptional
pageurl

Unknownoptional
Quotationpassage quote text

the text of the quotation to be referenced in the citation

Stringoptional
periodical

Unknownoptional
place

Unknowndeprecated
pmid

Unknownoptional
publication-date

Unknowndeprecated
publication-place

Unknowndeprecated
publisher

Unknownoptional
Quoteequotee

Unknownoptional
ref

Unknowndeprecated
sectionurl

Unknownoptional
series

Unknownoptional
seriesvolume

Unknownoptional
site

Unknownoptional
ssrn

Unknownoptional
Titletitle

The title of the work

Stringrequired
trans-chapter

Unknownoptional
trans-title

Unknownoptional
url

Unknownoptional
version

Unknownoptional
volume

Unknownoptional
work

Unknownoptional
year

Unknownoptional
year_published

Unknownoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Relies on:

Examples

{{Citation|author=Bryan A. Garner|authorlink=Bryan A. Garner|title=A Dictionary of Modern Legal Usage|edition=3rd|location=New York, N.Y.; Oxford|publisher={{W|Oxford University Press}}|year=2011|isbn=978-0-19-538420-8}}

renders as:

Bryan A. Garner (2011) A Dictionary of Modern Legal Usage, 3rd edition, New York, N.Y.; Oxford: Oxford University Press, ISBN 978-0-19-538420-8


{{Citation|author=A. R. Dunkel|author2=J. S. Zijlstra|author3=C. P. Groves|title=Giant Rabbits, Marmosets, and British Comedies: Etymology of Lemur Names, Part 1|url=http://www.aeecl.org/lemurnews/lemurnews2011_16.pdf|archiveurl=https://web.archive.org/web/20140324170841/http://www.aeecl.org/lemurnews/lemurnews2011_16.pdf|archivedate=24 March 2014|journal=Lemur News|volume=16|date=2011–2012|pages=64–70}}

renders as:

A. R. Dunkel; J. S. Zijlstra; C. P. Groves (2011–2012), “Giant Rabbits, Marmosets, and British Comedies: Etymology of Lemur Names, Part 1”, in Lemur News, volume 16, archived from the original on 24 March 2014, pages 64–70


{{Citation|author=Jim Fay|title=The Choctaw Expression ‘Okeh’ and the Americanism ‘Okay’|url=http://www.illinoisprairie.info/chocokeh.htm|archiveurl=https://web.archive.org/web/20101224185657/http://www.illinoisprairie.info/chocokeh.htm|archivedate=24 December 2010|work=Illinoisprairie.info|date=16 September 2009}}

renders as:

Jim Fay (16 September 2009), “The Choctaw Expression ‘Okeh’ and the Americanism ‘Okay’”, in Illinoisprairie.info, archived from the original on 24 December 2010

See also

Category:Templates using an unknown approach for internationalisation

Sample templates

Books

Most commonly used parameters
{{citation|author=|authorlink=|coauthors=|chapter=|editor=|editors=|title=|url=|archiveurl=|archivedate=|edition=|location=|publisher=|year=|volume=|page=|pages=|pageurl=|section=|isbn=|oclc=|quote=}}
All available parameters
{{citation|author=|last=|first=|authorlink=|author2=|last2=|first2=|authorlink2=|author3=|last3=|first3=|authorlink3=|author4=|last4=|first4=|authorlink4=|author5=|last5=|first5=|authorlink5=|coauthors=|quotee=|chapter=|trans-chapter=|chapterurl=|entry=|trans-entry=|editor=|editors=|title=|trans-title=|series=|seriesvolume=|url=|archiveurl=|archivedate=|edition=|location=|publisher=|month=|year=|year_published=|date=|genre=|language=|volume=|others=|page=|pages=|pageurl=|section=|sectionurl=|isbn=|oclc=|id=|quote=}}

Certain basic parameters can be used in the template without any named parameters, as follows:

#* {{citation|[year]|[author]|[title]|[url]|[page]|[quote]}}

This will not work if any of the parameters contains an equals ("=") sign. The value of any parameter containing an equals sign must be surrounded by <nowiki> tags, like this: "<nowiki>http://foo.com?id=bar</nowiki>". Alternatively, use a named parameter such as url.

Journal articles

Most commonly used parameters
{{citation|author=|authorlink=|title=|url=|archiveurl=|archivedate=|journal=|volume=|issue=|location=|publisher=|issn=|oclc=|date=|page=|pages=|pageurl=|quote=}}
All available parameters
{{citation|author=|last=|first=|authorlink=|author2=|last2=|first2=|authorlink2=|author3=|last3=|first3=|authorlink3=|author4=|last4=|first4=|authorlink4=|author5=|last5=|first5=|authorlink5=|coauthors=|quotee=|title=|trans-title=|url=|archiveurl=|archivedate=|editor=|editors=|journal=|trans-work=|format=|language=|version=|volume=|issue=|others=|edition=|location=|publisher=|bibcode=|doi=|issn=|jstor=|lccn=|oclc=|pmid=|ssrn=|id=|date=|month=|year=|year_published=|accessdate=|page=|pages=|pageurl=|section=|quote=}}

Websites

Most commonly used parameters
{{citation|author=|authorlink=|title=|url=|archiveurl=|archivedate=|work=|publisher=|date=|accessdate=|quote=}}
All available parameters
{{citation|author=|last=|first=|authorlink=|author2=|last2=|first2=|authorlink2=|author3=|last3=|first3=|authorlink3=|author4=|last4=|first4=|authorlink4=|author5=|last5=|first5=|authorlink5=|coauthors=|quotee=|editor=|editors=|title=|trans-title=|entry=|trans-entry=|work=|trans-work=|url=|archiveurl=|archivedate=|edition=|format=|language=|location=|publisher=|date=|month=|year=|year_published=|accessdate=|volume=|page=|pages=|pageurl=|section=|quote=}}

Parameters

All parameters are optional except for those marked "Mandatory", and may contain inline interwiki or external links as needed.

Parameter Description
Applicable to all works
author
or
last and first
The author's name. Use either author, or last and first, not both. Additional authors can be added using the parameters author2 to author5, or last2 and first2 to last5 and first5.
authorlink The name of an English Wikipedia article about the author, which will be linked to the author's name. Additional articles can be linked to other authors' names using the parameters authorlink2 to authorlink5. Do not add the prefix ":en:" or "w:".

Alternatively, link the author's name directly, like this: "author=[[w:Charles Butler (lawyer)|Charles Butler]]" or "author={{w|Edward Coke}}".

coauthors The names of one or more coauthors. If there is more than one, separate the names with semicolons.
quotee The name of the person being quoted, if the whole passage quoted is a quotation of someone other than the author.
editor or editors The name of one or more editors of the work.
series and seriesvolume The series that the work belongs to, and the volume number of the work within the series.
url The URL or web address of a website where the full text of the work can be accessed. Do not link to any website that has content in breach of copyright.
archiveurl and archivedate The URL or web address of a webpage on a website such as the Internet Archive or Perma.cc at which the webpage has been archived, and the date on which the webpage was archived. Both archiveurl and archivedate must be used together.
edition The edition of the work. It is usually not necessary to indicate the first or only edition of a work.
location The location(s) where the work was published. If more than one location is stated, separate the locations with semicolons, like this: "London; New York, N.Y.".
publisher The name of one or more publishers of the work. If more than one publisher is stated, separate the names with semicolons.
(month and) year
or
date
Mandatory: the (month and) year, or date, of publication of the work.
year_published If year is used to state the year when the original version of the work was published, year_published can be used to state the year in which the version quoted from was published, for example, "|year=1665|year_published=2005".
format The format of the work, for example:
  • For a journal article: "PDF".
  • For a website: "blog" or "PDF".
genre The genre of the work.
language The language that the work is written in. It is unnecessary to indicate the language if the work is written in English.
volume If the work is one of a set consisting of multiple volumes, the volume number of the work referred to.
others Other information about the work.
page and/or pages The page number or range of page numbers referred to. The parameters page and pages can be used together to indicate that the citation refers to, for example, "page 3 of 10". If pages is used alone it can be used to indicate a range of pages. For example, "pages=1–2" will display "pages 1–2". Use an en dash to separate the page numbers in the range.
pageurl The URL or web address of the webpage containing the page of the work referred to. The page number(s) will be linked to this webpage.
section If the page of the work referred to has no number (for example, "frontispiece" or "title page"), use this parameter to refer to it. The word "page" or "pages" will not be displayed.
sectionurl The URL or web address of the webpage containing the section of the work referred to. The section number will be linked to this webpage.
quote
or
passage
A quotation from the work that you wish to quote.
Books
chapter
or
entry
The name of the chapter of, or entry in, the book referred to. You can either specify a chapter number (for example, "chapter=7") or a chapter title (for example, "chapter=Introduction").
trans-chapter
or
trans-entry
If the chapter of, or entry in, the work is not in English, one of these parameters can be used to provide an English translation of the chapter or entry.
chapterurl The URL or web address of a website where the full text of the chapter of, or entry in, the book can be accessed.
title Mandatory: the title of the book.
trans-title If the title of the book is not in English, this parameter can be used to provide an English translation of the title.
isbn, oclc or id The International Standard Book Number (ISBN) or Online Computer Library Center (OCLC) number (which can be looked up at the WorldCat website) of the book. If the book's ISBN number is stated, it is usually not necessary to indicate its OCLC number.

Use id for an identifier other than the ones listed above.

Journal articles
title The title of the journal article.
trans-title If the title of the journal article is not in English, use this parameter to provide an English translation of the title.
journal Mandatory: the name of the journal. The parameter names magazine, periodical and work may also be used.
trans-work If the name of the journal is not in English, this parameter can be used to provide an English translation of the name.
version The version of the journal article quoted.
issue The issue number of the journal referred to. For example, if the issue is "volume 1, number 3", then type "issue=3".
bibcode, doi, issn, jstor, lccn, oclc, pmid, ssrn or id The Bibcode, digital object identifier (DOI), JSTOR number, Library of Congress Control Number (LCCN), Online Computer Library Center (OCLC) number (which can be looked up at the WorldCat website), PubMed Identifier (PMID), and/or Social Sciences Research Network (SSRN) number of the journal article, and/or the International Standard Serial Number (ISSN) of the journal.

Use id for an identifier other than the ones listed above.

Websites
title
or
entry
The title of the webpage.

Use |entry= if you wish the title to be linked directly to the URL or web address of the webpage. (If you use |title=, the URL appears as a superscript number after the name of the website containing the webpage which is specified using |work=.)

trans-title
or
trans-entry
If the title of the webpage is not in English, use one of these parameters to provide an English translation of the title.
work Mandatory: the name of the website containing the webpage. In addition to work, blog or site can also be used.
trans-work If the name of the website is not in English, this parameter can be used to provide an English translation of the name.
Category:Citation templatesCategory:Intricate templates
Category:Citation templates Category:Intricate templates Category:Main message boxes Category:Pages using duplicate arguments in template calls Category:Templates using TemplateData Category:Templates using an unknown approach for internationalisation