Difference between revisions of "Template:Death date/testcases"
Jump to navigation
Jump to search
imported>Jc3s5h (→Bogus metadata: Provide both regular and sandbox calls) |
imported>Zyxw (update tests to compare output of main template with /sandbox) |
||
| Line 1: | Line 1: | ||
| − | + | {{Testcases notice <!--|toc=on-->}} | |
==International format (df=yes)== | ==International format (df=yes)== | ||
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>2011|5|13|1965|12|14|df=yes</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13|1965|12|14|df=yes}}</nowiki> | |
| − | + | }} | |
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>2008|9|22|1913|4|22|df=yes</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22|1913|4|22|df=yes}}</nowiki> | |
| − | + | }} | |
| + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>1985|3|11|1903|11|19|df=yes</nowiki> | ||
| + | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11|1903|11|19|df=yes}}</nowiki> | ||
| + | }} | ||
==American format (mf=yes)== | ==American format (mf=yes)== | ||
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>2011|5|13|1965|12|14|mf=yes</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13|1965|12|14|mf=yes}}</nowiki> | |
| − | + | }} | |
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>2008|9|22|1913|4|22|mf=yes</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22|1913|4|22|mf=yes}}</nowiki> | |
| − | + | }} | |
| + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>1985|3|11|1903|11|19|mf=yes</nowiki> | ||
| + | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11|1903|11|19|mf=yes}}</nowiki> | ||
| + | }} | ||
==Default (International) format (no parameter)== | ==Default (International) format (no parameter)== | ||
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>2011|5|13|1965|12|14</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13|1965|12|14}}</nowiki> | |
| − | + | }} | |
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>2008|9|22|1913|4|22</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22|1913|4|22}}</nowiki> | |
| − | + | }} | |
| + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>1985|3|11|1903|11|19</nowiki> | ||
| + | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11|1903|11|19}}</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|title=<nowiki>2011|5|13|1965|12|14|df=yes|mf=yes</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2011|5|13|1965|12|14|df=yes|mf=yes}}</nowiki> | |
| − | + | }} | |
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>2008|9|22|1913|4|22|df=yes|mf=yes</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|2008|9|22|1913|4|22|df=yes|mf=yes}}</nowiki> | |
| − | + | }} | |
| + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>1985|3|11|1903|11|19|df=yes|mf=yes</nowiki> | ||
| + | |code=<nowiki>{{__TEMPLATENAME__|1985|3|11|1903|11|19|df=yes|mf=yes}}</nowiki> | ||
| + | }} | ||
==Bogus dates== | ==Bogus dates== | ||
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>1948|2|31|1858|12|777</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|1948|2|31|1858|12|777}}</nowiki> | |
| − | + | }} | |
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>1973|4|31|1923|11|31</nowiki> | |
| − | + | |code=<nowiki>{{__TEMPLATENAME__|1973|4|31|1923|11|31}}</nowiki> | |
| − | + | }} | |
| + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes|title=<nowiki>1923|4|31|1973|11|31</nowiki> | ||
| + | |code=<nowiki>{{__TEMPLATENAME__|1923|4|31|1973|11|31}}</nowiki> | ||
| + | }} | ||
| + | |||
==Bogus metadata== | ==Bogus metadata== | ||
| − | + | {{Test case nowiki|format=tablerows|output=nowiki+|collapsible=yes | |
| − | + | |code=<nowiki>[[Pope Pius V]] (d. {{__TEMPLATENAME__|1572|5|1}}) was the predecessor of [[Pope Gregory XIII]]. The latter promulgated the calendar that is in use in the 21st century.</nowiki> | |
| − | + | }} | |
Revision as of 13:11, 24 January 2019
| 42px | 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)
| 2011|5|13|1965|12|14|df=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|2011|5|13|1965|12|14|df=yes}}
|
| 2008|9|22|1913|4|22|df=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|2008|9|22|1913|4|22|df=yes}}
|
| 1985|3|11|1903|11|19|df=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|1985|3|11|1903|11|19|df=yes}}
|
American format (mf=yes)
| 2011|5|13|1965|12|14|mf=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|2011|5|13|1965|12|14|mf=yes}}
|
| 2008|9|22|1913|4|22|mf=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|2008|9|22|1913|4|22|mf=yes}}
|
| 1985|3|11|1903|11|19|mf=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|1985|3|11|1903|11|19|mf=yes}}
|
Default (International) format (no parameter)
| 2011|5|13|1965|12|14 | ||||||
|---|---|---|---|---|---|---|
{{Death date|2011|5|13|1965|12|14}}
|
| 2008|9|22|1913|4|22 | ||||||
|---|---|---|---|---|---|---|
{{Death date|2008|9|22|1913|4|22}}
|
| 1985|3|11|1903|11|19 | ||||||
|---|---|---|---|---|---|---|
{{Death date|1985|3|11|1903|11|19}}
|
What if both mf and df are set?
| 2011|5|13|1965|12|14|df=yes|mf=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|2011|5|13|1965|12|14|df=yes|mf=yes}}
|
| 2008|9|22|1913|4|22|df=yes|mf=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|2008|9|22|1913|4|22|df=yes|mf=yes}}
|
| 1985|3|11|1903|11|19|df=yes|mf=yes | ||||||
|---|---|---|---|---|---|---|
{{Death date|1985|3|11|1903|11|19|df=yes|mf=yes}}
|
Bogus dates
| 1948|2|31|1858|12|777 | ||||||
|---|---|---|---|---|---|---|
{{Death date|1948|2|31|1858|12|777}}
|
| 1973|4|31|1923|11|31 | ||||||
|---|---|---|---|---|---|---|
{{Death date|1973|4|31|1923|11|31}}
|
| 1923|4|31|1973|11|31 | ||||||
|---|---|---|---|---|---|---|
{{Death date|1923|4|31|1973|11|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.
|