Difference between revisions of "Template:Birth date"
Jump to navigation
Jump to search
37thchamber (talk | contribs) (Created page with "<span style="display:none">(<span class="bday">{{{1|{{{year}}}}}}-{{padleft:{{MONTHNUMBER|{{{2|{{{month}}}}}}}}|2|0}}-{{padleft:{{{3|{{{day}}}}}}|2|0}}</span>)</span>{{#if:{{{...") |
37thchamber (talk | contribs) m (1 revision imported: more experimenting) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
}}{{#if:{{{3|}}}|{{#ifexpr: ( {{{3|{{{day}}}}}} > 31 ) OR ( {{{3|{{{day}}}}}} < 1 ) | }}{{#if:{{{3|}}}|{{#ifexpr: ( {{{3|{{{day}}}}}} > 31 ) OR ( {{{3|{{{day}}}}}} < 1 ) | ||
|  {{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}|}} | |  {{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}|}} | ||
+ | }}{{#ifeq: {{NAMESPACENUMBER}} | 0 | ||
+ | | {{#if: {{#invoke:Wikidata|pageId}} | ||
+ | | {{#if: {{#invoke:String|match|{{#invoke:Wikidata|getPropertyIDs|P31|FETCH_WIKIDATA}},|Q5,|1|1|true|}} | ||
+ | | {{#if: {{#property:P569}} | ||
+ | | | ||
+ | | [[Category:Date of birth not in Wikidata]] | ||
+ | }} | ||
+ | }} | ||
+ | | [[Category:Articles without Wikidata item]] | ||
+ | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |