Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Cite news: Difference between revisions

Template page
Shane (talk | contribs)
mNo edit summary
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{title|}}}
<includeonly>{{#if: {{{title|}}}
  |{{#if: {{{first|}}}{{{last|}}}
  |{{#if: {{{archiveurl|}}}{{{archivedate|}}}
    |{{#if: {{{last|}}}
    |{{#if: {{#if: {{{archiveurl|}}}|{{#if: {{{archivedate|}}}|1}}}}
      |{{{last}}},&nbsp;
      | <!-- Both archiveurl and archivedate are present, proceed -->
  }}{{{first|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }},&nbsp;
      | Error on call {{tl|cite news}} template: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted.
    |{{#if: {{{author|}}}
    }}
      |{{{author|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }}.&nbsp;
  }}{{#if: {{{first|}}}{{{last|}}}
  }}
    |{{#if: {{{last|}}}
  }}{{#if: {{{curly|}}}|“|"}}{{#if: {{{url|}}}
      |{{{last}}},&nbsp;
    |[{{{url}}} {{{title}}}]
    }}{{{first|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }},&nbsp;
    |{{{title}}}
    |{{#if: {{{author|}}}
  }}{{
      |{{{author|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }}.&nbsp;
  #if: {{{format|}}} | &#32;({{formattype|{{{format}}}}})
    }}
  }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{work|}}}
  }}{{#if: {{{curly|}}}|“|"}}{{#if: {{{archiveurl|}}}
    |, &#32;''{{{work}}}''}}{{#if: {{{publisher|}}}
    |[{{{archiveurl}}} {{{title}}}]
    |, ''{{{publisher}}}''
    |{{#if: {{{url|}}}
  }}{{#if: {{{date|}}}
      |[{{{url}}} {{{title}}}]
    |, {{{date}}}
      |{{{title}}}
  }}{{#if: {{{pages|}}}
    }}
    |, pp. {{{pages}}}
  }}{{#if: {{{format|}}}
    |{{#if: {{{page|}}}
    | &#32;({{formattype|{{{format}}}}})
      |, p. {{{page}}}
  }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{work|}}}
    }}
    |, &#32;''{{{work}}}''}}{{#if: {{{publisher|}}}
  }}{{#if: {{{accessdate|}}}
    |, ''{{{publisher}}}''
  |.&#32;Retrieved on {{{accessdate}}}
  }}{{#if: {{{date|}}}
  }}.{{#if: {{{language|}}}
    |, {{{date}}}
  |&#32;(written in {{{language|}}})
  }}{{#if: {{{pages|}}}
  }}|Error on call {{tl|cite news}}: Parameters '''title''' ''must'' be specified.}}</includeonly><noinclude>
    |, pp. {{{pages}}}
    |{{#if: {{{page|}}}
      |, p. {{{page}}}
    }}
  }}{{#if: {{{archiveurl|}}}
    |. Archived from [{{{url}}} the original] on {{{archivedate}}}
  }}{{#if: {{{accessdate|}}}
    |.&#32;Retrieved on {{{accessdate}}}
  }}.{{#if: {{{language|}}}
    |&#32;(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 =  
 |first =
|last =  
 |last =
|author =  
 |author =
|coauthors =
 |coauthors =
|url =  
 |url =
|curly =
 |title =
|format =
 |curly =
|title =  
 |format =
|work =  
 |work =
|publisher =  
 |publisher =
|pages =  
 |pages =
|page =  
 |page =
|date =  
 |date =
|accessdate =  
 |archiveurl =
|language =  
 |archivedate =
 |accessdate =
 |language =
}}
}}
</pre>
</pre>
<code><nowiki>{{cite news | first = | last = | author = | coauthors =| url = | title = | work = | publisher = | pages = | page = | date = | accessdate = | language = }}</nowiki></code>
<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
  • 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