Difference between revisions of "Template:Death date/testcases"
Jump to navigation
Jump to search
imported>Zyxw (update tests) |
imported>Zyxw (update tests) |
||
| Line 2: | Line 2: | ||
==International format (df=yes)== | ==International format (df=yes)== | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2011|5|13|df=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13|df=yes}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2008|9|22|df=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22|df=yes}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|1985|3|11|df=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11|df=yes}}</nowiki> | ||
}} | }} | ||
==American format (mf=yes)== | ==American format (mf=yes)== | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2011|5|13|mf=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13|mf=yes}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2008|9|22|mf=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22|mf=yes}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|1985|3|11|mf=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11|mf=yes}}</nowiki> | ||
}} | }} | ||
==Default (International) format (no parameter)== | ==Default (International) format (no parameter)== | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2011|5|13}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2008|9|22}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|1985|3|11}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11}}</nowiki> | ||
}} | }} | ||
==What if both mf and df are set?== | ==What if both mf and df are set?== | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2011|5|13|df=yes|mf=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13|df=yes|mf=yes}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|2008|9|22|df=yes|mf=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22|df=yes|mf=yes}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|1985|3|11|df=yes|mf=yes}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11|df=yes|mf=yes}}</nowiki> | ||
}} | }} | ||
==Bogus dates== | ==Bogus dates== | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|1948|2|31}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|1948|2|31}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|1973|4|31}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|1973|4|31}}</nowiki> | ||
}} | }} | ||
| − | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes| | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|showcode=no|titlecode=yes |
|code=<nowiki>{{__TEMPLATENAME__|1923|4|31}}</nowiki> | |code=<nowiki>{{__TEMPLATENAME__|1923|4|31}}</nowiki> | ||
}} | }} | ||
Latest revision as of 03:21, 12 April 2019
| This is the template test cases page for the sandbox of Template:Death date. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
International format (df=yes)
| {{Death date|2011|5|13|df=yes}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|2008|9|22|df=yes}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|1985|3|11|df=yes}} | ||||||
|---|---|---|---|---|---|---|
|
American format (mf=yes)
| {{Death date|2011|5|13|mf=yes}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|2008|9|22|mf=yes}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|1985|3|11|mf=yes}} | ||||||
|---|---|---|---|---|---|---|
|
Default (International) format (no parameter)
| {{Death date|2011|5|13}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|2008|9|22}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|1985|3|11}} | ||||||
|---|---|---|---|---|---|---|
|
What if both mf and df are set?
| {{Death date|2011|5|13|df=yes|mf=yes}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|2008|9|22|df=yes|mf=yes}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|1985|3|11|df=yes|mf=yes}} | ||||||
|---|---|---|---|---|---|---|
|
Bogus dates
| {{Death date|1948|2|31}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|1973|4|31}} | ||||||
|---|---|---|---|---|---|---|
|
| {{Death date|1923|4|31}} | ||||||
|---|---|---|---|---|---|---|
|
Bogus metadata
| {{Death date}} | ||||||
|---|---|---|---|---|---|---|
[[Pope Pius V]] (d. {{Death date|1572|5|1}}) was the predecessor of [[Pope Gregory XIII]]. The latter promulgated the calendar that is in use in the 21st century.
|
Wikidata tracking
Tested with preview of /sandbox in Wikipedia articles.
No category added:
- article with Template:Prop in Wikidata: Aída Alberti
- 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
- page not in article namespace: Template:No such name
Category added:
- article without Template:Prop in Wikidata: Maria Abbey
- article without item in Wikidata: No such name