Difference between revisions of "Template:Cite news"

358 bytes added ,  14:55, 3 February 2009
m
1 revision
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
Test cases to support changes to [[Template:Cite news]] from [http://en.wikipedia.org/w/index.php?title=Template:Cite_news/sandbox&oldid=242501446 this version] of [[Template:Cite news/sandbox]]
<noinclude>{{Template sandbox notice}}</noinclude>{{Citation/core
 
  |Citation class=news
== Linked retrieval dates ==
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
=== Current template ===
  |Surname2 = {{{last2|{{{surname2|{{{author2|{{{coauthor|{{{coauthors|}}}}}}}}}}}}}}}
;To display linked retrieval dates, must be in ISO format, or broken otherwise
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
<code><nowiki>{{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}</nowiki></code>
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
* {{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
;Broken for non-ISO format
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
<code><nowiki>{{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}</nowiki></code>
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
* {{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
=== Sandbox template ===
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
Linked retrieval dates can use ISO format or add optional <code>accessyear</code> parameter
  |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
;ISO format works as before
  |Given2 = {{{first2|{{{given2|}}}}}}
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}</nowiki></code>
  |Given3 = {{{first3|{{{given3|}}}}}}
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}
  |Given4 = {{{first4|{{{given4|}}}}}}
;Non-ISO format in <code>accessdate</code> breaks (expected behavior of current template)
  |Given5 = {{{first5|{{{given5|}}}}}}
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}</nowiki></code>
  |Given6 = {{{first6|{{{given6|}}}}}}
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}
  |Given7 = {{{first7|{{{given7|}}}}}}
;Non-ISO can be used with <code>accessyear</code> parameter
  |Given8 = {{{first8|{{{given8|}}}}}}
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January | accessyear = 2008 | page = 22 }}</nowiki></code>
  |Given9 = {{{first9|{{{given9|}}}}}}
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January | accessyear = 2008 | page = 22 }}
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
 
  |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
== Unlinked retrieval dates ==
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
=== Current template ===
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
;No template options. Manual format works but is not desirable because it omits that date from the [[COinS]] metadata.
  |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
<code><nowiki>{{cite news | title = Article | work = The News | date = 27 October 1920 | page = 22 }} Retrieved 19 January 2008.</nowiki></code>
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
* {{cite news | title = Article | work = The News | date = 27 October 1920 | page = 22 }} Retrieved 19 January 2008.
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
 
  |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
=== Sandbox template ===
  |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
Unlinked dates supported and included in COinS metadata:
  |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
;For unlinked dates:
            #if: {{{date|}}}
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdaymonth = 19 January | accessyear = 2008 | page = 22 }}</nowiki></code>
            |{{
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdaymonth = 19 January | accessyear = 2008 | page = 22 }}
                #iferror:{{#time:Y|{{{date|}}} }}
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | accessyear = 2008 | page = 22 }}</nowiki></code>
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | accessyear = 2008 | page = 22 }}
                |{{#time:Y|{{{date|}}} }}
;Missing <code>accessyear</code> parameter does not break template.
              }}
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdaymonth = 19 January | page = 22 }}</nowiki></code>
            |{{{publication-date|}}} <!-- last resort -->
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdaymonth = 19 January | page = 22 }}
          }}
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | page = 22 }}</nowiki></code>
        }}}
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | page = 22 }}
  |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
  |Title={{#if:{{{journal|{{{periodical|{{{newspaper|{{{magazine|{{{work|}}}}}}}}}}}}}}}|{{{title|}}}}}
  |URL={{{archiveurl|{{{url|}}}}}}
  |Series={{{agency|}}}
  |Periodical = {{{journal|{{{periodical|{{{newspaper|{{{magazine|{{{work|}}}}}}}}}}}}}}}
  |Volume = {{{volume|}}}
  |Issue = {{{issue|{{{number|}}}}}}
  |At = {{
          #if: {{{page|}}}
          |p.&nbsp;{{{page}}}
          |{{
              #if: {{{pages|}}}
              |pp.&nbsp;{{{pages}}}
              |{{{at|}}}
            }}
        }}
  |IncludedWorkTitle = {{#if:{{{journal|{{{periodical|{{{newspaper|{{{magazine|{{{work|}}}}}}}}}}}}}}}||{{{title|}}}}}
  |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
  |Edition = {{{edition|}}}
  |Place = {{{place|{{{location|}}}}}}
  |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
  |Publisher = {{{publisher|}}}
  |PublicationDate = {{{publication-date|}}}
  |language = {{{language|{{{in|}}}}}}
  |format = {{{format|}}}
  |ID={{{id|{{{ID|}}}}}}
  |ISBN={{{isbn|{{{ISBN|}}}}}}
  |ISSN={{{issn|{{{ISSN|}}}}}}
  |OCLC={{{oclc|{{{OCLC|}}}}}}
  |PMID={{{pmid|{{{PMID|}}}}}}
  |PMC={{{pmc|{{{PMC|}}}}}}
  |Bibcode={{{bibcode|}}}
  |DOI={{{doi|{{{DOI|}}}}}}
  |AccessDate={{#if:{{{accessdate|}}}|{{{accessdate}}}|{{
    #if:{{{accessdaymonth|}}}|{{{accessdaymonth}}} {{{accessyear|}}}|{{
      #if:{{{accessmonthday|}}}|{{{accessmonthday}}} {{{accessyear|}}}|
      {{{accessday|}}} {{{accessmonth|}}} {{{accessyear|}}}
      }}
    }}
  }}
  |laysummary = {{{laysummary|}}}
  |quote = {{{quote|}}}
  |laydate = {{{laydate|}}}
  |Ref={{{ref|}}}
  |Sep = {{{separator|{{{seperator|.}}}}}}
  |PS={{#if:{{{quote|}}}||.}}
  |Archive = {{
              #if:{{{archiveurl|}}}|Archived from {{#if:{{{url|}}}|[{{{url|}}} the original]|the original}} {{#if:{{{archivedate|}}}| on {{{archivedate}}}|. You must specify the date the archive was made using the <code>archivedate=</code> parameter.{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}
            }}
}}<noinclude>
{{pp-template|small=yes}}
{{documentation}}
</noinclude>
Budlight
Bots, Bureaucrats, Administrators
529

edits