Editing Template:Cite news
Template page
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{title|}}} | <includeonly>{{#if: {{{title|}}} | ||
|{{#if:{{{archiveurl|}}}{{{archivedate|}}}|{{#if:{{#if:{{{archiveurl|}}}|{{#if:{{{archivedate|}}}|1}}}}||Error on call {{tl|cite news}} template: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted.}} | |{{#if: {{{archiveurl|}}}{{{archivedate|}}} | ||
}}{{#if:{{{first|}}}{{{last|}}}|{{#if:{{{last|}}}|{{{last}}}, }}{{{first|}}}{{#if:{{{coauthors|}}} | |{{#if: {{#if: {{{archiveurl|}}}|{{#if: {{{archivedate|}}}|1}}}} | ||
}}{{#if:{{{curly|}}}|“|"}}{{#if:{{{archiveurl|}}}|[{{{archiveurl}}} {{{title}}}] | | <!-- 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:{{{ | }} | ||
}}{{#if:{{{publisher|}}} | }}{{#if: {{{first|}}}{{{last|}}} | ||
}}{{#if:{{{date|}}}|, {{{date}}} | |{{#if: {{{last|}}} | ||
}}{{#if:{{{pages|}}} | |{{{last}}}, | ||
}} | }}{{{first|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki> {{{coauthors}}} }}, | ||
}}{{#if:{{{accessdate|}}}| Retrieved on {{{accessdate}}} | |{{#if: {{{author|}}} | ||
}}{{#if:{{{language|}}}|  | |{{{author|}}}{{#if: {{{coauthors|}}}| <nowiki>;</nowiki> {{{coauthors}}} }}. | ||
}}|Error on call {{tl|cite news}}: Parameters '''title''' ''must'' be specified.}}</includeonly><noinclude> | }} | ||
}}{{#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 31: | Line 56: | ||
|page = | |page = | ||
|date = | |date = | ||
|archiveurl = | |archiveurl = | ||
|archivedate = | |archivedate = | ||
| Line 48: | Line 72: | ||
* '''[[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. | * '''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''. | * '''archivedate''': Date when the item was archived (requires '''archiveurl'''), in [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format, e.g. ''2006-02-17''. | ||
| Line 55: | Line 78: | ||
* '''pages''' overrides '''page''' | * '''pages''' overrides '''page''' | ||
* '''language''': the language the source is written in | * '''language''': the language the source is written in | ||
[[Category:Citation templates|{{PAGENAME}}]] | [[Category:Citation templates|{{PAGENAME}}]] | ||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||