Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Birth date and age: Difference between revisions

Template page
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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
<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}}
| {{#if: {{#invoke:wd|label|raw}}
  | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}}
    | {{#if: {{#invoke:wd|properties|raw|P569}}
      |
      |
      }}
    }}
  |
  }}
}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>Usage: </br>
Usage: </br>
<nowiki>{{Birth date and age|1917|03|08}}</nowiki></br>
<nowiki>{{Birth date and age|1917|03|08}}</nowiki></br>
Produces:</br>
Produces:</br>
{{Birth date and age|1917|03|08}}
{{Birth date and age|1917|03|08}}
</noinclude>
</noinclude>

Latest revision as of 02:43, 25 November 2020

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