Module talk:Person date/testcases
All 111 tests passed.
test_birth_with_disap_date
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|birth|birth_date=Nov 1990|disappeared_date=August 2020}} | Nov 1990 | Nov 1990 | |
| {{#invoke:person date/sandbox|birth|birth_date=12 Nov 1985|disappeared_date=12 January 2020}} | 12 Nov 1985 | 12 Nov 1985 | |
| {{#invoke:person date/sandbox|birth|birth_date=1990|disappeared_date={{Disappeared date and age|1920|4|1|1870}}}} | 1990 | 1990 | |
| {{#invoke:person date/sandbox|birth|birth_date=12 Nov 1985|disappeared_date=}} | <span style="display:none"> (<span class="bday">1985-11-12</span>) </span>12 November 1985<span class="noprint ForceAgeToShow"> (age 40)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">1985-11-12</span>) </span>12 November 1985<span class="noprint ForceAgeToShow"> (age 40)</span>[[Category:Pages where birth or death is being automatically determined]] |
test_birth_only
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|birth|birth_date=1990}} | 1990 (age 35–36)[[Category:Pages where birth or death is being automatically determined]] | 1990 (age 35–36)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=1895}} | 1895 (age 130–131)  <strong class="error">invalid year, age > 130</strong>[[Category:Pages where birth or death is being automatically determined]] | 1895 (age 130–131)  <strong class="error">invalid year, age > 130</strong>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=December 1992}} | December 1992 (age 33)[[Category:Pages where birth or death is being automatically determined]] | December 1992 (age 33)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=June 2021}} | June 2021 (age 4–5)[[Category:Pages where birth or death is being automatically determined]] | June 2021 (age 4–5)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=NOT A DATE}} | NOT A DATE | NOT A DATE | |
| {{#invoke:person date/sandbox|birth|birth_date=Nov 2020}} | November 2020 (age 5)[[Category:Pages where birth or death is being automatically determined]] | November 2020 (age 5)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=Apr. 2022}} | April 2022 (age 4)[[Category:Pages where birth or death is being automatically determined]] | April 2022 (age 4)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=May 1895}} | May 1895 (age 131)  <strong class="error">invalid year, age > 130</strong>[[Category:Pages where birth or death is being automatically determined]] | May 1895 (age 131)  <strong class="error">invalid year, age > 130</strong>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date= 12 April 1990}} | <span style="display:none"> (<span class="bday">1990-04-12</span>) </span>12 April 1990<span class="noprint ForceAgeToShow"> (age 36)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">1990-04-12</span>) </span>12 April 1990<span class="noprint ForceAgeToShow"> (age 36)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=Nov 12, 1989 }} | <span style="display:none"> (<span class="bday">1989-11-12</span>) </span>November 12, 1989<span class="noprint ForceAgeToShow"> (age 36)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">1989-11-12</span>) </span>November 12, 1989<span class="noprint ForceAgeToShow"> (age 36)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date= }} | | | |
| {{#invoke:person date/sandbox|birth|birth_date=10 April 1895}} | <strong class="error">Error: Invalid birth date for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | <strong class="error">Error: Invalid birth date for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=1956 (age 68–69)}} | 1956 (age 68–69) | 1956 (age 68–69) | |
| {{#invoke:person date/sandbox|birth|birth_date={{birth date and age|1990|8|2}}}} | <span style="display:none"> (<span class="bday">1990-08-02</span>) </span>August 2, 1990<span class="noprint ForceAgeToShow"> (age 35)</span> | <span style="display:none"> (<span class="bday">1990-08-02</span>) </span>August 2, 1990<span class="noprint ForceAgeToShow"> (age 35)</span> | |
| {{#invoke:person date/sandbox|birth|birth_date={{b-da|July 7, 1987}}}} | July 7, 1987<span style="display:none"> (<span class="dtstart bday">1987-07-07</span>)</span> (age <span class="currentage"></span>38) | July 7, 1987<span style="display:none"> (<span class="dtstart bday">1987-07-07</span>)</span> (age <span class="currentage"></span>38) | |
| {{#invoke:person date/sandbox|birth|birth_date={{circa|1650}}}} | <abbr title="circa">c.</abbr><span style="white-space:nowrap;"> 1650</span> | <abbr title="circa">c.</abbr><span style="white-space:nowrap;"> 1650</span> | |
| {{#invoke:person date/sandbox|birth|birth_date={{approx}} 1790}} | '"`UNIQ--templatestyles-00000000-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000002-QINU`"'">approx.</span> 1790 | '"`UNIQ--templatestyles-00000000-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000002-QINU`"'">approx.</span> 1790 | |
| {{#invoke:person date/sandbox|birth|birth_date=circa 1492}} | circa 1492 | circa 1492 | |
| {{#invoke:person date/sandbox|birth|birth_date=1990 or 91}} | 1990 or 91 | 1990 or 91 |
test_unknown_birth
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|birth|birth_date=Unknown}} | Unknown[[Category:Pages with invalid birth or death dates]] | Unknown[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|birth|birth_date=Unk}} | Unk[[Category:Pages with invalid birth or death dates]] | Unk[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|birth|birth_date=?}} | ?[[Category:Pages with invalid birth or death dates]] | ?[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|birth|birth_date=?? November 2020}} | ?? November 2020[[Category:Pages with invalid birth or death dates]] | ?? November 2020[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|birth|birth_date=unknown}} | unknown[[Category:Pages with invalid birth or death dates]] | unknown[[Category:Pages with invalid birth or death dates]] |
test_unknown_death
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|death|birth_date=10 November 1990|death_date=Unknown}} | Unknown[[Category:Pages with invalid birth or death dates]] | Unknown[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|death|birth_date=2020|death_date=Unk}} | Unk[[Category:Pages with invalid birth or death dates]] | Unk[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|death|birth_date=?|death_date=?}} | ?[[Category:Pages with invalid birth or death dates]] | ?[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|death|birth_date=March 1990|death_date=?? November 2020}} | ?? November 2020[[Category:Pages with invalid birth or death dates]] | ?? November 2020[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|death|birth_date=unknown|death_date=unknown}} | unknown[[Category:Pages with invalid birth or death dates]] | unknown[[Category:Pages with invalid birth or death dates]] |
test_birth_with_death
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|birth|birth_date=|death_date=}} | |||
| {{#invoke:person date/sandbox|birth|birth_date= |death_date= }} | | | |
| {{#invoke:person date/sandbox|birth|birth_date=?|death_date=?}} | ?[[Category:Pages with invalid birth or death dates]] | ?[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|birth|birth_date= 1990 |death_date= 2020 }} | 1990<span style="display:none"> (<span class="dtstart bday">1990</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | 1990<span style="display:none"> (<span class="dtstart bday">1990</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=Jan 1983|death_date=2012}} | Jan 1983<span style="display:none"> (<span class="dtstart bday">1983-01</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | Jan 1983<span style="display:none"> (<span class="dtstart bday">1983-01</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=October 1965|death_date=Nov 2015}} | October 1965<span style="display:none"> (<span class="dtstart bday">1965-10</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | October 1965<span style="display:none"> (<span class="dtstart bday">1965-10</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=Nov 7, 1993|death_date=Nov 25, 2014}} | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>November 7, 1993[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>November 7, 1993[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=November 7, 1993|death_date=December 12, 2014}} | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>November 7, 1993[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>November 7, 1993[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=7 Nov 1993|death_date=8 Apr 1995}} | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>7 November 1993[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>7 November 1993[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=7 November 1993|death_date=8 April 1995}} | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>7 November 1993[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none">(<span class="bday">1993-11-07</span>)</span>7 November 1993[[Category:Pages where birth or death is being automatically determined]] |
test_death_only
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|death|birth_date= |death_date= 2020 }} | 2020<span style="display:none"> (<span class="dtend dday deathdate">2021</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | 2020<span style="display:none"> (<span class="dtend dday deathdate">2021</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=|death_date=2025}} | 2025<span style="display:none"> (<span class="dtend dday deathdate">2026</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | 2025<span style="display:none"> (<span class="dtend dday deathdate">2026</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=|death_date=1890}} | 1890<span style="display:none"> (<span class="dtend dday deathdate">1891</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | 1890<span style="display:none"> (<span class="dtend dday deathdate">1891</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=|death_date=May 2020}} | May 2020<span style="display:none"> (<span class="dtend dday deathdate">2020-06</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | May 2020<span style="display:none"> (<span class="dtend dday deathdate">2020-06</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=|death_date=Oct. 2020}} | Oct. 2020<span style="display:none"> (<span class="dtend dday deathdate">2020-11</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | Oct. 2020<span style="display:none"> (<span class="dtend dday deathdate">2020-11</span>)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=|death_date=15 Nov 2020}} | <span style="display:none">(<span class="dday deathdate">2020-11-15</span>)</span>15 November 2020[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none">(<span class="dday deathdate">2020-11-15</span>)</span>15 November 2020[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=|death_date=Nov 15, 2020}} | <span style="display:none">(<span class="dday deathdate">2020-11-15</span>)</span>November 15, 2020[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none">(<span class="dday deathdate">2020-11-15</span>)</span>November 15, 2020[[Category:Pages where birth or death is being automatically determined]] |
test_birth_unknown_death
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|birth|birth_date=5 October 2008|death_date=Unknown}} | 5 October 2008 | 5 October 2008 | |
| {{#invoke:person date/sandbox|birth|birth_date=September 12, 2002|death_date=Unknown}} | September 12, 2002 | September 12, 2002 | |
| {{#invoke:person date/sandbox|birth|birth_date=October 1990|death_date=Unknown}} | October 1990 | October 1990 | |
| {{#invoke:person date/sandbox|birth|birth_date=2004|death_date=Unknown}} | 2004 | 2004 | |
| {{#invoke:person date/sandbox|birth|birth_date={{birth year|1990}}|death_date=Unknown}} | 1990<span style="display:none"> (<span class="dtstart bday">1990</span>)</span> | 1990<span style="display:none"> (<span class="dtstart bday">1990</span>)</span> | |
| {{#invoke:person date/sandbox|birth|birth_date={{birth date|2020|11|7}}|death_date=Unknown}} | <span style="display:none">(<span class="bday">2020-11-07</span>)</span>November 7, 2020 | <span style="display:none">(<span class="bday">2020-11-07</span>)</span>November 7, 2020 |
test_death_unknown_birth
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|death|birth_date=?|death_date=5 October 2008}} | 5 October 2008 | 5 October 2008 | |
| {{#invoke:person date/sandbox|death|birth_date=Unk|death_date=5 October 2008}} | 5 October 2008 | 5 October 2008 | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date=5 October 2008}} | 5 October 2008 | 5 October 2008 | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date=September 12, 2002}} | September 12, 2002 | September 12, 2002 | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date=October 1990}} | October 1990 | October 1990 | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date=2004}} | 2004 | 2004 | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date={{death year|1990}}}} | 1990<span style="display:none"> (<span class="dtend dday deathdate">1991</span>)</span> | 1990<span style="display:none"> (<span class="dtend dday deathdate">1991</span>)</span> | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date={{death date|2020|11|7}}}} | <span style="display:none">(<span class="dday deathdate">2020-11-07</span>)</span>November 7, 2020 | <span style="display:none">(<span class="dday deathdate">2020-11-07</span>)</span>November 7, 2020 |
test_death_ordinals
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=15th Nov 2020}} | 15 November 2020<span style="display:none">(2020-11-15)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | 15 November 2020<span style="display:none">(2020-11-15)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=November 15th, 2020}} | November 15, 2020<span style="display:none">(2020-11-15)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | November 15, 2020<span style="display:none">(2020-11-15)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=1st December 2020}} | 1 December 2020<span style="display:none">(2020-12-01)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | 1 December 2020<span style="display:none">(2020-12-01)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=December 1st, 2020}} | December 1, 2020<span style="display:none">(2020-12-01)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | December 1, 2020<span style="display:none">(2020-12-01)</span> (aged 12)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=3rd April 2022}} | 3 April 2022<span style="display:none">(2022-04-03)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] | 3 April 2022<span style="display:none">(2022-04-03)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=April 3rd, 2022}} | April 3, 2022<span style="display:none">(2022-04-03)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] | April 3, 2022<span style="display:none">(2022-04-03)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=2nd May 2022}} | 2 May 2022<span style="display:none">(2022-05-02)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] | 2 May 2022<span style="display:none">(2022-05-02)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=5 October 2008|death_date=May 2nd, 2022}} | May 2, 2022<span style="display:none">(2022-05-02)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] | May 2, 2022<span style="display:none">(2022-05-02)</span> (aged 13)[[Category:Pages where birth or death is being automatically determined]] |
test_birth_ordinals
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|birth|birth_date=15th Nov 2020}} | <span style="display:none"> (<span class="bday">2020-11-15</span>) </span>15 November 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2020-11-15</span>) </span>15 November 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=November 15th, 2020}} | <span style="display:none"> (<span class="bday">2020-11-15</span>) </span>November 15, 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2020-11-15</span>) </span>November 15, 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=1st December 2020}} | <span style="display:none"> (<span class="bday">2020-12-01</span>) </span>1 December 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2020-12-01</span>) </span>1 December 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=December 1st, 2020}} | <span style="display:none"> (<span class="bday">2020-12-01</span>) </span>December 1, 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2020-12-01</span>) </span>December 1, 2020<span class="noprint ForceAgeToShow"> (age 5)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=3rd April 2022}} | <span style="display:none"> (<span class="bday">2022-04-03</span>) </span>3 April 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2022-04-03</span>) </span>3 April 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=April 3rd, 2022}} | <span style="display:none"> (<span class="bday">2022-04-03</span>) </span>April 3, 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2022-04-03</span>) </span>April 3, 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=2nd May 2022}} | <span style="display:none"> (<span class="bday">2022-05-02</span>) </span>2 May 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2022-05-02</span>) </span>2 May 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|birth|birth_date=May 2nd, 2022}} | <span style="display:none"> (<span class="bday">2022-05-02</span>) </span>May 2, 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] | <span style="display:none"> (<span class="bday">2022-05-02</span>) </span>May 2, 2022<span class="noprint ForceAgeToShow"> (age 4)</span>[[Category:Pages where birth or death is being automatically determined]] |
test_death_with_birth
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|death|birth_date=|death_date=}} | |||
| {{#invoke:person date/sandbox|death|birth_date= |death_date= }} | | | |
| {{#invoke:person date/sandbox|death|birth_date=?|death_date=?}} | ?[[Category:Pages with invalid birth or death dates]] | ?[[Category:Pages with invalid birth or death dates]] | |
| {{#invoke:person date/sandbox|death|birth_date=1990|death_date=2020}} | 2020 (aged 29–30) [[Category:Pages where birth or death is being automatically determined]] | 2020 (aged 29–30) [[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=1790|death_date=2020}} | 2020 (aged 229–230) <strong class="error">invalid year, age > 130</strong> [[Category:Pages where birth or death is being automatically determined]] | 2020 (aged 229–230) <strong class="error">invalid year, age > 130</strong> [[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=1890|death_date=2025}} | 2025 (aged 134–135) <strong class="error">invalid year, age > 130</strong> [[Category:Pages where birth or death is being automatically determined]] | 2025 (aged 134–135) <strong class="error">invalid year, age > 130</strong> [[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=1986|death_date=June 2021}} | June 2021<span style="display:none">(2021-06-00)</span> (aged 34–35)[[Category:Pages where birth or death is being automatically determined]] | June 2021<span style="display:none">(2021-06-00)</span> (aged 34–35)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=Jan 1983|death_date=2012}} | 2012 | 2012 | |
| {{#invoke:person date/sandbox|death|birth_date=1965|death_date=Nov 2015}} | November 2015<span style="display:none">(2015-11-00)</span> (aged 49–50)[[Category:Pages where birth or death is being automatically determined]] | November 2015<span style="display:none">(2015-11-00)</span> (aged 49–50)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=1805|death_date=January 1856}} | January 1856<span style="display:none">(1856-01-00)</span> (aged 50–51)[[Category:Pages where birth or death is being automatically determined]] | January 1856<span style="display:none">(1856-01-00)</span> (aged 50–51)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=unknown|death_date=Nov 2015}} | Nov 2015 | Nov 2015 | |
| {{#invoke:person date/sandbox|death|birth_date=October 1965|death_date= Nov 2015 }} | November 2015<span style="display:none">(2015-11-00)</span> (aged 50)[[Category:Pages where birth or death is being automatically determined]] | November 2015<span style="display:none">(2015-11-00)</span> (aged 50)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=April 1665|death_date=Nov 2015}} | <strong class="error">Error: Invalid dates for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | <strong class="error">Error: Invalid dates for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date= Nov 7, 1993 |death_date= Nov 25, 2014 }} | November 25, 2014<span style="display:none">(2014-11-25)</span> (aged 21)[[Category:Pages where birth or death is being automatically determined]] | November 25, 2014<span style="display:none">(2014-11-25)</span> (aged 21)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=1993|death_date=Nov 25, 2014}} | November 25, 2014<span style="display:none">(2014-11-25)</span> (aged 20–21)[[Category:Pages where birth or death is being automatically determined]] | November 25, 2014<span style="display:none">(2014-11-25)</span> (aged 20–21)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=1853|death_date=Nov 25, 2014}} | <strong class="error">Error: Invalid dates for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | <strong class="error">Error: Invalid dates for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=Dec 1993|death_date=Nov 25, 2014}} | November 25, 2014<span style="display:none">(2014-11-25)</span> (aged 20)[[Category:Pages where birth or death is being automatically determined]] | November 25, 2014<span style="display:none">(2014-11-25)</span> (aged 20)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=25 Jan 1914|death_date=2014}} | 2014<span style="display:none">(2014-00-00)</span> (aged 99–100)[[Category:Pages where birth or death is being automatically determined]] | 2014<span style="display:none">(2014-00-00)</span> (aged 99–100)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=November 7, 1993|death_date=December 12, 2014}} | December 12, 2014<span style="display:none">(2014-12-12)</span> (aged 21)[[Category:Pages where birth or death is being automatically determined]] | December 12, 2014<span style="display:none">(2014-12-12)</span> (aged 21)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=7 Nov 1693|death_date=8 Apr 1995}} | <strong class="error">Error: Invalid dates for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | <strong class="error">Error: Invalid dates for calculating age</strong>[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=7 Nov 1993|death_date=8 Apr 1995}} | 8 April 1995<span style="display:none">(1995-04-08)</span> (aged 1)[[Category:Pages where birth or death is being automatically determined]] | 8 April 1995<span style="display:none">(1995-04-08)</span> (aged 1)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date=7 November 1993|death_date=8 April 1995}} | 8 April 1995<span style="display:none">(1995-04-08)</span> (aged 1)[[Category:Pages where birth or death is being automatically determined]] | 8 April 1995<span style="display:none">(1995-04-08)</span> (aged 1)[[Category:Pages where birth or death is being automatically determined]] | |
| {{#invoke:person date/sandbox|death|birth_date={{bda|1993|11|7}}|death_date=8 April 1995}} | 8 April 1995 | 8 April 1995 | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date=1995}} | 1995 | 1995 | |
| {{#invoke:person date/sandbox|death|birth_date=Unknown|death_date=8 April 1995}} | 8 April 1995 | 8 April 1995 | |
| {{#invoke:person date/sandbox|death|birth_date=1960s|death_date=8 April 1995}} | 8 April 1995 | 8 April 1995 |
test_birth_with_reference
| Test | Expected | Actual | |
|---|---|---|---|
| {{#invoke:person date/sandbox|birth|birth_date=1990{{cn}}}} | 1990<sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | 1990<sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | |
| {{#invoke:person date/sandbox|birth|birth_date=1995 {{cn}}}} | 1995 <sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | 1995 <sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | |
| {{#invoke:person date/sandbox|birth|birth_date=5 October 1986{{cn}}}} | 5 October 1986<sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | 5 October 1986<sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | |
| {{#invoke:person date/sandbox|birth|birth_date=5 October 1986 {{cn}}}} | 5 October 1986 <sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | 5 October 1986 <sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">[<i>[[Wikipedia:Citation needed|<span title="This claim needs references to reliable sources.">citation needed</span>]]</i>]</sup> | |
| {{#invoke:person date/sandbox|birth|birth_date=5 October 1986<ref name="someref">{{Cite web |title= Some website }}</ref>}} | 5 October 1986'"`UNIQ--ref-00000004-QINU`"' | 5 October 1986'"`UNIQ--ref-00000003-QINU`"' |
References
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.