Template:Cite news: Difference between revisions
Template page
More actions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{title|}}} | <includeonly>{{#if: {{{title|}}} | ||
|{{#if: {{{archiveurl|}}}{{{archivedate|}}} | |||
|{{#if: {{#if: {{{archiveurl|}}}|{{#if: {{{archivedate|}}}|1}}}} | |||
| <!-- Both archiveurl and archivedate are present, proceed --> | |||
| Error on call {{tl|cite news}} template: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted. | |||
}} | |||
}}{{#if: {{{first|}}}{{{last|}}} | |||
|{{#if: {{{last|}}} | |||
|{{{last}}}, | |||
}}{{{first|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki> {{{coauthors}}} }}, | |||
|{{#if: {{{author|}}} | |||
|{{{author|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki> {{{coauthors}}} }}. | |||
}} | |||
}}{{#if: {{{curly|}}}|“|"}}{{#if: {{{archiveurl|}}} | |||
|[{{{archiveurl}}} {{{title}}}] | |||
|{{#if: {{{url|}}} | |||
|[{{{url}}} {{{title}}}] | |||
|{{{title}}} | |||
}} | |||
}}{{#if: {{{format|}}} | |||
|  ({{formattype|{{{format}}}}}) | |||
}}{{#if: {{{curly|}}}|”|"}}{{#if: {{{work|}}} | |||
|,  ''{{{work}}}''}}{{#if: {{{publisher|}}} | |||
|, ''{{{publisher}}}'' | |||
}}{{#if: {{{date|}}} | |||
|, {{{date}}} | |||
}}{{#if: {{{pages|}}} | |||
|, pp. {{{pages}}} | |||
|{{#if: {{{page|}}} | |||
|, p. {{{page}}} | |||
}} | |||
}}{{#if: {{{archiveurl|}}} | |||
|. Archived from [{{{url}}} the original] on {{{archivedate}}} | |||
}}{{#if: {{{accessdate|}}} | |||
|. Retrieved on {{{accessdate}}} | |||
}}.{{#if: {{{language|}}} | |||
| (written in {{{language|}}}) | |||
}}|Error on call {{tl|cite news}}: Parameters '''title''' ''must'' be specified.}}</includeonly><noinclude> | |||
__NOTOC__ | __NOTOC__ | ||
This template is used to [[BW:CITE|cite sources]] in ''Battlestar Wiki''. It is specifically for news sources. | This template is used to [[BW:CITE|cite sources]] in ''Battlestar Wiki''. It is specifically for news sources. | ||
| Line 32: | Line 42: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{cite news | {{cite news | ||
|first = | |||
|last = | |||
|author = | |||
|coauthors = | |||
|url = | |||
|title = | |||
|curly = | |||
|format = | |||
|work = | |||
|publisher = | |||
|pages = | |||
|page = | |||
|date = | |||
|archiveurl = | |||
|archivedate = | |||
|accessdate = | |||
|language = | |||
}} | }} | ||
</pre> | </pre> | ||
<code><nowiki>{{cite news | <code><nowiki>{{cite news | url = | title = | work = | publisher = | date = | accessdate = }}</nowiki></code> | ||
*'''title''' is required, rest is optional. | *'''title''' is required, rest is optional. | ||
* '''url''': The direct URL to the news source. | |||
* '''author''': Author | * '''author''': Author | ||
** '''last''' works with '''first''' to produce <code>last, first</code> | ** '''last''' works with '''first''' to produce <code>last, first</code> | ||
| Line 57: | Line 71: | ||
* '''publisher''': Publisher, if any. | * '''publisher''': Publisher, if any. | ||
* '''[[Template:formattype|format]]''': Format of news item. e.x. PDF, HTML. ''HTML'' implied if left blank. | * '''[[Template:formattype|format]]''': Format of news item. e.x. PDF, HTML. ''HTML'' implied if left blank. | ||
* '''date''': date of publication. [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format recommended. | * '''date''': date of publication. [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format recommended. | ||
* '''archiveurl''': URL of the archive location of the item (requires '''archivedate'''). The title will be linked to this URL. | |||
* '''archivedate''': Date when the item was archived (requires '''archiveurl'''), in [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''. | |||
* '''accessdate''': Date when item was accessed. Use [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format. Do not wikilink the date. | * '''accessdate''': Date when item was accessed. Use [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format. Do not wikilink the date. | ||
* '''work''': If this item is part of a larger work, name of that work. | * '''work''': If this item is part of a larger work, name of that work. | ||
Revision as of 14:30, 3 August 2025
This template is used to cite sources in Battlestar Wiki. It is specifically for news sources.
Usage
{{cite news
|first =
|last =
|author =
|coauthors =
|url =
|title =
|curly =
|format =
|work =
|publisher =
|pages =
|page =
|date =
|archiveurl =
|archivedate =
|accessdate =
|language =
}}
{{cite news | url = | title = | work = | publisher = | date = | accessdate = }}
- title is required, rest is optional.
- url: The direct URL to the news source.
- author: Author
- last works with first to produce
last, first - coauthors allows additional authors
- last works with first to produce
- publisher: Publisher, if any.
- format: Format of news item. e.x. PDF, HTML. HTML implied if left blank.
- date: date of publication. ISO 8601 YYYY-MM-DD format recommended.
- archiveurl: URL of the archive location of the item (requires archivedate). The title will be linked to this URL.
- archivedate: Date when the item was archived (requires archiveurl), in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17.
- accessdate: Date when item was accessed. Use ISO 8601 YYYY-MM-DD format. Do not wikilink the date.
- work: If this item is part of a larger work, name of that work.
- pages overrides page
- language: the language the source is written in