TwitterFacebookDiscord

Difference between revisions of "Template:Cite news"

Wikisimpsons - The Simpsons Wiki
Line 1: Line 1:
<includeonly>{{
+
<includeonly>{{#if: {{{archiveurl|}}}{{{archivedate|}}}
#if: {{{archiveurl|}}}{{{archivedate|}}}  
+
| {{#if: {{#if: {{{archiveurl|}}} | {{#if: {{{archivedate|}}} | 1 }} }}
  | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
+
  | <div style="border:1px solid red; background-color:#ffdab9; display:table;">
    ||<div style="border:1px solid red; background-color:#ffdab9; display:table;">  
+
You must specify '''archiveurl=''' and '''archivedate=''' when using {{tl|cite news}}. Available parameters:
You must specify '''''archiveurl=''''' and '''''archivedate=''' when using {{tl|cite news}}. Available parameters:
 
 
{{Cite news/doc/parameterlist}}
 
{{Cite news/doc/parameterlist}}
</div>{{
+
</div>
    #if: {{NAMESPACE}}||
 
      }}
 
 
}}
 
}}
}}{{#if: {{{title|}}}
+
}}
  |{{#if: {{{author|}}}{{{last|}}}
+
 
    | {{#if: {{{authorlink|}}}
+
{{#if: {{{title|}}}
      | [[{{{authorlink}}}|{{#if: {{{last|}}}
+
| {{#if: {{{author|}}}{{{last|}}}
        | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
+
  | {{#if: {{{authorlink|}}}
        | {{{author}}}
+
    | [[{{{authorlink}}}|{{#if: {{{last|}}}
      }}]]
+
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
      | {{#if: {{{last|}}}
+
      | {{{author}}}
        | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
+
    }}]]
        | {{{author}}}
+
    | {{#if: {{{last|}}}
      }}
+
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 
     }}
 
     }}
   }}{{#if: {{{author|}}}{{{last|}}}
+
   }}
    | {{#if: {{{coauthors|}}} | &#59;&#32;{{{coauthors}}} }}.&#32;
+
}}
  }}{{#if: {{{curly|}}}|“|"
+
 
  }}{{#if: {{{archiveurl|}}}
+
{{#if: {{{author|}}}{{{last|}}}
    | [{{{archiveurl}}} {{{title}}}]  
+
| {{#if: {{{coauthors|}}} | ; {{{coauthors}}}. }}
    | {{#if: {{{url|}}}  
+
}}
      | [{{{url}}} {{{title}}}]  
+
 
      | {{{title}}}
+
{{#if: {{{curly|}}}|“|"}}
    }}
+
 
  }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} | &#32;({{{format}}})  
+
{{#if: {{{archiveurl|}}}
    }}{{#if: {{{work|}}}
+
| [{{{archiveurl}}} {{{title}}}]
    | , ''{{{work}}}''}}{{#if: {{{publisher|}}}
+
| {{#if: {{{url|}}}
    | {{#if: {{{location|}}} |{{{location}}}:&#32;}}{{{publisher}}}
+
  | [{{{url}}} {{{title}}}]
  }}{{#if: {{{date|}}}
+
  | {{{title}}}
    | {{#if: {{{date}}}}}|{{{date}}}|{{{date}}}}}
+
}}
  }}{{#if: {{{pages|}}}
+
}}
    | , pp.&nbsp;{{{pages}}}
+
 
    |{{#if: {{{page|}}}
+
{{#if: {{{curly|}}}|”|"}}
      | , p.&nbsp;{{{page}}}
+
 
    }}
+
{{#if: {{{format|}}} | ({{{format}}}) }}
  }}{{#if: {{{id|}}}  
+
 
    | . {{{id}}}
+
{{#if: {{{work|}}} | ''{{{work}}}'' }}
  }}{{#if: {{{accessdate|}}}
+
 
  | .&#32;Retrieved on {{{accessdate}}}
+
{{#if: {{{publisher|}}}
  }}.{{#if: {{{language|}}}
+
| {{#if: {{{location|}}} | {{{location}}}: }} {{{publisher}}}
  | &#32;<span style="color:#555;">({{{language}}})</span>  
+
}}
  }}{{#if: {{{archivedate|}}}
+
 
  | &#32;Archived from [{{{url}}} the original] on {{{archivedate}}}.
+
{{#if: {{{date|}}}
  }}{{ #if: {{{quote|}}}
+
| {{{date}}}
    | &nbsp;"{{{quote}}}"
+
}}
  }}<!--
+
 
 +
{{#if: {{{pages|}}}
 +
| , pp.&nbsp;{{{pages}}}
 +
| {{#if: {{{page|}}} | , p.&nbsp;{{{page}}} }}
 +
}}
 +
 
 +
{{#if: {{{id|}}} | . {{{id}}} }}
 +
 
 +
{{#if: {{{accessdate|}}}
 +
| . Retrieved on {{{accessdate}}}
 +
}}
 +
 
 +
{{#if: {{{language|}}}
 +
| <span style="color:#555;">({{{language}}})</span>
 +
}}
 +
 
 +
{{#if: {{{archivedate|}}}
 +
| Archived from [{{{url}}} the original] on {{{archivedate}}}.
 +
}}
 +
 
 +
{{#if: {{{quote|}}}
 +
| "{{{quote}}}"
 +
}}
  
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
+
<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info:ofi/fmt:kev:mtx:dc
  --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
+
&rft.type=newspaperArticle
  -->&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:dc}}<!--                    Field descriptions: http://www.openurl.info/registry/docs/mtx/info:ofi/fmt:kev:mtx:dc
+
&rft.subject=News
  -->&rft.type=newspaperArticle<!--                                            The nature or genre of the content of the resource.  (newspaperArticle chosen purely because it is recognized by Zotero.)
+
{{#if: {{{first|}}} | &rft.aufirst={{{first}}} }}
  -->&rft.subject=News<!--                                                      A topic of the content of the resource. Typically expressed as keywords, key phrases or classification codes...
+
{{#if: {{{last|}}} | &rft.aulast={{{last}}} }}
  -->{{#if: {{{first|}}}     | &rft.aufirst={{urlencode:{{{first}}}}}       }}<!-- First author's given name or names or initials... may contain multiple words and punctuation, i.e. "Fred F", "Fred James"
+
{{#if: {{{author|}}} | &rft.au={{{author}}} }}
  -->{{#if: {{{last|}}}     | &rft.aulast={{urlencode:{{{last}}}}}         }}<!-- First author's family name. This may be more than one word ... i.e. Smith, Fred James is recorded as "aulast=smith"
+
&rft.title={{{title|}}}
  -->{{#if: {{{author|}}}   | &rft.au={{urlencode:{{{author}}}}}           }}<!-- This data element contains the full name of a single author, i. e. "Smith, Fred M", "Harry S. Truman".
+
{{#if: {{{url|}}} | &rft.identifier={{{url}}} }}
  -->&rft.title={{urlencode:{{{title|}}}}}<!--                                    A name given to the resource.
+
{{#if: {{{format|}}} | &rft.format={{{format}}} }}
  -->{{#if: {{{url|}}}       | &rft.identifier={{urlencode:{{{url}}}}}     }}<!-- URL
+
{{#if: {{{work|}}} | &rft.source={{{work}}} }}
  -->{{#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: {{{publisher|}}} | &rft.publisher={{{publisher}}} }}
  -->{{#if: {{{work|}}}     | &rft.source={{urlencode:{{{work}}}}}         }}<!-- A Reference to a resource from which the present resource is derived.
+
{{#if: {{{pages|}}} | &rft.pages={{{pages}}} }}
  -->{{#if: {{{publisher|}}} | &rft.publisher={{urlencode:{{{publisher}}}}} }}<!-- An entity responsible for making the resource available... person, an organization, or a service.
+
{{#if: {{{page|}}} | &rft.spage={{{page}}} }}
  -->{{#if: {{{pages|}}}     | &rft.pages={{urlencode:{{{pages}}}}}         }}<!-- Start and end pages for parts (of a book), i.e. "124-147"
+
{{#if: {{{language|}}} | &rft.language={{{language}}} }}
  -->{{#if: {{{page|}}}     | &rft.spage={{urlencode:{{{page}}}}}         }}<!-- Start page for parts (of a book), i.e. "124"
+
">&nbsp;</span></includeonly>
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
 
  -->">&nbsp;</span></includeonly>
 
 
<noinclude>[[Category:Templates]][[sv:Mall:Cite news]][[sv:Mall:Tidningsref]]</noinclude>
 
<noinclude>[[Category:Templates]][[sv:Mall:Cite news]][[sv:Mall:Tidningsref]]</noinclude>

Revision as of 12:16, April 25, 2026