Template:AgeFull: Difference between revisions
Jump to navigation
Jump to search
(whoops, well that was a waste of time, here's a better version I just found) |
m (oops, that's the WP template name) |
||
Line 2: | Line 2: | ||
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
|{{#if:{{{day|}}} | |{{#if:{{{day|}}} | ||
|{{ | |{{/display | ||
|years={{#expr:{{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | |years={{#expr:{{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | ||
|0 | |0 | ||
Line 39: | Line 39: | ||
|{{#ifexpr:{{CURRENTYEAR}}={{{year}}} | |{{#ifexpr:{{CURRENTYEAR}}={{{year}}} | ||
|0 years | |0 years | ||
|{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{ | |{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{/display | ||
|years={{#expr:{{CURRENTYEAR}}-{{{year}}}}} | |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}} | ||
}} | }} | ||
Line 46: | Line 46: | ||
|{{#ifexpr:{{CURRENTYEAR}}={{{year}}} | |{{#ifexpr:{{CURRENTYEAR}}={{{year}}} | ||
|<!--null value--> | |<!--null value--> | ||
|{{ | |{{/display | ||
|years={{#expr:{{CURRENTYEAR}}-{{{year}}}}} | |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}} | ||
}} and | }} and | ||
}} {{#expr:{{CURRENTMONTH}}-{{{month}}}-1}} or {{ | }} {{#expr:{{CURRENTMONTH}}-{{{month}}}-1}} or {{/display | ||
|months={{#expr:{{CURRENTMONTH}}-{{{month}}}}} | |months={{#expr:{{CURRENTMONTH}}-{{{month}}}}} | ||
}} | }} | ||
|{{#ifexpr:{{CURRENTYEAR}}={{#expr:{{{year}}}+1}} | |{{#ifexpr:{{CURRENTYEAR}}={{#expr:{{{year}}}+1}} | ||
|<!--null value--> | |<!--null value--> | ||
|{{ | |{{/display | ||
|years={{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} | |years={{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} | ||
}} and | }} and | ||
Line 63: | Line 63: | ||
|{{#ifexpr:{{CURRENTYEAR}}={{{year}}} | |{{#ifexpr:{{CURRENTYEAR}}={{{year}}} | ||
|0 years | |0 years | ||
|{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{ | |{{#expr:{{CURRENTYEAR}}-{{{year}}}-1}} or {{/display | ||
|years={{#expr:{{CURRENTYEAR}}-{{{year}}}}} | |years={{#expr:{{CURRENTYEAR}}-{{{year}}}}} | ||
}} | }} |
Revision as of 17:02, 12 June 2013
some time