Template:Birth date and age: Difference between revisions

Jump to navigation Jump to search
en>Zyxw
(Add Wikidata tracking categories. Tested with /sandbox, /testcases, and articles. Same as previously tested and working for over 1 year in templates {{Birth date}}, {{Birth-date}}, and {{Birth year and age}}.)
m (1 revision imported)
 
(2 intermediate revisions by 2 users 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}}{{#ifeq: {{NAMESPACENUMBER}} | 0
| {{#if: {{#invoke:Wikidata|pageId}}
| {{#if: {{#invoke:wd|label|raw}}
   | {{#if: {{#invoke:String|match|{{#invoke:Wikidata|getPropertyIDs|P31|FETCH_WIKIDATA}},|Q5,|1|1|true|}}
   | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}}
     | {{#if: {{#property:P569}}
     | {{#if: {{#invoke:wd|properties|raw|P569}}
       |
       |
       | [[Category:Date of birth not in Wikidata]]
       | [[Category:Date of birth not in Wikidata]]

Latest revision as of 18:10, 27 August 2020