Jump to content

User:Dtrebbien/Templates/Cite/doc

From Wikipedia, the free encyclopedia


Cite is a template for consistently formatting most references.

Usage[edit]

Short form:

{{cite
 | last =   | first =   | authorlink = 
 | author2 = 
 | otherauthors = no
 | title =   | language = en
 | work =   | edition = 
 | series = 
 | volume =   | issue = 
 | date =   | year = 
 | location =   | publisher =   | producer = 
 | pages = ?–
 | doi =   | isbn =   | pmid =   | id = 
 | ref = 
 | quotes = yes
}}

Full form:

{{cite
 | last =   | first =   | authorlink = 
 | author2 = 
 | author3 = 
 | author4 = 
 | otherauthors = no
 | title =   | language = en
 | work =   | edition = 
 | series = 
 | volume =   | issue = 
 | date =   | year = 
 | editor1 =   | editor2 =   | editor3 =   | othereditors = no
 | translator1 =   | translator2 =   | othertranslators = no
 | originaltitle =   | originallanguage =   | originalwork = 
 | location =   | publisher =   | producer = 
 | pages = ?–
 | doi =   | isbn =   | pmid =   | id = 
 | ref = 
 | quotes = yes
}}
  • last
    • The full surname of the first author, non-abbreviated. The first= parameter must also be specified when using this parameter. Both last= and first= are ignored if author1= is set.
  • first
    • The full first name of the first author, non-abbreviated, unless the abbreviation was defined, unambiguously, in the article. For example, on John Hilton Grace, some of his publications are listed, which have first= set to "J. H."
  • authorlink (optional), also the same as author1link
    • An optional parameter which contains the title of a Wikipedia article about the first author. Do not place square brackets ('[' and ']') around this parameter's value, as these are automatically added. This parameter is ignored if author1= is set.
  • author1
    • The full name of the first author, non-abbreviated, unless the abbreviation was unambiguously defined in the article. Please format this field by typing the surname of the first author, followed by a comma (','), followed by the first name. This field can be a wikilink, and should be if an article about the first author exists and has not been previously linked to in the article.
  • author2
    • The full name of a second author, if one exists, non-abbreviated, unless the abbreviation was unambiguously defined in the article. This field should be formatted with the second author's first name, followed by the surname. (Thus, unlike author1=, the surname does not come first, and there is no comma.) Please make author2='s value a wikilink if applicable.
  • author3, author4
    • Exactly like author2=, but for a third or fourth author, respectively, if they exist.
  • otherauthors
    • Exactly "yes" if there are more than four authors. Any other value is interpreted as the default, "no".

See also[edit]

Goals[edit]

  • Backward compatible
    Parameter names and purposes, and the appearance of output should be generally consistent with the core citation templates {{cite journal}}, {{cite book}}, {{cite web}}, ...
  • Generality
    The template should accommodate most media cited on Wikipedia.
  • Dual utility
    The template should be useful in referring to an entire work (useful in Further reading sections), as well as excerpts.

Motivating examples[edit]

Exmple article With a core citation template With {{User:Dtrebbien/Templates/Cite}} With the {{User:Dtrebbien cite ...}} analog
Double Room Connors, Peter (2007-09-27). (Interview). Interviewed by Didi Menendez http://menoftheweb.blogspot.com/2007/09/peter-conners.html. Retrieved 2008-06-16. {{cite interview}}: Missing or empty |title= (help); Unknown parameter |program= ignored (help)

{{cite interview| last=Connors | first=Peter | interviewer=Didi Menendez | date=2007-09-27 | program=Men of the Web Wide Poetry World | url=http://menoftheweb.blogspot.com/2007/09/peter-conners.html | accessdate=2008-06-16}}

Menendez, Didi. Interview with Peter Connors (2007 September 27). Men of the Web Wide Poetry World. Accessed on 2008 June 16.
Bengt-Åke Lundvall (The article's writers wanted to reference a book that B.-Å. Lundvall edited.) Edward Lorenz and B.-Å. Lundvall, ed. (2006). How Europe's Economies Learn: Coordinating Competing Models. Oxford University Press. ISBN 0199203199.

{{cite book| title=How Europe's Economies Learn: Coordinating Competing Models | editor=Edward Lorenz and B.-Å. Lundvall | year=2006 | publisher=Oxford University Press | isbn=0199203199}}

How Europe's Economies Learn: Coordinating Competing Models (2006), edited by Edward Lorenz and B.-Å. Lundvall. Oxford University Press. ISBN 0199203199.