Difference between revisions of "Template:Birth year and age/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create)
 
imported>Zyxw
(add tests)
Line 1: Line 1:
 
{{Testcases notice <!--|toc=on-->}}
 
{{Testcases notice <!--|toc=on-->}}
 +
 +
== Birth year ==
 +
{{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title="1964"
 +
|code=<nowiki>{{__TEMPLATENAME__|1964}}</nowiki>
 +
}}
 +
{{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=" 1964 "
 +
|code=<nowiki>{{__TEMPLATENAME__| 1964 }}</nowiki>
 +
}}
 +
 +
== Birth year and month ==
 +
{{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>"1964|01"</nowiki>
 +
|code=<nowiki>{{__TEMPLATENAME__|1964|01}}</nowiki>
 +
}}
 +
{{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>" 1964 | 01 "</nowiki>
 +
|code=<nowiki>{{__TEMPLATENAME__| 1964 | 01 }}</nowiki>
 +
}}
  
 
== Wikidata tracking ==
 
== Wikidata tracking ==

Revision as of 04:30, 19 January 2019

Birth year

"1964"
{{Birth year and age|1964}}
{{Birth year and age}} 1964 (age 60–61)
1964 (age&nbsp;60&ndash;61)
{{Birth year and age/sandbox}} 1964 (age 60–61)
1964 (age&nbsp;60&ndash;61)
" 1964 "
{{Birth year and age| 1964 }}
{{Birth year and age}} 1964 (age 60–61)
 1964  (age&nbsp;60&ndash;61)
{{Birth year and age/sandbox}} 1964 (age 60–61)
 1964  (age&nbsp;60&ndash;61)

Birth year and month

"1964|01"
{{Birth year and age|1964|01}}
{{Birth year and age}} January 1964 (age 61)
January&nbsp;1964 (age&nbsp;61)
{{Birth year and age/sandbox}} January 1964 (age 61)
January&nbsp;1964 (age&nbsp;61)
" 1964 | 01 "
{{Birth year and age| 1964 | 01 }}
{{Birth year and age}} January  1964 (age 61)
January&nbsp; 1964  (age&nbsp;61)
{{Birth year and age/sandbox}} January  1964 (age 61)
January&nbsp; 1964  (age&nbsp;61)

Wikidata tracking

Tested with preview of /sandbox in Wikipedia articles.

No category added:

  1. article with Template:Prop in Wikidata: Gimena Accardi
  2. article without Template:Prop Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q5) in Wikidata: Russo brothers
  3. page not in article namespace: Template:No such name

Category added:

  1. article without Template:Prop in Wikidata: Maria Abbey
  2. article without item in Wikidata: No such name