Template:Death date: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>WOSlinker
move hidden span to start to help with table sorting
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}}.
Line 7: Line 7:
}}{{#if:{{{3|}}}|{{#ifexpr: ( {{{3|}}} > 31 ) OR ( {{{3|}}} < 1 )
}}{{#if:{{{3|}}}|{{#ifexpr: ( {{{3|}}} > 31 ) OR ( {{{3|}}} < 1 )
  | &#32;{{error|invalid day}}{{main other|[[Category:Pages using age template with invalid date]]}}|}}
  | &#32;{{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:P570}}
      |
      | [[Category:Date of death not in Wikidata]]
      }}
    }}
  | [[Category:Articles without Wikidata item]]
  }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 13:27, 24 January 2019