Jump to content

Template:Death date/testcases

From Wikipedia, the free encyclopedia

International format (df=yes)

[edit]
{{Death date|2011|5|13|df=yes}}
{{Death date}} (2011-05-13)13 May 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>13 May 2011
{{Death date/sandbox}} (2011-05-13)13 May 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>13 May 2011
{{Death date|2008|9|22|df=yes}}
{{Death date}} (2008-09-22)22 September 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>22 September 2008
{{Death date/sandbox}} (2008-09-22)22 September 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>22 September 2008
{{Death date|1985|3|11|df=yes}}
{{Death date}} (1985-03-11)11 March 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>11 March 1985
{{Death date/sandbox}} (1985-03-11)11 March 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>11 March 1985

American format (mf=yes)

[edit]
{{Death date|2011|5|13|mf=yes}}
{{Death date}} (2011-05-13)May 13, 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>May 13, 2011
{{Death date/sandbox}} (2011-05-13)May 13, 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>May 13, 2011
{{Death date|2008|9|22|mf=yes}}
{{Death date}} (2008-09-22)September 22, 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>September 22, 2008
{{Death date/sandbox}} (2008-09-22)September 22, 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>September 22, 2008
{{Death date|1985|3|11|mf=yes}}
{{Death date}} (1985-03-11)March 11, 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>March 11, 1985
{{Death date/sandbox}} (1985-03-11)March 11, 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>March 11, 1985

Default (International) format (no parameter)

[edit]
{{Death date|2011|5|13}}
{{Death date}} (2011-05-13)May 13, 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>May 13, 2011
{{Death date/sandbox}} (2011-05-13)May 13, 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>May 13, 2011
{{Death date|2008|9|22}}
{{Death date}} (2008-09-22)September 22, 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>September 22, 2008
{{Death date/sandbox}} (2008-09-22)September 22, 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>September 22, 2008
{{Death date|1985|3|11}}
{{Death date}} (1985-03-11)March 11, 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>March 11, 1985
{{Death date/sandbox}} (1985-03-11)March 11, 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>March 11, 1985

What if both mf and df are set?

[edit]
{{Death date|2011|5|13|df=yes|mf=yes}}
{{Death date}} (2011-05-13)13 May 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>13 May 2011
{{Death date/sandbox}} (2011-05-13)13 May 2011
<span style="display:none">(<span class="dday deathdate">2011-05-13</span>)</span>13 May 2011
{{Death date|2008|9|22|df=yes|mf=yes}}
{{Death date}} (2008-09-22)22 September 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>22 September 2008
{{Death date/sandbox}} (2008-09-22)22 September 2008
<span style="display:none">(<span class="dday deathdate">2008-09-22</span>)</span>22 September 2008
{{Death date|1985|3|11|df=yes|mf=yes}}
{{Death date}} (1985-03-11)11 March 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>11 March 1985
{{Death date/sandbox}} (1985-03-11)11 March 1985
<span style="display:none">(<span class="dday deathdate">1985-03-11</span>)</span>11 March 1985

Bogus dates

[edit]
{{Death date|1948|2|31}}
{{Death date}} (1948-02-31)February 31, 1948
<span style="display:none">(<span class="dday deathdate">1948-02-31</span>)</span>February 31, 1948
{{Death date/sandbox}} (1948-02-31)February 31, 1948
<span style="display:none">(<span class="dday deathdate">1948-02-31</span>)</span>February 31, 1948
{{Death date|1973|4|31}}
{{Death date}} (1973-04-31)April 31, 1973
<span style="display:none">(<span class="dday deathdate">1973-04-31</span>)</span>April 31, 1973
{{Death date/sandbox}} (1973-04-31)April 31, 1973
<span style="display:none">(<span class="dday deathdate">1973-04-31</span>)</span>April 31, 1973
{{Death date|1923|4|31}}
{{Death date}} (1923-04-31)April 31, 1923
<span style="display:none">(<span class="dday deathdate">1923-04-31</span>)</span>April 31, 1923
{{Death date/sandbox}} (1923-04-31)April 31, 1923
<span style="display:none">(<span class="dday deathdate">1923-04-31</span>)</span>April 31, 1923

Bogus metadata

[edit]
[[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.
{{Death date}} Pope Pius V (d. (1572-05-01)May 1, 1572) was the predecessor of Pope Gregory XIII. The latter promulgated the calendar that is in use in the 21st century.
[[Pope Pius V]] (d. <span style="display:none">(<span class="dday deathdate">1572-05-01</span>)</span>May 1, 1572) was the predecessor of [[Pope Gregory XIII]]. The latter promulgated the calendar that is in use in the 21st century.
{{Death date/sandbox}} Pope Pius V (d. (1572-05-01)May 1, 1572) was the predecessor of Pope Gregory XIII. The latter promulgated the calendar that is in use in the 21st century.
[[Pope Pius V]] (d. <span style="display:none">(<span class="dday deathdate">1572-05-01</span>)</span>May 1, 1572) was the predecessor of [[Pope Gregory XIII]]. The latter promulgated the calendar that is in use in the 21st century.

Wikidata tracking

[edit]

Tested with preview of /sandbox in Wikipedia articles.

No category added:

  1. article with date of death (P570) in Wikidata: Aída Alberti
  2. article without instance of (P31) human (Q5) in Wikidata: Russo brothers
  3. page not in article namespace: Template:No such name

Category added:

  1. article without date of death (P570) in Wikidata: Maria Abbey
  2. article without item in Wikidata: No such name