Difference between revisions of "Template:Birthyear"
Wikisimpsons - The Simpsons Wiki
Solar Dragon (talk | contribs) |
Solar Dragon (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{2|}}} | <includeonly>{{#if:{{{2|}}} | ||
|{{MONTHNAME|{{{2}}}}} | |{{MONTHNAME|{{{2}}}}} | ||
− | }}{{{1}}} (age {{#if:{{{2|}}} | + | }}{{Linkless exists|{{{1|}}}|[[{{{1|}}}]]|{{{1|}}}}} (age {{#if:{{{2|}}} |
|{{#ifexpr:{{CURRENTMONTH}}<{{{2}}} | |{{#ifexpr:{{CURRENTMONTH}}<{{{2}}} | ||
|{{#expr:{{CURRENTYEAR}}-{{{1}}}-1}} | |{{#expr:{{CURRENTYEAR}}-{{{1}}}-1}} | ||
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]]}}|}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}</includeonly><noinclude>[[Category:Templates]]</noinclude> | }}</includeonly><noinclude>[[Category:Templates]]</noinclude> |