Difference between revisions of "Template:Cite news"
From Self-sufficiency
(yep it should) |
(made change per talk request) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#if: {{{title|}}} | + | <includeonly>{{ |
+ | #if: {{{archiveurl|}}}{{{archivedate|}}} | ||
+ | | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}} | ||
+ | ||Error on call to [[template:cite news]]: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted | ||
+ | }} | ||
+ | }}{{#if: {{{title|}}} | ||
|{{#if: {{{author|}}}{{{last|}}} | |{{#if: {{{author|}}}{{{last|}}} | ||
| {{#if: {{{authorlink|}}} | | {{#if: {{{authorlink|}}} | ||
Line 13: | Line 18: | ||
}}{{#if: {{{author|}}}{{{last|}}} | }}{{#if: {{{author|}}}{{{last|}}} | ||
| {{#if: {{{coauthors|}}} | , {{{coauthors}}} }}.  | | {{#if: {{{coauthors|}}} | , {{{coauthors}}} }}.  | ||
− | }}{{#if: {{{curly|}}}|“|"}}{{#if: {{{url|}}} | + | }}{{#if: {{{curly|}}}|“|" |
− | + | }}{{#if: {{{archiveurl|}}} | |
− | + | | [{{{archiveurl}}} {{{title}}}] | |
+ | | {{#if: {{{url|}}} | ||
+ | | [{{{url}}} {{{title}}}] | ||
+ | | {{{title}}} | ||
+ | }} | ||
}}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} |  ({{{format}}}) | }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} |  ({{{format}}}) | ||
}}{{#if: {{{work|}}} | }}{{#if: {{{work|}}} | ||
Line 33: | Line 42: | ||
}}.{{#if: {{{language|}}} | }}.{{#if: {{{language|}}} | ||
|  (in {{{language|}}}) | |  (in {{{language|}}}) | ||
+ | }}{{#if: {{{archivedate|}}} | ||
+ | |  Archived from [{{{url}}} the original] on [[{{{archivedate}}}]]. | ||
}}{{ #if: {{{quote|}}} | }}{{ #if: {{{quote|}}} | ||
| “{{{quote}}}” | | “{{{quote}}}” | ||
Line 49: | Line 60: | ||
-->{{#if: {{{format|}}} | &rft.format={{urlencode:{{{format}}}}} }}<!-- The physical or digital manifestation of the resource... may include the media-type or dimensions of the resource. | -->{{#if: {{{format|}}} | &rft.format={{urlencode:{{{format}}}}} }}<!-- The physical or digital manifestation of the resource... may include the media-type or dimensions of the resource. | ||
-->{{#if: {{{work|}}} | &rft.source={{urlencode:{{{work}}}}} }}<!-- A Reference to a resource from which the present resource is derived. | -->{{#if: {{{work|}}} | &rft.source={{urlencode:{{{work}}}}} }}<!-- A Reference to a resource from which the present resource is derived. | ||
− | -->{{#if: {{{publisher|}}} | &rft.publisher={{urlencode:{{{publisher}}}}} }}<!-- An entity | + | -->{{#if: {{{publisher|}}} | &rft.publisher={{urlencode:{{{publisher}}}}} }}<!-- An entity responsible for making the resource available... person, an organization, or a service. |
-->{{#if: {{{pages|}}} | &rft.pages={{urlencode:{{{pages}}}}} }}<!-- Start and end pages for parts (of a book), i.e. "124-147" | -->{{#if: {{{pages|}}} | &rft.pages={{urlencode:{{{pages}}}}} }}<!-- Start and end pages for parts (of a book), i.e. "124-147" | ||
− | -->{{#if: {{{page|}}} | &rft.spage={{urlencode:{{{page}}}}} | + | -->{{#if: {{{page|}}} | &rft.spage={{urlencode:{{{page}}}}} }}<!-- Start page for parts (of a book), i.e. "124" |
-->{{#if: {{{date|}}} | &rft.date={{urlencode:{{{date}}}}} }}<!-- A date of an event in the lifecycle of the resource... typically the creation or availability of the resource. (ISO 8601) | -->{{#if: {{{date|}}} | &rft.date={{urlencode:{{{date}}}}} }}<!-- A date of an event in the lifecycle of the resource... typically the creation or availability of the resource. (ISO 8601) | ||
-->{{#if: {{{language|}}} | &rft.language={{urlencode:{{{language}}}}} }}<!-- A language of the intellectual content of the resource. Recommended best practice is to use RFC 3066... in conjunction with ISO639 | -->{{#if: {{{language|}}} | &rft.language={{urlencode:{{{language}}}}} }}<!-- A language of the intellectual content of the resource. Recommended best practice is to use RFC 3066... in conjunction with ISO639 | ||
-->"> </span></includeonly><noinclude> | -->"> </span></includeonly><noinclude> | ||
− | {{ | + | {{pp-template|small=yes}} |
− | {{/doc}} | + | {{/doc}}</noinclude> |
− | </noinclude> | + |