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

Content deleted Content added
Citing a journal: rem coauthors & month, add date & doi to common params, change emphasis from year to date in longer version
Legobot (talk | contribs)
m Bot: Fixing lint errors, replacing obsolete HTML tags: <tt> (3x)
 
(16 intermediate revisions by 8 users not shown)
Line 3:
'''Note that the use of these templates is not required.'''
 
Use of these templates is manual:, authors shouldmay cutcopy-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.

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:
Line 13 ⟶ 15:
 
'''{{tl|cite book}}'''
 
;Not complete
 
{| cellpadding="0" cellspacing="6"
Line 23 ⟶ 27:
| first =
| author-link =
| monthauthor =
| origdateauthor2 =
| editor =
| others =
| title = <!-- required -->
| origdate =
| orig-year =
| origmonth =
| url =
| format =
Line 35 ⟶ 39:
| date =
| year =
| month =
| publisher =
| ___location =
Line 65 ⟶ 68:
 
'''{{tl|cite journal}}'''
 
;Not complete
 
{| cellpadding="0" cellspacing="6"
Line 75 ⟶ 80:
| last = Elford
| author-link =
| monthauthor =
| author2 =
| date = 1974
| year =
Line 118 ⟶ 125:
| author-link =
| author =
| coauthorsauthor2 =
| title =
| url =
Line 133 ⟶ 140:
</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.
** '''coauthorsauthor2''', 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).
Line 163 ⟶ 171:
| first =
| author-link =
| coauthors =
| date =
| year =
| month =
| work =
| publisher =
Line 180 ⟶ 186:
 
;Common form for cases where little is known about authorship of the page
<ttcode><nowiki>{{Cite web |url= |title= |access-date= |format= |work= }}</nowiki></ttcode>
 
;Using author
<ttcode><nowiki>{{Cite web |url= |title= |access-date= |author= |author-link= |coauthorsauthor2= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archive-url= |archive-date= |quote= }}</nowiki></ttcode>
 
;Using last, first
<ttcode><nowiki>{{Cite web |url= |title= |access-date= |last= |first= |author-link= |coauthorsauthor2= |date= |year= |month= |format= |work= |publisher= |pages= |language= |archive-url= |archive-date= |quote= }}</nowiki></ttcode>
 
The most common parameters are as follows. See also the complete documentation in [[Template:Cite web]].
Line 192 ⟶ 198:
* '''title''' (required): Title of online item.
* '''access-date''' in same format as dates in body of article.
* either '''author''', or '''last''' and '''first''' to produce <code>last, first</code>. Don't wikilink these; instead use '''author-link''' to link to the appropriate wikipedia article. Does not work with URLs. More authors can be added as author2 author3 etc. as can first, last pairs of parameters. When there are multiple authors, both '''author2-link''' and '''author-link2''' allow links to multiple authors' Wikipedia pages.
 
* '''date''': Full date of publication, in same format as main text of article. Or, use '''year''', and optionally '''month'''. If you also have the day, use ''date'' instead. (optional)
* '''archive-url''': URL of the archive ___location of the item, and '''archive-date''': Date when the item was archived, in same format as main text of the article.
 
<noinclude>
[[Category:Citation templates| ]]
[[Category:Wikipedia template administration]]
</noinclude>