Difference between revisions of "Template:Birth-date"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
imported>Uzume
(update tracking to use Module:Wd instead of the unmaintained and deprecated Module:Wikidata)
 
Line 7: Line 7:
 
   |test={{{test|}}}
 
   |test={{{test|}}}
 
}}|Did not recognize date.  Try slightly modifying the date in the first parameter.}}}}{{#invoke:check for unknown parameters|check|unknown=[[Category:Birth-date transclusions with invalid parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|2|ISO8601|dt|display|timezone|tz|BCE|BC|class-extra|test}}{{#ifeq: {{NAMESPACENUMBER}} | 0
 
}}|Did not recognize date.  Try slightly modifying the date in the first parameter.}}}}{{#invoke:check for unknown parameters|check|unknown=[[Category:Birth-date transclusions with invalid parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|2|ISO8601|dt|display|timezone|tz|BCE|BC|class-extra|test}}{{#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 01:37, 7 June 2020

 (0009-11-01)

Template documentation[create]