Template:Citation

![]() | This template was originally sporked from w:Template:Citation Template documentation imported from sites like Wikipedia may have information irrelevant/inapplicable to Uncyclopedia. Use discretion, and some common sense! |
![]() | This template uses Lua: |
See w:Template:Citation for full documentation.
Usage
The Citation template generates a citation for a book, periodical, contribution in a collective work, or a web page. 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 <ref>...</ref>
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.
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.
Notes:
- All parameter names must be lowercase.
- Invisible unicode space characters (see list) will return an error message. Non-intentional invisible characters should be removed; intentional ones should be replaced with their corresponding HTML entity (e.g.
​
).
Simple citations
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= |access-date=}}
{{Citation | last = | first = | year = | title = | publisher = | publication-place = | page = | url = | access-date = }} |
- last: The author's surname or last name. Don't use with the author parameter.
- first: The author's first or given name(s).
- year: Year of authorship or publication.
- title: Title of the work. Mandatory for web references.
- publisher: The name of the publisher. Omit terms such as Publishers, Co., Inc., Ltd., etc., but retain the words Books or Press. Not normally included where the publication is a periodical which has its own Wikipedia article (e.g. Newsweek, Billboard).
- publication-place (or place or location): The city of publication. If more than one town/city is listed on the title page, give the first one or the location of the publisher's head office. Omit when the publication is a periodical whose name specifies the location (e.g. The New York Times, The Times of India)
- page: For use when one page is cited. Adds "p." before the page number. Do not use with pages.
- url: A url of an online location where the item can be found. If the url includes double quotes, these must be encoded as "%22".
- access-date: Date[n 1] when the url was accessed.
Example
{{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 |
Full citation parameters
These can be used for all types of publication. 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 | last1 = | first1 = | author-link1 = | last2 = | first2 = | author-link2 = | display-authors = | author-mask1 = | author-mask2 = | collaboration = | date = | year = | orig-date = | location = | editor-last1 = | editor-first1 = | editor-link1 = | editor-last2 = | editor-first2 = | editor-link2 = | display-editors = | editor-mask1 = | editor-mask2 = | title = | script-title = | trans-title = | title-link = | url = | url-access = | format = | department = | website = | script-website = | trans-website = | type = | series = | language = | interviewer-last1 = | interviewer-first1 = | interviewer-link1 = | interviewer-last2 = | interviewer-first2 = | interviewer-link2 = | display-interviewers = | interviewer-mask1 = | interviewer-mask2 = | translator-last1 = | translator-first1 = | translator-link1 = | translator-last2 = | translator-first2 = | translator-link2 = | display-translators = | translator-mask1 = | translator-mask2 = | others = | name-list-style = | edition = | publication-place = | publisher = | publication-date = | minutes = | time-caption = | time = | page = | pages = | at = | no-pp = | arxiv = | asin = | asin-tld = | bibcode = | bibcode-access = | biorxiv = | citeseerx = | doi = | doi-access = | doi-broken-date = | eissn = | hdl = | hdl-access = | isbn = | ismn = | issn = | jfm = | jstor = | jstor-access = | lccn = | medrxiv = | mr = | oclc = | ol = | ol-access = | osti = | osti-access = | pmc = | pmc-embargo-date = | pmid = | rfc = | sbn = | ssrn = | s2cid = | s2cid-access = | zbl = | id = | url-status = | archive-url = | archive-format = | archive-date = | access-date = | via = | quote-page = | quote-pages = | quote = | script-quote = | trans-quote = | mode = | ref = | postscript = }} |
Dates
- ↑ The format of dates in the references of an article should use consistent and unambiguous styles. Example formats used in Wikipedia citations include:
- 2009
- 2009-09-14 (ISO 8601 standard format: YYYY-MM-DD)
- 14 September 2009
- September 14, 2009 (with comma)
- September 2009