Template:Cite news: Difference between revisions

From Feminist SF Wiki
Jump to navigation Jump to search
(created template for news cites)
 
(more experimenting)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{title|}}}
  |{{#if: {{{author|}}}{{{last|}}}
    | {{#if: {{{authorlink|}}}
      | [[{{{authorlink}}}|{{#if: {{{last|}}}
        | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
        | {{{author}}}
      }}]]
      | {{#if: {{{last|}}}
        | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
        | {{{author}}}
      }}
    }}
  }}{{#if: {{{author|}}}{{{last|}}}
    | {{#if: {{{coauthors|}}} | ,&#32;{{{coauthors}}} }}.&#32;
  }}{{#if: {{{curly|}}}|“|"}}{{#if: {{{url|}}}
  | [{{{url}}} {{{title}}}]
  | {{{title}}}
  }}{{#if: {{{curly|}}}|”|"}}{{#if: {{{format|}}} | &#32;({{{format}}})
    }}{{#if: {{{work|}}}
    | , ''{{{work}}}''}}{{#if: {{{publisher|}}}
    | , {{{publisher}}}
  }}{{#if: {{{date|}}}
    | , {{{date}}}
  }}{{#if: {{{pages|}}}
    | , pp.&nbsp;{{{pages}}}
    |{{#if: {{{page|}}}
      | , p.&nbsp;{{{page}}}
    }}
  }}{{#if: {{{id|}}}
    | . {{{id}}}
  }}{{#if: {{{accessdate|}}} 
  | .&#32;Retrieved on [[{{{accessdate}}}]]
  }}.{{#if: {{{language|}}}
  | &#32;(in {{{language|}}})
  }}{{ #if: {{{quote|}}}
    | &nbsp;“{{{quote}}}”
  }}|Template error: argument '''title''' is required.}}<!--
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={{urlencode:info:ofi/fmt:kev:mtx:dc}}<!--                    Field descriptions: http://www.openurl.info/registry/docs/mtx/info:ofi/fmt:kev:mtx:dc
  -->&rft.type=newspaperArticle<!--                                            The nature or genre of the content of the resource.  (newspaperArticle chosen purely because it is recognized by Zotero.)
  -->&rft.subject=News<!--                                                      A topic of the content of the resource. Typically expressed as keywords, key phrases or classification codes...
  -->{{#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: {{{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"
  -->{{#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".
  -->&rft.title={{urlencode:{{{title|}}}}}<!--                                    A name given to the resource.
  -->{{#if: {{{url|}}}      | &rft.identifier={{urlencode:{{{url}}}}}      }}<!-- URL
  -->{{#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: {{{publisher|}}} | &rft.publisher={{urlencode:{{{publisher}}}}} }}<!-- An entity responsbile 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: {{{page|}}}      | &rft.spage={{urlencode:{{{pages}}}}}        }}<!-- 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: {{{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>
== Usage ==
All fields '''''must''''' be [[lowercase]].
Copy a blank version to use. Remember to use the "|" (pipe) character between each field.  Please delete any unused fields to avoid clutter in the edit window.
{| class="wikitable" cellpadding="6"
! colspan="3" | Full version (copy and paste text below and delete parameters you don't need)
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |format= |work= |publisher= |id= |pages= |page= |date= |accessdate= |language= |quote= }}</nowiki></span>
|- width="50%" valign="top" style="vertical-align:top;"
! colspan="3" | Most commonly used fields (or you can use this and not have to delete as much)<br/>(This assumes English, HTML format, with today as access date)
|- width="50%" valign="top" style="vertical-align:top;"
| colspan="3" |
:<span style="font-family:Courier; "><nowiki>{{cite news |first= |last= |authorlink= |coauthors= |title= |url= |work= |publisher= |date= |accessdate=</nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}<nowiki> }}</nowiki></span>
|}
;All parameters, vertical format
<pre>
{{cite news  
{{cite news  
  | first =  
  | first =  
Line 18: Line 96:
  | quote =  
  | quote =  
  }}
  }}
</pre>
*'''title''' is required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly.
* '''author''': Author.
** '''last''' works with '''first''' to produce <code>last, first</code>
** '''authorlink''' works either with '''author''' or with '''last''' & '''first''' to link to the appropriate Wikipedia article. Does not work with URLs.
** '''coauthors''': Allows additional authors.
* '''url''': Link to the news item if available online.
** '''format''': Format, i.e. PDF. Don't specify for HTML (implied as default).
**: Specify as'' 'fee required' ''if free access is no longer available.
**: Specify as'' 'Reprint' ''if you use a full original version but not hosted by the original publisher.
* '''work''': Such as a column, sub part of issue, multi-part work.
* '''publisher''': Usually the news source.
*'''id''': Identifier such as <nowiki>{{</nowiki>[[:Template:ISSN|ISSN]]|0028-0836}} — remember, if you use this parameter, you '''must''' specify the kind of identifier, not just give a number.
* '''date''': Date of publication. [[ISO 8601]] YYYY-MM-DD format recommended. If the whole date is known it should be [[m:Help:Preferences#Date format|wikilinked]] to enable [http://en.wikipedia.org/wiki/Special:Preferences#prefsection-4 date user preferences].
* '''page''' or '''pages''': The page(s) on which the article is found. '''page''' inserts the abbreviation "p." before the number; '''pages''' inserts "pp." Use only one of these parameters. If numbers are entered for both, '''pages''' overrides '''page'''.
* '''accessdate''': Date when item was accessed. Use [[ISO 8601]] YYYY-MM-DD format. Do not wikilink the date.
* '''language''': The language in which the source is written.
* '''quote''': Relevant quote.
== Examples ==
*<nowiki>{{cite news
| first=John
| last=Doe
| title=News
| url=http://www.url.com/
| work=Encyclopedia of Things
| publisher=News co.
| pages= 37&ndash;39
| date=[[2005-11-21]]
| id={{ISSN|0028-0836}}
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
| first=John
| last=Doe
| title=News
| url=http://www.url.com/
| work=Encyclopedia of Things
| publisher=News co.
| pages= 37&ndash;39
| date=[[2005-11-21]]
| id={{ISSN|0028-0836}}
| accessdate=2005-12-11
}}</div>
*<nowiki>{{cite news
| author=Staff writer
| title=News
| url=http://www.url.com/News.pdf
| format=PDF
| publisher=News co.
| pages= 37&ndash;39
| date=[[2005-11-21]]
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
| author=Staff writer
| title=News
| url=http://www.url.com/News.pdf
| format=PDF
| publisher=News co.
| pages= 37&ndash;39
| date=[[2005-11-21]]
| accessdate=2005-12-11
}}</div>
*<nowiki>{{cite news
| first=John
| last=Doe
| authorlink=John Doe
| title=News
| url=http://www.url.com/background
| format=Reprint
| publisher=News co.
| date=[[2005-11-21]]
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
| first=John
| last=Doe
| authorlink=John Doe
| title=News
| url=http://www.url.com/background
| format=Reprint
| publisher=News co.
| date=[[2005-11-21]]
| accessdate=2005-12-11
}}</div>
*<nowiki>{{cite news
| title=News
| url=http://www.url.com/Archive/News
| format=Fee required
| publisher=News co.
| date=[[2005-11-21]]
| accessdate=2005-12-11}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
| title=News
| url=http://www.url.com/Archive/News
| format=Fee required
| publisher=News co.
| date=[[2005-11-21]]
| accessdate=2005-12-11
}}</div>
*<nowiki>{{cite news
| first=John
| last=Doe
| title=FooBar
| page=1}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
| first=John
| last=Doe
| title=FooBar
| page=1
}}</div>
*<nowiki>{{cite news
| title=FooBar
| page=1
}}</nowiki><br><div style="padding:0.5em">→ {{
cite news
| title=FooBar
| page=1
}}</div>
</noinclude>
[[category:Wikipedia-based templates|{{PAGENAME}}]]

Latest revision as of 15:23, 22 June 2007


Usage

All fields must be lowercase.

Copy a blank version to use. Remember to use the "|" (pipe) character between each field. Please delete any unused fields to avoid clutter in the edit window.

Full version (copy and paste text below and delete parameters you don't need)
{{cite news |first= |last= |authorlink= |author= |coauthors= |title= |url= |format= |work= |publisher= |id= |pages= |page= |date= |accessdate= |language= |quote= }}
Most commonly used fields (or you can use this and not have to delete as much)
(This assumes English, HTML format, with today as access date)
{{cite news |first= |last= |authorlink= |coauthors= |title= |url= |work= |publisher= |date= |accessdate=2025-12-30 }}
All parameters, vertical format
{{cite news 
 | first = 
 | last = 
 | authorlink = 
 | author = 
 | coauthors = 
 | title = 
 | url = 
 | format = 
 | work = 
 | publisher = 
 | id = 
 | pages = 
 | page = 
 | date = 
 | accessdate = 
 | language = 
 | quote = 
 }}
  • title is required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly.
  • author: Author.
    • last works with first to produce last, first
    • authorlink works either with author or with last & first to link to the appropriate Wikipedia article. Does not work with URLs.
    • coauthors: Allows additional authors.
  • url: Link to the news item if available online.
    • format: Format, i.e. PDF. Don't specify for HTML (implied as default).
      Specify as 'fee required' if free access is no longer available.
      Specify as 'Reprint' if you use a full original version but not hosted by the original publisher.
  • work: Such as a column, sub part of issue, multi-part work.
  • publisher: Usually the news source.
  • id: Identifier such as {{ISSN|0028-0836}} — remember, if you use this parameter, you must specify the kind of identifier, not just give a number.
  • date: Date of publication. ISO 8601 YYYY-MM-DD format recommended. If the whole date is known it should be wikilinked to enable date user preferences.
  • page or pages: The page(s) on which the article is found. page inserts the abbreviation "p." before the number; pages inserts "pp." Use only one of these parameters. If numbers are entered for both, pages overrides page.
  • accessdate: Date when item was accessed. Use ISO 8601 YYYY-MM-DD format. Do not wikilink the date.
  • language: The language in which the source is written.
  • quote: Relevant quote.

Examples

  • {{cite news | first=John | last=Doe | title=News | url=http://www.url.com/ | work=Encyclopedia of Things | publisher=News co. | pages= 37–39 | date=[[2005-11-21]] | id={{ISSN|0028-0836}} | accessdate=2005-12-11}}
    → Doe, John. "News", Encyclopedia of Things, News co., 2005-11-21, pp. 37–39. Template:ISSN. Retrieved on 2005-12-11. 
  • {{cite news | author=Staff writer | title=News | url=http://www.url.com/News.pdf | format=PDF | publisher=News co. | pages= 37–39 | date=[[2005-11-21]] | accessdate=2005-12-11}}
    → Staff writer. "News" (PDF), News co., 2005-11-21, pp. 37–39. Retrieved on 2005-12-11. 
  • {{cite news | first=John | last=Doe | authorlink=John Doe | title=News | url=http://www.url.com/background | format=Reprint | publisher=News co. | date=[[2005-11-21]] | accessdate=2005-12-11}}
    Doe, John. "News" (Reprint), News co., 2005-11-21. Retrieved on 2005-12-11. 
  • {{cite news | title=News | url=http://www.url.com/Archive/News | format=Fee required | publisher=News co. | date=[[2005-11-21]] | accessdate=2005-12-11}}
    → "News" (Fee required), News co., 2005-11-21. Retrieved on 2005-12-11. 
  • {{cite news | first=John | last=Doe | title=FooBar | page=1}}
    → Doe, John. "FooBar", p. 1. 
  • {{cite news | title=FooBar | page=1 }}
    → "FooBar", p. 1.