Sjabloon:Cite news/doc
40px | This is a documentation subpage for Sjabloon:Cite news. It contains usage information, categories, interlanguage links and other content that is not part of the original sjabloon page. |
This template has recently been updated to use the Lua programming language, to run 6-12x times faster. See: WP:Lua-based cite templates. |
This Citation Style 1 template is used to create citations for to news articles in print, video, audio or web.
Usage
Copy a blank version to use. All parameter names must be in lowercase. Use the "|" (pipe) character between each parameter. Delete unused parameters to avoid clutter in the edit window. Some samples may include the current date. If the date is not current, then
the page.Common form with author(s) in a single parameter
Day Month Year
{{cite news |title= |author= |url= |newspaper= |date= |accessdate=25 december 2024}}
Month Day, Year
{{cite news |title= |author= |url= |newspaper= |date= |accessdate=december 25, 2024}}
Common form with first and last
Day Month Year
{{cite news |title= |first= |last= |url= |newspaper= |date= |accessdate=25 december 2024}}
Month Day, Year
{{cite news |title= |first= |last= |url= |newspaper= |date= |accessdate=december 25, 2024}}
All parameters
|
Vertical list | Prerequisites | Brief instructions / notes |
---|---|---|
{{cite news | title = | author = | first = | last = | authorlink = | authorlink2 = | author2 = | author3 = | author4 = | author5 = | author6 = | author7 = | url = | format = | agency = | newspaper = | publisher = | location = | isbn = | issn = | oclc = | pmid = | pmc = | bibcode = | doi = | id = | date = | page = | pages = | at = | accessdate = | language = | trans_title = | quote = | archiveurl = | archivedate = | deadurl = | ref = }} |
|
|
- If a field name is listed in the Prerequisites column it is a prerequisite for the field to the left.
Examples
Using first and last for author's name
{{cite news |first=Cassandra |last=Jardine |title=The return of the secondary modern |url=http://www.telegraph.co.uk/culture/tvandradio/3621779/The-return-of-the-secondary-modern.html |location = London |work=The Daily Telegraph |date=5 August 2004 }}
- {{#invoke:citation/CS1|citation
|CitationClass=news }}
No author but sourced to a news agency
{{cite news |title=Drugs: Chips trader gets 15 years, 10 strokes |url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660 |work=Daily Express |location=Kota Kinabalu, Malaysia |date=29 March 2007 |agency=Bernama }}
- {{#invoke:citation/CS1|citation
|CitationClass=news }}
Using authorlink to link to article about the author on Wikipedia
{{cite news |first=George |last=Monbiot |authorlink=George Monbiot |title=From toxic waste to toxic assets, the same people always get dumped on |url=http://www.guardian.co.uk/commentisfree/cif-green/2009/sep/21/global-fly-tipping-toxic-waste |work=The Guardian |location=London |date=22 September 2009 }}
- {{#invoke:citation/CS1|citation
|CitationClass=news }}
Using |format=
parameter when not HTML. No need to use |location=
parameter because "New York" is already in name of paper.
{{cite news |work=The New York Times |title=State Prison Treatment |date=4 February 1883 |url=http://query.nytimes.com/mem/archive-free/pdf?_r=1&res=9503E3D71631E433A25757C0A9649C94629FD7CF |format=PDF }}
:* {{#invoke:citation/CS1|citation
|CitationClass=news }}
Using page to identify the reference by page; news item in library but not on line
{{cite news |first=Arthur |last=Reed |title=Four-rate plan in air-fare 'jungle' |page=3 |date=9 December 1976 |work=The Times |location = London }}
- {{#invoke:citation/CS1|citation
|CitationClass=news }}
A foreign-language news article
{{cite news |author=Joliet, François |title=Honni soit qui mal y pense |date=30 April 2005 |language=French |work=Le Figaro |location=Paris |trans_title=Shame on Those Who Think Evil }}
- {{#invoke:citation/CS1|citation
|CitationClass=news }}
Using archiveurl and archivedate to refer to items that disappeared from newspaper's own website but are now available from an archive site
{{cite news |author=Achenbaum, Emily S. |title=Freedom lost, without a trial |work=The Charlotte Observer |url=http://www.charlotteobserver.com/109/story/47573.html |date=11 March 2007 |archiveurl=http://web.archive.org/web/20070419112159/www.charlotteobserver.com/109/story/47573.html |archivedate=19 April 2007 }}
- {{#invoke:citation/CS1|citation
|CitationClass=news }}
Parameters
Syntax
Nested parameters rely on their parent parameters:
- parent
- OR: parent2—may be used instead of parent
- child—may be used with parent (and is ignored if parent is not used)
- OR: child2—may be used instead of child (and is ignored if parent2 is not used)
- Where aliases are listed, only one of the parameters may be defined; if multiple aliased parameters are defined, then only one will show.
This template embeds COinS metadata in the HTML output, allowing reference management software to retrieve bibliographic metadata; see Wikipedia:COinS.
- Be careful using templates within the citation template, as many will add a lot of extraneous HTML or CSS that will be rendered in the meta-data.
- Known templates that should not be used: {{smallcaps}}.
By default, sets of fields are terminated with a period (.); this can be an issue when the last field in an abbreviation or initial with a period, as two periods then display. The only solution is to not include the last period in the value for the set of fields.
Deprecated
These parameters are deprecated and will no longer work. Use will place the page in Category:Pages containing cite templates with deprecated parameters.
- access-date · accessed · accessdaymonth · accessday · accessmonthday · accessmonth · accessyear: Use accessdate to include the full date of access.
- day: Use date to include the day, month and year.
- dateformat · doilabel: These parameters are no longer supported.
Description
Authors
- last: Surname of author. Do not wikilink—use authorlink instead. Where the surname is usually written first—as in Chinese—or for corporate authors, simply use last to include the same format as the source. Aliases: last1, author, authors, author1.
- first: Given or first names of author, including title(s); for example: Firstname Middlename or Firstname M. or Dr. Firstname M., Sr. Do not wikilink—use authorlink instead. Aliases: first1.
- OR: for multiple authors, use last1, first1 through last9, first9 for up to nine authors. By default, if nine authors are defined, then only eight will show and "et al." will show in place of the last author; see the display parameters to change. Aliases: author1 through author9.
- authorlink: Title of existing Wikipedia article about the author—not the author's website; do not wikilink. Aliases: authorlink1, author-link, author1-link.
- OR: for multiple authors, use authorlink1 through authorlink9. Aliases: author1-link through author9-link.
- coauthors: (deprecated) Names of coauthors. Use the same format as the authors.
- When using Shortened footnotes or Parenthetical referencing styles with templates, do not use multiple names in one field else the anchor will not match the inline link.
Title
Sjabloon:Citation Style documentation/title Sjabloon:Citation Style documentation/language
Periodical
Sjabloon:Citation Style documentation/journal
Date
Sjabloon:Citation Style documentation/date
Publisher
Sjabloon:Citation Style documentation/publisher Sjabloon:Citation Style documentation/agency
Edition, volume
Sjabloon:Citation Style documentation/edition Sjabloon:Citation Style documentation/volume
In-source locations
Sjabloon:Citation Style documentation/pages
URL
Sjabloon:Citation Style documentation/url
Anchor
Sjabloon:Citation Style documentation/ref
Identifiers
Sjabloon:Citation Style documentation/id1 Sjabloon:Citation Style documentation/id2
Quote
Sjabloon:Citation Style documentation/quote
Editors
- editor-last: Surname of editor. Do not wikilink—use editor-link instead. Where the surname is usually written first—as in Chinese—or for corporate authors, simply use editor-last to include the same format as the source. Aliases: editor1-last, editor, editors.
- editor-first: Given or first names of editor, including title(s); example: Firstname Middlename or Firstname M. or Dr. Firstname M., Sr. Do not wikilink—use editor-link instead. Aliases: editor1-first.
- OR: for multiple editors, use editor1-last, editor1-first through editor4-last, editor4-first for up to four editors.
- editor-link: Title of existing Wikipedia article about the editor—not the editor's website; do not wikilink. Aliases: editor1-link.
- OR: for multiple editors, use editor1-link through editor4-link.
- Display:
- If authors: Authors are first, followed by the editors and the included work, then the main work.
- If no authors: Editors appear before the included work; a single editor is followed by "ed."; multiple editors are followed by "eds."; more than three editors will be followed by "et al., eds."
Laysummary
Sjabloon:Citation Style documentation/lay
Display
Sjabloon:Citation Style documentation/display
Template data
<TemplateData> {
"description": "This template formats a citation to a news article in print, video, audio or web using the provided source information (e.g. author, publication, date) and various formatting options.", "params": { "url": { "label": "URL", "description": "The URL of the online location where the text of the publication can be found", "type": "string", "required": false }, "title": { "label": "Source title", "description": "The title of the source page on the website; displays in quotes", "type": "string", "required": true }, "last": { "label": "Last name", "description": "The surname of the author; don't wikilink, use 'authorlink'; can suffix with a numeral to add additional authors", "type": "string", "required": false }, "first": { "label": "First name", "description": "Given or first name, middle names, or initials of the author; don't wikilink, use 'authorlink'; can suffix with a numeral to add additional authors", "type": "string", "required": false }, "date": { "label": "Source date", "description": "Full date of the source; do not wikilink", "type": "string", "required": true }, "work": { "label": "Work", "description": "Name of the source periodical; may be wikilinked; displays in italics; alias of 'newspaper', 'journal', 'magazine', 'periodical'", "type": "string", "required": false }, "publisher": { "label": "Publisher", "description": "Name of the publisher; displays after title", "type": "string", "required": false }, "accessdate": { "label": "URL access date", "description": "The full date when the original URL was accessed; do not wikilink", "type": "string", "required": false }, "authorlink": { "label": "Author link", "description": "Title of existing Wikipedia article about the author; can suffix with a numeral to add additional authors", "type": "string/wiki-page-name", "required": false }, "others": { "label": "Others", "description": "Used to record other contributions to the work, such as 'Illustrated by John Smith' or 'Translated by John Smith'", "type": "string", "required": false }, "month": { "label": "Month of publication", "description": "Name of the month of publication; do not wikilink; use 'date' instead, if day of month is also known", "type": "string", "required": false }, "year": { "label": "Year of publication", "description": "Year of the source being referenced; use 'date' instead, if month and day are also known", "type": "string", "required": false }, "origyear": { "label": "Original year", "description": "Original year of publication; provide specifics", "type": "string", "required": false }, "editor-last": { "label": "Editor last name", "description": "The surname of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors; alias of 'editor1-last', 'editor', and 'editors'", "type": "string", "required": false }, "editor-first": { "label": "Editor first name", "description": "Given or first name, middle names, or initials of the editor; don't wikilink, use 'editor-link'; can suffix with a numeral to add additional editors; alias of 'editor1-first'", "type": "string", "required": false }, "editor-link": { "label": "Editor link", "description": "Title of existing Wikipedia article about the editor; can suffix with a numeral to add additional editors; alias of 'editor1-link'", "type": "string/wiki-page-name", "required": false }, "issue": { "label": "Issue", "description": "Issue identifier when the source is part of a series that is published periodically", "type": "string", "required": false }, "department": { "label": "Department", "description": "Department within the periodical", "type": "string", "required": false }, "location": { "label": "Location of publication", "description": "Geographical place of publication; usually not wikilinked; omit when the publication name includes place; alias of 'place'", "type": "string", "required": false }, "publication-place": { "label": "Place of publication", "description": "Publication place shows after title; if 'place' or 'location' are also given, they are displayed before the title prefixed with 'written at'", "type": "string", "required": false }, "publication-date": { "label": "Publication date", "description": "Date of publication when different from the date the work was written; do not wikilink", "type": "string", "required": false }, "agency": { "label": "Agency", "description": "The news agency (wire service) that provided the content; examples: Associated Press, Reuters, Agence France-Presse", "type": "string", "required": false }, "edition": { "label": "Edition", "description": "When the publication has more than one edition; for example: '2nd', 'Revised' etc.; suffixed with ' ed.'", "type": "string", "required": false }, "volume": { "label": "Volume", "description": "For one publication published in several volumes", "type": "string", "required": false }, "page": { "label": "Page", "description": "Page in the source that supports the content; displays after 'p.'", "type": "string", "required": false }, "pages": { "label": "Pages", "description": "Pages in the source that support the content (not an indication of the number of pages in the source; displays after 'pp.'", "type": "string", "required": false }, "nopp": { "label": "No pp", "description": "Set to 'y' to suppress the 'p.' or 'pp.' display with 'page' or 'pages' when inappropriate (such as 'Front cover')", "type": "string", "required": false }, "at": { "label": "At", "description": "May be used instead of 'page' or 'pages' where a page number is inappropriate or insufficient", "type": "string", "required": false }, "language": { "label": "Language", "description": "The language in which the source is written, if not English; use the full language name; do not use icons or templates", "type": "string", "required": false }, "trans_title": { "label": "Translated title", "description": "An English language title, if the source cited is in a foreign language; 'language' is recommended", "type": "string", "required": false }, "type": { "label": "Type", "description": "Additional information about the media type of the source; format in sentence case", "type": "string", "required": false }, "format": { "label": "Format", "description": "Format of the work referred to by 'url'; examples: PDF, DOC, XLS; do not specify HTML", "type": "string", "required": false }, "arxiv": { "label": "arXiv identifier", "description": "An identifier for arXive electronic preprints of scientific papers", "type": "string", "required": false }, "asin": { "label": "AZIN", "description": "Amazon Standard Identification Number; 10 characters", "type": "string", "required": false }, "asin-tld": { "label": "AZIN TLD", "description": "ASIN top-level domain for Amazon sites other than the US", "type": "string", "required": false }, "bibcode": { "label": "Bibcode", "description": "Bibliographic Reference Code (REFCODE); 19 characters", "type": "string", "required": false }, "doi": { "label": "DOI", "description": "Digital Object Identifier; begins with '10.'", "type": "string", "required": false }, "doi_brokendate": { "label": "DOI broken date", "description": "The date that the DOI was determined to be broken", "type": "string", "required": false }, "isbn": { "label": "ISBN", "description": "International Standard Book Number; use the 13-digit ISBN where possible", "type": "string", "required": false }, "issn": { "label": "ISSN", "description": "International Standard Serial Number; 8 characters; may be split into two groups of four using a hyphen", "type": "string", "required": false }, "jfm": { "label": "jfm code", "description": "Jahrbuch über die Fortschritte der Mathematik classification code", "type": "string", "required": false }, "jstor": { "label": "JSTOR", "description": "JSTOR identifier", "type": "string", "required": false }, "lccn": { "label": "LCCN", "description": "Library of Congress Control Number", "type": "string", "required": false }, "mr": { "label": "MR", "description": "Mathematical Reviews identifier", "type": "string", "required": false }, "oclc": { "label": "OCLC", "description": "Online Computer Library Center number", "type": "string", "required": false }, "ol": { "label": "OL", "description": "Open Library identifier", "type": "string", "required": false }, "osti": { "label": "OSTI", "description": "Office of Scientific and Technical Information identifier", "type": "string", "required": false }, "pmc": { "label": "PMC", "description": "PubMed Center article number", "type": "string", "required": false }, "pmid": { "label": "PMID", "description": "PubMed Unique Identifier", "type": "string", "required": false }, "rfc": { "label": "RFC", "description": "Request for Comments number", "type": "string", "required": false }, "ssrn": { "label": "SSRN", "description": "Social Science Research Network", "type": "string", "required": false }, "zbl": { "label": "Zbl", "description": "Zentralblatt MATH journal identifier", "type": "string", "required": false }, "id": { "label": "id", "description": "A unique identifier used where none of the specialized ones are applicable", "type": "string", "required": false }, "archiveurl": { "label": "Archive URL", "description": "The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archivedate'", "type": "string", "required": false }, "archivedate": { "label": "Archive date", "description": "Date when the original URL was archived; do not wikilink", "type": "string", "required": false }, "deadurl": { "label": "Dead URL", "description": "If set to 'no', the title display is adjusted; useful for when the URL is archived preemptively but still live", "type": "string", "required": false }, "quote": { "label": "Quote", "description": "Relevant text quoted from the source; displays last, enclosed in quotes; needs to include terminating punctuation", "type": "string", "required": false }, "ref": { "label": "Ref", "description": "An anchor identifier; can be made the target of wikilinks to full references; special value 'harv' generates an anchor suitable for the harv template", "type": "string", "required": false }, "separator": { "label": "Separator", "description": "The punctuation used to separate lists of authors, editors, etc.; a space must be encoded as do not use an asterisk, colon, or hash mark", "type": "string", "default": ".", "required": false }, "postscript": { "label": "Postscript", "description": "The closing punctuation for the citation; ignored if 'quote' is defined", "type": "string", "default": ".", "required": false }, "layurl": { "label": "Lay URL", "description": "URL link to a non-technical summary or review of the source; alias of 'laysummary'", "type": "string", "required": false }, "laysource": { "label": "Lay source", "description": "Name of the source of the laysummary; displays in italics, preceded by an en dash", "type": "string", "required": false }, "laydate": { "label": "Lay date", "description": "Date of the summary; displays in parentheses", "type": "string", "required": false }, "author-mask": { "label": "Author mask", "description": "Replaces the name of the first author with em dashes or text; set to a numeric value 'n' to set the dash 'n' em spaces wide; set to a text value to display the text without a trailing author separator; for example, 'with' instead", "type": "string", "required": false }, "author-name-separator": { "label": "Author name separator", "description": "Changes the separator between last and first names; defaults to a comma and space; a space must be encoded as do not use an asterisk, colon, or hash mark", "type": "string", "default": ", ", "required": false }, "author-separator": { "label": "Author separator", "description": "Changes the separator between authors; defaults to a semicolon and space; a space must be encoded as do not use an asterisk, colon, or hash mark", "type": "string", "default": "; ", "required": false }, "display-authors": { "label": "Display authors", "description": "number of authors to display before 'et al.' is used; default is to do so after 8 of 9 are listed; alias of 'displayauthors'", "type": "number", "default": "8", "required": false }, "lastauthoramp": { "label": "Last author ampersand", "description": "When set to any value, changes the separator between the last two names of the author list to 'space ampersand space'", "type": "string", "required": false } }
} </TemplateData>
See also
Sjabloon:Citation Style 1 {{#invoke: Navbox | navbox }} This template produces COinS metadata; see COinS in Wikipedia for background information.