Template:Citation/doc

The Citation template is a versatile template for citing books, periodicals, contributions in collective works, patents, and web-sites. Its goal is to be an all-purpose citation template. It also has functionality to aid the use of the Harvard referencing style. The template allows author-date ("Harvard") citations in the main body of text to link to a full citation (generated by this template) in a "References" section at the end of the article via the Template:Harvard citation template. This template creates an HTML anchor to which the Harvard citation and related templates can link.

The template knows whether you are citing a book, periodical, or a chapter in a compilation, depending on which combination of parameters you use. For use with author-date systems such as the Harvard citation template, use of last and date parameters should be considered mandatory, where possible.

Template Data
{	"description": "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.", "params": { "1": {			"label": "1", "type": "string", "required": false },		"2": {			"label": "2", "type": "string", "required": false },		"3": {			"label": "3", "type": "string", "required": false },		"last": { "label": "author surname", "type": "string", "description": "surname of the author of the cited material" },		"first": { "label": "author given name", "type": "string", "description": "given name (first name) of the author of the cited material" },		"title": { "label": "title of source", "type": "string", "description": "Title of source; displays in italics." },		"date": { "label": "date of source", "type": "string", "description": "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." },		"url": { "label": "url of source", "type": "string", "description": "URL of an online location where the text of the publication can be found." },		"inventor-surname": { "label": "inventor-surname", "type": "string", "required": false },		"inventor1-surname": { "label": "inventor1-surname", "type": "string", "required": false },		"inventor-last": { "label": "inventor-last", "type": "string", "required": false },		"inventor1-last": { "label": "inventor1-last", "type": "string", "required": false },		"inventor": { "label": "inventor", "type": "string", "required": false },		"invent1": { "label": "invent1", "type": "string", "required": false },		"invent-1": { "label": "invent-1", "type": "string", "required": false },		"country-code": { "label": "country-code", "type": "string", "required": false },		"inventor2-surname": { "label": "inventor2-surname", "type": "string", "required": false },		"inventor2-last": { "label": "inventor2-last", "type": "string", "required": false },		"inventor2": { "label": "inventor2", "type": "string", "required": false },		"invent2": { "label": "invent2", "type": "string", "required": false },		"inventor3-surname": { "label": "inventor3-surname", "type": "string", "required": false },		"inventor3-last": { "label": "inventor3-last", "type": "string", "required": false },		"inventor3": { "label": "inventor3", "type": "string", "required": false },		"invent3": { "label": "invent3", "type": "string", "required": false },		"inventor4-surname": { "label": "inventor4-surname", "type": "string", "required": false },		"inventor4-last": { "label": "inventor4-last", "type": "string", "required": false },		"inventor4": { "label": "inventor4", "type": "string", "required": false },		"invent4": { "label": "invent4", "type": "string", "required": false },		"inventor-given": { "label": "inventor-given", "type": "string", "required": false },		"inventor1-given": { "label": "inventor1-given", "type": "string", "required": false },		"inventor-first": { "label": "inventor-first", "type": "string", "required": false },		"inventor1-first": { "label": "inventor1-first", "type": "string", "required": false },		"inventor2-given": { "label": "inventor2-given", "type": "string", "required": false },		"inventor2-first": { "label": "inventor2-first", "type": "string", "required": false },		"inventor3-given": { "label": "inventor3-given", "type": "string", "required": false },		"inventor3-first": { "label": "inventor3-first", "type": "string", "required": false },		"inventor4-given": { "label": "inventor4-given", "type": "string", "required": false },		"inventor4-first": { "label": "inventor4-first", "type": "string", "required": false },		"inventorlink1": { "label": "inventorlink1", "type": "string", "required": false },		"inventorlink": { "label": "inventorlink", "type": "string", "required": false },		"inventorlink2": { "label": "inventorlink2", "type": "string", "required": false },		"inventorlink3": { "label": "inventorlink3", "type": "string", "required": false },		"inventorlink4": { "label": "inventorlink4", "type": "string", "required": false },		"country": { "label": "country", "type": "string", "required": false },		"publication-number": { "label": "publication-number", "type": "string", "required": false },		"patent-number": { "label": "patent-number", "type": "string", "required": false },		"number": { "label": "number", "type": "string", "required": false },		"description": { "label": "description", "type": "string", "required": false },		"status": { "label": "status", "type": "string", "required": false },		"publication-date": { "label": "publication-date", "type": "string", "required": false },		"pubdate": { "label": "pubdate", "type": "string", "required": false },		"issue-date": { "label": "issue-date", "type": "string", "required": false },		"gdate": { "label": "gdate", "type": "string", "required": false },		"year": { "label": "year", "type": "string", "required": false },		"fdate": { "label": "fdate", "type": "string", "required": false },		"pridate": { "label": "pridate", "type": "string", "required": false },		"assign1": { "label": "assign1", "type": "string", "required": false },		"assign2": { "label": "assign2", "type": "string", "required": false },		"ref": { "label": "ref", "type": "string", "required": false },		"separator": { "label": "separator", "type": "string", "required": false },		"quote": { "label": "quote", "type": "string", "required": false },		"postscript": { "label": "postscript", "type": "string", "required": false },		"author-separator": { "label": "author-separator", "type": "string", "required": false },		"author-mask": { "label": "author-mask", "type": "string", "required": false },		"authormask": { "label": "authormask", "type": "string", "required": false },		"surname": { "label": "surname", "type": "string", "required": false },		"last1": { "label": "last1", "type": "string", "required": false },		"surname1": { "label": "surname1", "type": "string", "required": false },		"author1": { "label": "author1", "type": "string", "required": false },		"author": { "label": "author", "type": "string", "required": false },		"authors": { "label": "authors", "type": "string", "required": false },		"last2": { "label": "last2", "type": "string", "required": false },		"surname2": { "label": "surname2", "type": "string", "required": false },		"author2": { "label": "author2", "type": "string", "required": false },		"last3": { "label": "last3", "type": "string", "required": false },		"surname3": { "label": "surname3", "type": "string", "required": false },		"author3": { "label": "author3", "type": "string", "required": false },		"last4": { "label": "last4", "type": "string", "required": false },		"surname4": { "label": "surname4", "type": "string", "required": false },		"author4": { "label": "author4", "type": "string", "required": false },		"last5": { "label": "last5", "type": "string", "required": false },		"surname5": { "label": "surname5", "type": "string", "required": false },		"author5": { "label": "author5", "type": "string", "required": false },		"last6": { "label": "last6", "type": "string", "required": false },		"surname6": { "label": "surname6", "type": "string", "required": false },		"author6": { "label": "author6", "type": "string", "required": false },		"last7": { "label": "last7", "type": "string", "required": false },		"surname7": { "label": "surname7", "type": "string", "required": false },		"author7": { "label": "author7", "type": "string", "required": false },		"last8": { "label": "last8", "type": "string", "required": false },		"surname8": { "label": "surname8", "type": "string", "required": false },		"author8": { "label": "author8", "type": "string", "required": false },		"last9": { "label": "last9", "type": "string", "required": false },		"surname9": { "label": "surname9", "type": "string", "required": false },		"author9": { "label": "author9", "type": "string", "required": false },		"first1": { "label": "first1", "type": "string", "required": false },		"given1": { "label": "given1", "type": "string", "required": false },		"given": { "label": "given", "type": "string", "required": false },		"first2": { "label": "first2", "type": "string", "required": false },		"given2": { "label": "given2", "type": "string", "required": false },		"first3": { "label": "first3", "type": "string", "required": false },		"given3": { "label": "given3", "type": "string", "required": false },		"first4": { "label": "first4", "type": "string", "required": false },		"given4": { "label": "given4", "type": "string", "required": false },		"first5": { "label": "first5", "type": "string", "required": false },		"given5": { "label": "given5", "type": "string", "required": false },		"first6": { "label": "first6", "type": "string", "required": false },		"given6": { "label": "given6", "type": "string", "required": false },		"first7": { "label": "first7", "type": "string", "required": false },		"given7": { "label": "given7", "type": "string", "required": false },		"first8": { "label": "first8", "type": "string", "required": false },		"given8": { "label": "given8", "type": "string", "required": false },		"first9": { "label": "first9", "type": "string", "required": false },		"given9": { "label": "given9", "type": "string", "required": false },		"author-link": { "label": "author-link", "type": "string", "required": false },		"author1-link": { "label": "author1-link", "type": "string", "required": false },		"authorlink": { "label": "authorlink", "type": "string", "required": false },		"authorlink1": { "label": "authorlink1", "type": "string", "required": false },		"author2-link": { "label": "author2-link", "type": "string", "required": false },		"authorlink2": { "label": "authorlink2", "type": "string", "required": false },		"author3-link": { "label": "author3-link", "type": "string", "required": false },		"authorlink3": { "label": "authorlink3", "type": "string", "required": false },		"author4-link": { "label": "author4-link", "type": "string", "required": false },		"authorlink4": { "label": "authorlink4", "type": "string", "required": false },		"author5-link": { "label": "author5-link", "type": "string", "required": false },		"authorlink5": { "label": "authorlink5", "type": "string", "required": false },		"author6-link": { "label": "author6-link", "type": "string", "required": false },		"authorlink6": { "label": "authorlink6", "type": "string", "required": false },		"author7-link": { "label": "author7-link", "type": "string", "required": false },		"authorlink7": { "label": "authorlink7", "type": "string", "required": false },		"author8-link": { "label": "author8-link", "type": "string", "required": false },		"authorlink8": { "label": "authorlink8", "type": "string", "required": false },		"author9-link": { "label": "author9-link", "type": "string", "required": false },		"authorlink9": { "label": "authorlink9", "type": "string", "required": false },		"coauthor": { "label": "coauthor", "type": "string", "required": false },		"coauthors": { "label": "coauthors", "type": "string", "required": false },		"origyear": { "label": "origyear", "type": "string", "required": false },		"month": { "label": "month", "type": "string", "required": false },		"trans_chapter": { "label": "trans_chapter", "type": "string", "required": false },		"trans_title": { "label": "trans_title", "type": "string", "required": false },		"type": { "label": "type", "type": "string", "required": false },		"archiveurl": { "label": "archiveurl", "type": "string", "required": false },		"deadurl": { "label": "deadurl", "type": "string", "required": false },		"series": { "label": "series", "type": "string", "required": false },		"version": { "label": "version", "type": "string", "required": false },		"journal": { "label": "journal", "type": "string", "required": false },		"periodical": { "label": "periodical", "type": "string", "required": false },		"newspaper": { "label": "newspaper", "type": "string", "required": false },		"magazine": { "label": "magazine", "type": "string", "required": false },		"work": { "label": "work", "type": "string", "required": false },		"volume": { "label": "volume", "type": "string", "required": false },		"issue": { "label": "issue", "type": "string", "required": false },		"pages": { "label": "pages", "type": "string", "required": false },		"page": { "label": "page", "type": "string", "required": false },		"at": { "label": "at", "type": "string", "required": false },		"nopp": { "label": "nopp", "type": "string", "required": false },		"chapter": { "label": "chapter", "type": "string", "required": false },		"contribution": { "label": "contribution", "type": "string", "required": false },		"chapter-url": { "label": "chapter-url", "type": "string", "required": false },		"chapterurl": { "label": "chapterurl", "type": "string", "required": false },		"contribution-url": { "label": "contribution-url", "type": "string", "required": false },		"chapter-format": { "label": "chapter-format", "type": "string", "required": false },		"others": { "label": "others", "type": "string", "required": false },		"edition": { "label": "edition", "type": "string", "required": false },		"place": { "label": "place", "type": "string", "required": false },		"location": { "label": "location", "type": "string", "required": false },		"publication-place": { "label": "publication-place", "type": "string", "required": false },		"publisher": { "label": "publisher", "type": "string", "required": false },		"editor-last": { "label": "editor-last", "type": "string", "required": false },		"editor-surname": { "label": "editor-surname", "type": "string", "required": false },		"editor1-last": { "label": "editor1-last", "type": "string", "required": false },		"editor1-surname": { "label": "editor1-surname", "type": "string", "required": false },		"editor1": { "label": "editor1", "type": "string", "required": false },		"editor": { "label": "editor", "type": "string", "required": false },		"editors": { "label": "editors", "type": "string", "required": false },		"editor2-last": { "label": "editor2-last", "type": "string", "required": false },		"editor2-surname": { "label": "editor2-surname", "type": "string", "required": false },		"editor2": { "label": "editor2", "type": "string", "required": false },		"editor3-last": { "label": "editor3-last", "type": "string", "required": false },		"editor3-surname": { "label": "editor3-surname", "type": "string", "required": false },		"editor3": { "label": "editor3", "type": "string", "required": false },		"editor4-last": { "label": "editor4-last", "type": "string", "required": false },		"editor4-surname": { "label": "editor4-surname", "type": "string", "required": false },		"editor4": { "label": "editor4", "type": "string", "required": false },		"editor-first": { "label": "editor-first", "type": "string", "required": false },		"editor-given": { "label": "editor-given", "type": "string", "required": false },		"editor1-first": { "label": "editor1-first", "type": "string", "required": false },		"editor1-given": { "label": "editor1-given", "type": "string", "required": false },		"editor2-first": { "label": "editor2-first", "type": "string", "required": false },		"editor2-given": { "label": "editor2-given", "type": "string", "required": false },		"editor3-first": { "label": "editor3-first", "type": "string", "required": false },		"editor3-given": { "label": "editor3-given", "type": "string", "required": false },		"editor4-first": { "label": "editor4-first", "type": "string", "required": false },		"editor4-given": { "label": "editor4-given", "type": "string", "required": false },		"editor-link": { "label": "editor-link", "type": "string", "required": false },		"editor1-link": { "label": "editor1-link", "type": "string", "required": false },		"editor2-link": { "label": "editor2-link", "type": "string", "required": false },		"editor3-link": { "label": "editor3-link", "type": "string", "required": false },		"editor4-link": { "label": "editor4-link", "type": "string", "required": false },		"language": { "label": "language", "type": "string", "required": false },		"in": { "label": "in", "type": "string", "required": false },		"format": { "label": "format", "type": "string", "required": false },		"arxiv": { "label": "arxiv", "type": "string", "required": false },		"asin": { "label": "asin", "type": "string", "required": false },		"ASIN": { "label": "ASIN", "type": "string", "required": false },		"asin-tld": { "label": "asin-tld", "type": "string", "required": false },		"bibcode": { "label": "bibcode", "type": "string", "required": false },		"doi": { "label": "doi", "type": "string", "required": false },		"DOI": { "label": "DOI", "type": "string", "required": false },		"doi_inactivedate": { "label": "doi_inactivedate", "type": "string", "required": false },		"doi_brokendate": { "label": "doi_brokendate", "type": "string", "required": false },		"isbn": { "label": "isbn", "type": "string", "required": false },		"ISBN": { "label": "ISBN", "type": "string", "required": false },		"issn": { "label": "issn", "type": "string", "required": false },		"ISSN": { "label": "ISSN", "type": "string", "required": false },		"jfm": { "label": "jfm", "type": "string", "required": false },		"JFM": { "label": "JFM", "type": "string", "required": false },		"jstor": { "label": "jstor", "type": "string", "required": false },		"JSTOR": { "label": "JSTOR", "type": "string", "required": false },		"lccn": { "label": "lccn", "type": "string", "required": false },		"LCCN": { "label": "LCCN", "type": "string", "required": false },		"mr": { "label": "mr", "type": "string", "required": false },		"MR": { "label": "MR", "type": "string", "required": false },		"oclc": { "label": "oclc", "type": "string", "required": false },		"OCLC": { "label": "OCLC", "type": "string", "required": false },		"ol": { "label": "ol", "type": "string", "required": false },		"OL": { "label": "OL", "type": "string", "required": false },		"osti": { "label": "osti", "type": "string", "required": false },		"OSTI": { "label": "OSTI", "type": "string", "required": false },		"pmc": { "label": "pmc", "type": "string", "required": false },		"PMC": { "label": "PMC", "type": "string", "required": false },		"pmid": { "label": "pmid", "type": "string", "required": false },		"PMID": { "label": "PMID", "type": "string", "required": false },		"rfc": { "label": "rfc", "type": "string", "required": false },		"RFC": { "label": "RFC", "type": "string", "required": false },		"ssrn": { "label": "ssrn", "type": "string", "required": false },		"SSRN": { "label": "SSRN", "type": "string", "required": false },		"zbl": { "label": "zbl", "type": "string", "required": false },		"id": { "label": "id", "type": "string", "required": false },		"ID": { "label": "ID", "type": "string", "required": false },		"access-date": { "label": "access-date", "type": "string", "required": false },		"accessdate": { "label": "accessdate", "type": "string", "required": false },		"laysummary": { "label": "laysummary", "type": "string", "required": false },		"laysource": { "label": "laysource", "type": "string", "required": false },		"laydate": { "label": "laydate", "type": "string", "required": false },		"author-name-separator": { "label": "author-name-separator", "type": "string", "required": false },		"lastauthoramp": { "label": "lastauthoramp", "type": "string", "required": false },		"display-authors": { "label": "display-authors", "type": "string", "required": false },		"archivedate": { "label": "archivedate", "type": "string", "required": false },		"translator-first": {}, "translator-last": {}, "translator2-first": {}, "translator2-last": {} },	"maps": { "citoid": { "edition": "edition", "title": "title", "caseName": "title", "nameOfAct": "title", "url": "url", "label": "publisher", "company": "publisher", "studio": "publisher", "network": "publisher", "distributor": "publisher", "publisher": "publisher", "publicationTitle": "journal", "date": "date", "issueDate": "date", "dateEnacted": "date", "dateDecided": "date", "accessDate": "accessdate", "location": "location", "ISSN": [ "issn" ],			"ISBN": [ "isbn" ],			"PMCID": "pmc", "PMID": "pmid", "oclc": "oclc", "pages": "pages", "firstPage": "pages", "codePages": "pages", "volume": "volume", "reporterVolume": "volume", "codeVolume": "volume", "series": "series", "programTitle": "series", "patentNumber": "issue", "episodeNumber": "issue", "billNumber": "issue", "documentNumber": "issue", "publicLawNumber": "issue", "docketNumber": "issue", "issue": "issue", "DOI": "doi", "language": "language", "podcaster": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"cartographer": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"interviewee": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"performer": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"programmer": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"sponsor": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"artist": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"director": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"contributor": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"author": [ [					"first", "last" ],				[					"first2", "last2" ],				[					"first3", "last3" ],				[					"first4", "last4" ],				[					"first5", "last5" ],				[					"first6", "last6" ],				[					"first7", "last7" ],				[					"first8", "last8" ],				[					"first9", "last9" ]			],			"translator": [ [					"translator-first", "translator-last" ],				[					"translator2-first", "translator2-last" ]			],			"inventor": [ [					"inventor-first", "inventor-last" ],				[					"inventor2-first", "inventor2-last" ],				[					"inventor3-first", "inventor3-last" ]			],			"editor": [ [					"editor-first", "editor-last" ],				[					"editor2-first", "editor2-last" ]			]		}	} }

Tools
See Citing sources for a list of tools which can help create a reference in the 'citation' format.