Template:Birth date and age: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>CBDunkerson
Decreasing size of template by removing undocumented/unused 'year/month'day' parameters and redundant invocation of numeric parameters as defaults for themselves.
Ookami (talk | contribs)
m 70 revisions imported
 
(19 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{{1}}}<span style="display:none"> (<span class="bday">{{{1}}}-{{padleft:{{{2}}}|2|0}}-{{padleft:{{{3}}}|2|0}}</span>)</span><span class="noprint"> (age&nbsp;{{age|{{{1}}}|{{{2}}}|{{{3}}}}})</span></includeonly><noinclude>
<includeonly>{{{{{|safesubst:}}}#invoke:age|birth_date_and_age}}{{#invoke:Check for unknown parameters|check|ignoreblank=y|preview=Page using [[Template:Birth date and age]] with unknown parameter "_VALUE_"|unknown={{main other|[[Category:Pages using birth date and age template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|1|2|3|day|month|year|df|mf}}{{#ifeq: {{NAMESPACENUMBER}} | 0
{{pp-template}}
| {{#if: {{#invoke:wd|label|raw}}
{{documentation}}
  | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}}
</noinclude>
    | {{#if: {{#invoke:wd|properties|raw|P569}}
      |
      | [[Category:Date of birth not in Wikidata]]
      }}
    }}
  | [[Category:Articles without Wikidata item]]
  }}
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 04:39, 3 September 2020