Template:Birth date and age: Difference between revisions

Template page
(Created page with "<includeonly> {{{{{♥|safesubst:}}}#invoke:age|birth_date_and_age}}{{#invoke:Check for unknown parameters|check|ignoreblank=y|preview=Page using Template:Birth date and age...")
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{{{{{♥|safesubst:}}}#invoke:age|birth_date_and_age}}{{#invoke:Check for unknown parameters|check|ignoreblank=y|preview=Page using [[Template:Birth date and age]] with unknown parameter "_VALUE_"|unknown={{main other|[[Category:Pages using birth date and age template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|1|2|3|day|month|year|df|mf}}{{#ifeq: {{NAMESPACENUMBER}} | 0
{{{{{♥|safesubst:}}}#invoke:age|birth_date_and_age}}{{#invoke:Check for unknown parameters|check|ignoreblank=y|preview=Page using [[Template:Birth date and age]] with unknown parameter "_VALUE_"|unknown={{main other|[[Category:Pages using birth date and age template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|1|2|3|day|month|year|df|mf}}{{#ifeq: {{NAMESPACENUMBER}} | 0
| {{#if: {{#invoke:wd|label|raw}}
| {{#if: {{#invoke:wd|label|raw}}
   | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}}
   | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}}
Line 12: Line 11:
}}
}}
</includeonly>
</includeonly>
<noinclude>
Usage: </br>
<nowiki>{{Birth date and age|1917|03|08}}</nowiki></br>
Produces:</br>
{{Birth date and age|1917|03|08}}
</noinclude>

Revision as of 10:10, 24 November 2020


Usage:
{{Birth date and age|1917|03|08}}
Produces:
(1917-03-08) March 8, 1917 (age 107)