Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module talk:Age/testcases

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

All 42 tests passed.

test_birth_date_and_age

test_birth_date_and_age
TestExpectedActual
checkY {{birth date and age|1990-12-12}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec 1990}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec. 1990}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 December 1990}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|December 20 1990}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 December 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 December 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|December 20 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|December 20 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>December 12, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|12 Dec 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-12</span>) </span>12 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|Dec 20 1990|mf=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>December 20, 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|Dec 20 1990|df=yes}} <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span> <span style="display:none"> (<span class="bday">1990-12-20</span>) </span>20 December 1990<span class="noprint ForceAgeToShow"> (age&nbsp;35)</span>
checkY {{birth date and age|June 2020}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|June 2020|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|June 2020|mf=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995|mf=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1992|8}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1992|8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1992|8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|1995|5|10}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|1995|5|10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|1995|5|10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|year=1995}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1995|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1995|mf=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1992|month=8}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1992|month=8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1992|month=8|df=yes}} <strong class="error">Error: Need valid birth date: year, month, day</strong> <strong class="error">Error: Need valid birth date: year, month, day</strong>
checkY {{birth date and age|year=1995|month=5|day=10}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>May 10, 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|year=1995|month=5|day=10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>
checkY {{birth date and age|year=1995|month=5|day=10|df=yes}} <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span> <span style="display:none"> (<span class="bday">1995-05-10</span>) </span>10 May 1995<span class="noprint ForceAgeToShow"> (age&nbsp;31)</span>

test_death_date_and_age

test_death_date_and_age
TestExpectedActual
checkY {{death date and age|1990-12-12|1955-1-5}} December 12, 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35) December 12, 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35)
checkY {{death date and age|12 December 1990|5 January 1955}} 12 December 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35) 12 December 1990<span style="display:none">(1990-12-12)</span> (aged&nbsp;35)
checkY {{death date and age|3 Oct 2025|5 Dec 1990}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|5 Dec 1990|df=yes}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|5 Dec 1990|mf=yes}} October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|December 5, 1990}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|December 5, 1990|mf=yes}} October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) October 3, 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)
checkY {{death date and age|3 Oct 2025|December 5, 1990|df=yes}} 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34) 3 October 2025<span style="display:none">(2025-10-03)</span> (aged&nbsp;34)