Template:Death date: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zyxw
Add Wikidata tracking categories. Tested with /sandbox, /testcases, and articles. Same as previously tested and working in templates {{Death-date}} and {{Death year and age}}.
meta>Uzume
update tracking to use Module:Wd instead of the unmaintained and deprecated Module:Wikidata
Line 8: Line 8:
  |  {{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
}}{{#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:P570}}
     | {{#if: {{#invoke:wd|properties|raw|P570}}
       |
       |
       | [[Category:Date of death not in Wikidata]]
       | [[Category:Date of death not in Wikidata]]

Revision as of 09:50, 23 April 2020