Template:Birth year and age: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
Blanked the page
Tags: Blanking Reverted
Line 1:
<includeonly>{{#if:{{{2|}}}
|{{MONTHNAME|{{{2}}}}}&nbsp;
}}{{{1}}} (age&nbsp;{{#if:{{{2|}}}
|{{#ifexpr:{{CURRENTMONTH}}<{{{2}}}
|{{#expr:{{CURRENTYEAR}}-{{{1}}}-1}}
|{{#ifexpr:{{CURRENTMONTH}}>{{{2}}}
|{{#expr:{{CURRENTYEAR}}-{{{1}}}}}
|{{#expr:{{CURRENTYEAR}}-{{{1}}}-1}}&ndash;{{#expr:{{CURRENTYEAR}}-{{{1}}}}}
}}
}}
|{{#expr:{{CURRENTYEAR}}-{{{1}}}-1}}&ndash;{{#expr:{{CURRENTYEAR}}-{{{1}}}}}
}})<!-- Tracking categories
-->{{#ifexpr: ( {{{1}}} > {{CURRENTYEAR}} ) OR ( {{CURRENTYEAR}} - {{{1}}} > 130 ) | &#32; {{Error|invalid year, age > 130}}{{Main other|[[Category:Pages using age template with invalid date]]}}}}<!--
-->{{#if:{{{2|}}}|{{#ifexpr: ( {{{2}}} > 12 ) OR ( {{{2}}} < 1 ) | &#32;{{Error|invalid month}}{{Main other|[[Category:Pages using age template with invalid date]]}}|}}
}}<!--
-->{{#ifeq: {{NAMESPACENUMBER}} | 0
| {{#if: {{#invoke:wd|label|raw}}
| {{#if: {{#invoke:wd|properties|raw|P569}}
|
| [[Category:Date of birth not in Wikidata]]
}}
}}
| [[Category:Articles without Wikidata item]]
}}
}}</includeonly><noinclude>
{{Documentation}}
</noinclude>