Template:Death date: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>WOSlinker
(add error categories)
m (25 revisions imported)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{#expr:{{{1}}}}}<span style="display:none">(<span class="dday deathdate">{{{1}}}-{{padleft:{{MONTHNUMBER|{{{2}}}}}|2|0}}-{{padleft:{{{3}}}|2|0}}</span>)</span><!--
<includeonly><span style="display:none">(<span class="dday deathdate">{{{1}}}-{{padleft:{{MONTHNUMBER|{{{2}}}}}|2|0}}-{{padleft:{{{3}}}|2|0}}</span>)</span>{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{#expr:{{{1}}}}}<!--
  -- Error checks --
  -- Error checks --
-->{{#ifexpr: ( {{{1|}}} > {{CURRENTYEAR}} )
-->{{#ifexpr: ( {{{1|}}} > {{CURRENTYEAR}} )
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:wd|label|raw}}
  | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}}
    | {{#if: {{#invoke:wd|properties|raw|P570}}
      |
      | [[Category:Date of death not in Wikidata]]
      }}
    }}
  | [[Category:Articles without Wikidata item]]
  }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 13:17, 3 September 2020