Difference between revisions of "Template:Cite news/testcases"
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]] | |||
== Linked retrieval dates == | |||
=== Current template === | |||
;To display linked retrieval dates, must be in ISO format, or broken otherwise | |||
<code><nowiki>{{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}</nowiki></code> | |||
* {{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }} | |||
;Broken for non-ISO format | |||
<code><nowiki>{{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}</nowiki></code> | |||
* {{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }} | |||
=== Sandbox template === | |||
Linked retrieval dates can use ISO format or add optional <code>accessyear</code> parameter | |||
;ISO format works as before | |||
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}</nowiki></code> | |||
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }} | |||
;Non-ISO format in <code>accessdate</code> breaks (expected behavior of current template) | |||
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}</nowiki></code> | |||
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }} | |||
;Non-ISO can be used with <code>accessyear</code> parameter | |||
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January | accessyear = 2008 | page = 22 }}</nowiki></code> | |||
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January | accessyear = 2008 | page = 22 }} | |||
== Unlinked retrieval dates == | |||
=== Current template === | |||
;No template options. Manual format works but is not desirable because it omits that date from the [[COinS]] metadata. | |||
<code><nowiki>{{cite news | title = Article | work = The News | date = 27 October 1920 | page = 22 }} Retrieved 19 January 2008.</nowiki></code> | |||
* {{cite news | title = Article | work = The News | date = 27 October 1920 | page = 22 }} Retrieved 19 January 2008. | |||
=== Sandbox template === | |||
Unlinked dates supported and included in COinS metadata: | |||
;For unlinked dates: | |||
<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 }} | |||
<code><nowiki>{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | accessyear = 2008 | page = 22 }}</nowiki></code> | |||
* {{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | accessyear = 2008 | page = 22 }} | |||
;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> | |||
* {{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 }} | ||
{{ | |||
Latest revision as of 14:55, 3 February 2009
Test cases to support changes to Template:Cite news from this version of Template:Cite news/sandbox
Linked retrieval dates
Current template
- To display linked retrieval dates, must be in ISO format, or broken otherwise
{{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920.
- Broken for non-ISO format
{{cite news | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920.
Sandbox template
Linked retrieval dates can use ISO format or add optional accessyear
parameter
- ISO format works as before
{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 2008-01-19 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920
- Non-ISO format in
accessdate
breaks (expected behavior of current template)
{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January 2008 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920
- Non-ISO can be used with
accessyear
parameter
{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdate = 19 January | accessyear = 2008 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920
Unlinked retrieval dates
Current template
- No template options. Manual format works but is not desirable because it omits that date from the COinS metadata.
{{cite news | title = Article | work = The News | date = 27 October 1920 | page = 22 }} Retrieved 19 January 2008.
- "Article". The News: p. 22. 27 October 1920. Retrieved 19 January 2008.
Sandbox template
Unlinked dates supported and included in COinS metadata:
- For unlinked dates
{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdaymonth = 19 January | accessyear = 2008 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920
{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | accessyear = 2008 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920
- Missing
accessyear
parameter does not break template.
{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessdaymonth = 19 January | page = 22 }}
- "Article". The News: p. 22. 27 October 1920
{{cite news/sandbox | title = Article | work = The News | date = 27 October 1920 | accessmonthday = January 19 | page = 22 }}
- "Article". The News: p. 22. 27 October 1920