Difference between revisions of "Template:Birthyear"
Wikisimpsons - The Simpsons Wiki
Solar Dragon (talk | contribs) |
Solar Dragon (talk | contribs) |
||
Line 14: | Line 14: | ||
}}{{#if:{{{2|}}}|{{#ifexpr: ( {{{2}}} > 12 ) OR ( {{{2}}} < 1 ) | }}{{#if:{{{2|}}}|{{#ifexpr: ( {{{2}}} > 12 ) OR ( {{{2}}} < 1 ) | ||
|  {{error|invalid month}}{{main other|[[Category:Pages using age template with invalid date]]}}|}} | |  {{error|invalid month}}{{main other|[[Category:Pages using age template with invalid date]]}}|}} | ||
− | }}{{#invoke:Check for unknown parameters|check|ignoreblank=y|preview=Page using [[Template: | + | }}{{#invoke:Check for unknown parameters|check|ignoreblank=y|preview=Page using [[Template:Birth year and age]] with unknown parameter "_VALUE_"|unknown={{main other|[[Category:Pages using birth year and age template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|1|2}}{{#ifeq: {{NAMESPACENUMBER}} | 0 |
| {{#if: {{#invoke:wd|label|raw}} | | {{#if: {{#invoke:wd|label|raw}} | ||
| {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}} | | {{#if: {{#invoke:String|match|{{#invoke:wd|properties|raw|P31}},|Q5,|1|1|true|}} |