Permanently protected template

Template:Birth date and age: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<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
<!--ISO 8601 Date Indicator-->
| {{#if: {{#invoke:wd|label|raw}}
{{ #ifexpr: {{#if:{{{1|}}}|1|0}} + {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}}=3 | <span style="display:none"> ({{{1}}}-{{padleft:{{{2}}}|2|0}}-{{padleft:{{{3}}}|2|0}}) </span> }}
  | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}}
<!--Year Display-->
     | {{#if: {{#invoke:wd|properties|raw|P569}}
{{ #if: {{{1|}}}
      |
| [[{{Date | year={{{1}}} }}]]
      | [[Category:Date of birth not in Wikidata]]
| {{color|gray|????}}Year
}}<!--
月日表示部
-->{{ #ifexpr: {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}} = 2
| [[{{Date | month={{{2}}} | day={{{3}}} }}]]
| {{ #if: {{{2|}}}
    | [[{{Date | month={{{2}}} }}]]{{color|gray|??}}Month
     | {{ #if: {{{3|}}}
        | {{color|gray|??}}月{{年月日 | day={{{3}}} }}
        | {{color|gray|??}}月{{color|gray|??}}Day
       }}
       }}
  }}  
    }}
}}
  | [[Category:Articles without Wikidata item]]
<!--Age Display-->
  }}
{{ #switch: {{lc:{{{4|}}}}}
}}</includeonly><noinclude>{{documentation}}</noinclude>
| Hide|No|Death|dead|death|die|died|no = <!-- Hide Age -->
| #default = <!-- Age Display -->{{ #ifexpr: {{#if:{{{1|}}}|1|0}} + {{#if:{{{2|}}}|1|0}} + {{#if:{{{3|}}}|1|0}}=3 | ({{Years | {{{1}}} | {{{2}}} | {{{3}}} }}Age) }}
}}</includeonly><noinclude>
{{Documentation}}
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
</noinclude>

Revision as of 10:41, 3 September 2020