Template:Cite news/doc: Difference between revisions
From All Skies Encyclopaedia
imported>Pigsonthewing mNo edit summary |
imported>RossPatterson Add doc for archiveurl= and archivedate= |
||
| Line 13: | Line 13: | ||
|- width="50%" valign="top" style="vertical-align:top;" | |- width="50%" valign="top" style="vertical-align:top;" | ||
| colspan="3" | | | colspan="3" | | ||
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |format= |work= |publisher= |id= |pages= |page= |date= |accessdate= |language= |quote= }}</nowiki></span> | :<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |format= |work= |publisher= |id= |pages= |page= |date= |accessdate=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki> |language= |quote= |archiveurl= |archivedate= }}</nowiki></span> | ||
|- width="50%" valign="top" style="vertical-align:top;" | |- width="50%" valign="top" style="vertical-align:top;" | ||
! colspan="3" | Most commonly used fields (or you can use this and not have to delete as much)<br/>(This assumes English, HTML format, with today as access date) | ! colspan="3" | Most commonly used fields (or you can use this and not have to delete as much)<br/>(This assumes English, HTML format, with today as access date) | ||
| Line 41: | Line 41: | ||
| language = | | language = | ||
| quote = | | quote = | ||
| archiveurl = | |||
| archivedate = | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 61: | Line 63: | ||
* '''language''': The language in which the source is written. | * '''language''': The language in which the source is written. | ||
* '''quote''': Relevant quote. | * '''quote''': Relevant quote. | ||
*'''archiveurl''': URL of the archive location of the item (requires '''archivedate''') | |||
*'''archivedate''': Date when the item was archived (requires '''archiveurl'''), in [[ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''. Must not be wikilinked; it will be linked automatically. | |||
== Examples == | == Examples == | ||
; Using first and last to identify the author, and id to supply the ISSN | |||
*<nowiki>{{cite news | *<nowiki>{{cite news | ||
| first=John | | first=John | ||
| Line 74: | Line 79: | ||
| date=[[2005-11-21]] | | date=[[2005-11-21]] | ||
| id={{ISSN|0028-0836}} | | id={{ISSN|0028-0836}} | ||
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | | accessdate=2005-12-11 | ||
}}</nowiki><br><div style="padding:0.5em">→ {{ | |||
cite news | cite news | ||
| first=John | | first=John | ||
| Line 88: | Line 94: | ||
}}</div> | }}</div> | ||
; Using author instead of first and last | |||
*<nowiki>{{cite news | *<nowiki>{{cite news | ||
| author=Staff writer | | author=Staff writer | ||
| Line 96: | Line 103: | ||
| pages= 37–39 | | pages= 37–39 | ||
| date=[[2005-11-21]] | | date=[[2005-11-21]] | ||
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | | accessdate=2005-12-11 | ||
}}</nowiki><br><div style="padding:0.5em">→ {{ | |||
cite news | cite news | ||
| author=Staff writer | | author=Staff writer | ||
| Line 108: | Line 116: | ||
}}</div> | }}</div> | ||
; Using authorlink to link to the author's article | |||
*<nowiki>{{cite news | *<nowiki>{{cite news | ||
| first=John | | first=John | ||
| Line 117: | Line 126: | ||
| publisher=News co. | | publisher=News co. | ||
| date=[[2005-11-21]] | | date=[[2005-11-21]] | ||
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | | accessdate=2005-12-11 | ||
}}</nowiki><br><div style="padding:0.5em">→ {{ | |||
cite news | cite news | ||
| first=John | | first=John | ||
| Line 130: | Line 140: | ||
}}</div> | }}</div> | ||
; Using format | |||
*<nowiki>{{cite news | *<nowiki>{{cite news | ||
| title=News | | title=News | ||
| Line 136: | Line 147: | ||
| publisher=News co. | | publisher=News co. | ||
| date=[[2005-11-21]] | | date=[[2005-11-21]] | ||
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{ | | accessdate=2005-12-11 | ||
}}</nowiki><br><div style="padding:0.5em">→ {{ | |||
cite news | cite news | ||
| title=News | | title=News | ||
| Line 146: | Line 158: | ||
}}</div> | }}</div> | ||
; Using page to identify the reference by page | |||
*<nowiki>{{cite news | *<nowiki>{{cite news | ||
| first=John | | first=John | ||
| last=Doe | | last=Doe | ||
| title=FooBar | | title=FooBar | ||
| page=1}}</nowiki><br><div style="padding:0.5em">→ {{ | | page=1 | ||
}}</nowiki><br><div style="padding:0.5em">→ {{ | |||
cite news | cite news | ||
| first=John | | first=John | ||
| Line 158: | Line 172: | ||
}}</div> | }}</div> | ||
; A very simple citation | |||
*<nowiki>{{cite news | *<nowiki>{{cite news | ||
| title=FooBar | | title=FooBar | ||
| Line 165: | Line 180: | ||
| title=FooBar | | title=FooBar | ||
| page=1 | | page=1 | ||
}}</div> | |||
;Using archiveurl and archivedate to refer to items that went away but are available from an archive site | |||
*<nowiki>{{cite news | |||
| author=Staff writer | |||
| title=News | |||
| url=http://www.url.com/News.pdf | |||
| format=PDF | |||
| publisher=News co. | |||
| pages= 37–39 | |||
| date=[[2005-11-21]] | |||
| accessdate=2005-12-11 | |||
| archiveurl=http://web.archive.org/web/20070628082911/http://www.url.com/News.pdf | |||
| archivedate=2007-06-28 | |||
}}</nowiki><br><div style="padding:0.5em">→ {{ | |||
cite news | |||
| author=Staff writer | |||
| title=News | |||
| url=http://www.url.com/News.pdf | |||
| format=PDF | |||
| publisher=News co. | |||
| pages= 37–39 | |||
| date=[[2005-11-21]] | |||
| accessdate=2005-12-11 | |||
| archiveurl=http://web.archive.org/web/20070628082911/http://www.url.com/News.pdf | |||
| archivedate=2007-06-28 | |||
}}</div> | }}</div> | ||
Revision as of 22:35, 11 August 2007
Template:Template doc page viewed directly
This template is used to cite sources in Wikipedia. It is specifically for news sources.
Usage
All fields must be lowercase.
Copy a blank version to use. Remember to use the "|" (pipe) character between each field. Please delete any unused fields to avoid clutter in the edit window.
| Full version (copy and paste text below and delete parameters you don't need) | ||
|---|---|---|
| ||
| Most commonly used fields (or you can use this and not have to delete as much) (This assumes English, HTML format, with today as access date) | ||
|
- All parameters, vertical format
{{cite news
| first =
| last =
| authorlink =
| author =
| coauthors =
| title =
| url =
| format =
| work =
| publisher =
| id =
| pages =
| page =
| date =
| accessdate =
| language =
| quote =
| archiveurl =
| archivedate =
}}
- 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
last, first - authorlink works either with author or with last & first to link to the appropriate Wikipedia article. Does not work with URLs.
- coauthors: Allows additional authors.
- last works with first to produce
- 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 is no longer available.
- Specify as 'Reprint' if you use a full original version but not hosted by the original publisher.
- format: Format, i.e. PDF. Don't specify for HTML (implied as default).
- work: Such as a column, sub part of issue, multi-part work.
- publisher: Usually the news source.
- id: Identifier such as {{ISSN|0028-0836}} — remember, if you use this parameter, you must specify the kind of identifier, not just give a number.
- date: Date of publication. ISO 8601 YYYY-MM-DD format recommended. If the whole date is known it should be wikilinked to enable date user preferences.
- page or pages: The page(s) on which the article is found. page inserts the abbreviation "p." before the number; pages inserts "pp." Use only one of these parameters. If numbers are entered for both, pages overrides page.
- accessdate: Date when item was accessed. Use ISO 8601 YYYY-MM-DD format. Do not wikilink the date.
- language: The language in which the source is written.
- quote: Relevant quote.
- archiveurl: URL of the archive location of the item (requires archivedate)
- archivedate: Date when the item was archived (requires archiveurl), in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17. Must not be wikilinked; it will be linked automatically.
Examples
- Using first and last to identify the author, and id to supply the ISSN
- {{cite news
| first=John
| last=Doe
| title=News
| url=http://www.url.com/
| work=Encyclopedia of Things
| publisher=News co.
| pages= 37–39
| date=[[2005-11-21]]
| id={{ISSN|0028-0836}}
| accessdate=2005-12-11
}}→ Lua error: bad argument #1 to "get" (not a valid title).
- Using author instead of first and last
- {{cite news
| author=Staff writer
| title=News
| url=http://www.url.com/News.pdf
| format=PDF
| publisher=News co.
| pages= 37–39
| date=[[2005-11-21]]
| accessdate=2005-12-11
}}→ Lua error: bad argument #1 to "get" (not a valid title).
- Using authorlink to link to the author's article
- {{cite news
| first=John
| last=Doe
| authorlink=John Doe
| title=News
| url=http://www.url.com/background
| format=Reprint
| publisher=News co.
| date=[[2005-11-21]]
| accessdate=2005-12-11
}}→ Lua error: bad argument #1 to "get" (not a valid title).
- Using format
- {{cite news
| title=News
| url=http://www.url.com/Archive/News
| format=Fee required
| publisher=News co.
| date=[[2005-11-21]]
| accessdate=2005-12-11
}}→ Lua error: bad argument #1 to "get" (not a valid title).
- Using page to identify the reference by page
- {{cite news
| first=John
| last=Doe
| title=FooBar
| page=1
}}→ Lua error: bad argument #1 to "get" (not a valid title).
- A very simple citation
- {{cite news
| title=FooBar
| page=1
}}→ Lua error: bad argument #1 to "get" (not a valid title).
- Using archiveurl and archivedate to refer to items that went away but are available from an archive site
- {{cite news
| author=Staff writer
| title=News
| url=http://www.url.com/News.pdf
| format=PDF
| publisher=News co.
| pages= 37–39
| date=[[2005-11-21]]
| accessdate=2005-12-11
| archiveurl=http://web.archive.org/web/20070628082911/http://www.url.com/News.pdf
| archivedate=2007-06-28
}}→ Lua error: bad argument #1 to "get" (not a valid title).
COinS
This template produces COinS metadata; see COinS in Wikipedia for background information.
See also
- Wikipedia:Cite sources: Style guide
- Wikipedia:Template messages/Sources of articles/Generic citations: Related templates
- Wikipedia:WikiProject Wikicite
- Template:Cite web
- Template:Cite book





