Difference between revisions of "Template:Cite news"

From Self-sufficiency
Jump to: navigation, search
(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|}}} | ,&#32;{{{coauthors}}} }}.&#32;
 
     | {{#if: {{{coauthors|}}} | ,&#32;{{{coauthors}}} }}.&#32;
   }}{{#if: {{{curly|}}}|“|"}}{{#if: {{{url|}}}
+
   }}{{#if: {{{curly|}}}|“|"
  | [{{{url}}} {{{title}}}]  
+
  }}{{#if: {{{archiveurl|}}}
  | {{{title}}}
+
    | [{{{archiveurl}}} {{{title}}}]
 +
    | {{#if: {{{url|}}}  
 +
      | [{{{url}}} {{{title}}}]  
 +
      | {{{title}}}
 +
    }}
 
   }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} | &#32;({{{format}}})  
 
   }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} | &#32;({{{format}}})  
 
     }}{{#if: {{{work|}}}
 
     }}{{#if: {{{work|}}}
Line 33: Line 42:
 
   }}.{{#if: {{{language|}}}
 
   }}.{{#if: {{{language|}}}
 
   | &#32;(in {{{language|}}})
 
   | &#32;(in {{{language|}}})
 +
  }}{{#if: {{{archivedate|}}}
 +
  | &#32;Archived from [{{{url}}} the original] on [[{{{archivedate}}}]].
 
   }}{{ #if: {{{quote|}}}
 
   }}{{ #if: {{{quote|}}}
 
     | &nbsp;“{{{quote}}}”
 
     | &nbsp;“{{{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 responsbile for making the resource available... person, an organization, or a service.
+
   -->{{#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}}}}}         }}<!-- Start page for parts (of a book), i.e. "124"
+
   -->{{#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
 
   -->">&nbsp;</span></includeonly><noinclude>
 
   -->">&nbsp;</span></includeonly><noinclude>
{{protected template}}
+
{{pp-template|small=yes}}
{{/doc}}
+
{{/doc}}</noinclude>
</noinclude>
+

Revision as of 23:48, 11 August 2007

Template:/doc