Wikipedia:Template index/Sources of articles/Citation quick reference: Difference between revisions

Content deleted Content added
RJASE1 (talk | contribs)
Legobot (talk | contribs)
m Bot: Fixing lint errors, replacing obsolete HTML tags: <tt> (3x)
 
(57 intermediate revisions by 33 users not shown)
Line 1:
{{shortcutShortcut|[[WP:QC]]CITEQR}}
 
'''Note that the use of these templates is not required.'''
 
Use of these templates is manual, authors may copy-and-paste the desired template into their text, and erase fields they do not need. Remember the <nowiki>{{double curly braces}}</nowiki>, and a vertical bar between fields.
= Citing a book =
 
Introductory ("Beginner" and "Tutorial") pages such as the CITING SOURCES tab in the [[Wikipedia:Tutorial]] page do not necessarily cover templates. Another template which covers all these uses may be found at [[Template:Citation|Citation]]. For more information see [[Wikipedia:Citing sources]].
 
If you are using the inline reference citation style in your article (using <nowiki><ref></nowiki> tags to create footnotes), then these templates would go inside the <nowiki><ref></nowiki> tags as follows:
<pre><ref>{{cite book|author=...}}</ref></pre>
 
''See full list of citation templates at [[Wikipedia:Citation templates]].'' For other templates, see [[Wikipedia:Template namespace]].
 
== Citing a book ==
 
'''{{tl|cite book}}'''
 
;Not complete
 
{| cellpadding="0" cellspacing="6"
! FullLonger version !! Most common fields
|- width="50%"
|
<pre>
{{citeCite book
| last =
| first =
| authorlinkauthor-link =
| coauthorsauthor =
| monthauthor2 =
| editor =
| others =
| title = '''REQUIRED'''<!-- required -->
| origdateorig-year =
| origyear =
| origmonth =
| url =
| format =
| accessdateaccess-date =
| accessyear =
| accessmonth =
| edition =
| date =
| year =
| month =
| publisher =
| ___location =
| language =
| idisbn =
| pages =
| chapter =
| chapterurlchapter-url =
| quote =
}}
Line 44 ⟶ 51:
| style="vertical-align: top;" |
<pre>
{{citeCite book
| last =
| first =
| authorlinkauthor-link =
| coauthors =
| year =
| title = '''REQUIRED'''<!-- required -->
| publisher =
| ___location =
| idisbn =
| monthpages =
}}
</pre>
|}
 
== Citing a journal ==
 
'''{{tl|cite journal}}'''
 
;Not complete
 
{| cellpadding="0" cellspacing="6"
! FullLonger version !! Most common fields
|- width="50%"
|
<pre>
{{citeCite journal
| first = Jean
| last = Elford
| authorlinkauthor-link =
| coauthorsauthor =
| quotesauthor2 =
| date = 1974
| year =
| title = The Icelanders - Their Ontario Year
| month =
| datequote =
| titlejournal = '''REQUIRED'''The Beaver
| quotes =
| journal =
| volume =
| issue =
| pages = 53–57
| doi =
| id =
| url =
| format =
| accessdateaccess-date =
}}</pre>
| style="vertical-align: top;" |
<pre>
{{citeCite journal
| author =
| journaldate =
| year =
| monthtitle = <!-- required -->
| title = '''REQUIRED'''
| journal =
| volume =
| issue =
| pages =
| urldoi =
| id =
| url =
Line 103 ⟶ 113:
|}
 
== Citing a news article ==
 
'''{{tl|cite news}}'''
 
;Not complete
 
<pre>
{{citeCite news
| first =
| last =
| authorlinkauthor-link =
| author =
| coauthorsauthor2 =
| title =
| url =
Line 121 ⟶ 134:
| page =
| date =
| accessdateaccess-date =
| language =
| quote =
}}
</pre>
*'''title''' is required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly.
* '''author''': Author
** '''last''' works with '''first''' to produce <code>last, first</code>
** '''author-link''' works either with '''author''' or with '''last''' & '''first''' to link to the appropriate wikipedia article. Does not work with URLs.
** '''author2''', or '''last2''' & '''first2''': allows additional authors
** '''author2-link''' and '''author-last2''': allow links to Wikipedia pages for additional authors
* '''url''': Link to the news item if available online
** '''format''': Format, i.e. PDF. Don't specify for HTML (implied as default).
**: Specify as'' 'fee required' ''if free access no longer available.
**: Specify as'' 'Reprint' ''if a full original version but not hosted by the original publisher.
* '''work''': If this item is part of a larger work (such as a newspaper), name of that work.
* '''publisher''': Publisher, if any.
* '''date''': date of publication, in same format as dates in the body of the article.
* '''accessdate''': Date when item was accessed. Use [[ISO 8601]] YYYY-MM-DD format.
* '''pages''' or '''page''': the page number or numbers of the relevant information (e.g. pages=31-32 or page=157). Note that "pages" overrides "page" if they are both present.
* '''work''': If this item is part of a larger work, name of that work.
* '''access-date''': Date when item was accessed, in same format as dates in the body of the article.
* '''pages''' overrides '''page'''
* '''language''': the language in which the source is written.
* See [[Template talk:Cite news]] for more help on using this template.
* '''quote''': Relevant quote.
 
== Citing the web ==
Note: '''{{tl|news reference}}''' is now deprecated; please use {{tl|cite news}} instead for new references, and gradually migrate existing references.
 
= Citing the web =
 
'''{{tl|cite web}}'''
 
;Not complete
<pre>{{cite web
 
| url =
<pre>{{citeCite web
| title =
| url = <!-- required -->
| accessdate = | accessmonthday = | accessyear =
| title = <!-- required -->
| author = | last = | first =
| authorlinkaccess-date =
| coauthorsauthor =
| titlelast =
| date = | year = | month =
| first =
| work = | publisher =
| author-link =
| pages = | format = | language = | quote =
| date =
| archiveurl = | archivedate =
| year =
| work =
| work = | publisher =
| pages =
| format =
| language =
| quote =
| archive-url =
| archive-date =
}}</pre>
 
This template is specifically for web sites which are not news sources. See also [[citation templates]] for more on templates for citing open-source web content in Wikipedia articles. Here are some convenient examples.
 
;Common form for cases where little is known about authorship of the page (with current date)
<ttcode><nowiki>{{citeCite web |url= |title= |accessdateaccess-date=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki> |format= |work= }}</nowiki></ttcode>
 
;Using author (with current date)
<ttcode><nowiki>{{citeCite web |url= |title= |accessdateaccess-date=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki> |author= |authorlinkauthor-link= |coauthorsauthor2= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archiveurlarchive-url= |archivedatearchive-date= |quote= }}</nowiki></ttcode>
 
;Using last, first (with current date)
<ttcode><nowiki>{{citeCite web |url= |title= |accessdateaccess-date=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki> |last= |first= |authorlinkauthor-link= |coauthorsauthor2= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archiveurlarchive-url= |archivedatearchive-date= |quote= }}</nowiki></ttcode>
 
The most common parameters are as follows. See also the complete documentation in [[Template:Cite web]].
* '''url''' (required): URL of online item.
* '''title''' (required): Title of online item.
* '''access-date''' in same format as dates in body of article.
* one of '''accessdate''' in YYYY-MM-DD format with no wikilink (e.g. "accessdate = 2006-02-17"), or '''accessmonthday''' and '''accessyear''', for example "accessmonthday = May 10 |accessyear = 2005". (One or the other required.)
* either '''author''', or '''last''' and '''first''' to produce <code>last, first</code>. Don't wikilink these; instead use '''authorlinkauthor-link''' to link to the appropriate wikipedia article. Does not work with URLs. AddMore optionalauthors can be added as author2 author3 etc. as can first, last pairs of parameters. When there are multiple authors, both '''coauthorsauthor2-link''' toand record'''author-link2''' additionalallow links to multiple authors.' (optional)Wikipedia pages.
 
* '''date''': Full date of publication, YYYY-MM-DDin same format, e.g.as ''2006-02-17''.main Maytext beof wikilinkedarticle. Or, use '''year''', and optionally '''month'''. If you also have the day, use ''date'' instead. (optional)
* '''archiveurlarchive-url''': URL of the archive ___location of the item, and '''archivedatearchive-date''': Date when the item was archived, in YYYY-MM-DDsame format, e.g.as ''2006-02-17''.main Musttext not be wikilinked;of the template will link it automaticallyarticle. (optional, but must use both together or neither)
 
<noinclude>
[[Category:Citation templates| ]]
[[Category:Wikipedia template administration]]
</noinclude>