Template:Age calculator: Difference between revisions
Jump to navigation
Jump to search
m (Template:Age-calculator moved to Template:Age calculator: demo) |
No edit summary |
||
Line 2: | Line 2: | ||
{| cellspacing="0" style="width: 238px; background: #99CCFF;" |
{| cellspacing="0" style="width: 238px; background: #99CCFF;" |
||
| style="width: 45px; height: 43px; background: #003388; text-align: center; font-size:15pt; color: #fff;" | '''{{#ifexpr: {{{month|{{CURRENTMONTH}}}}} < {{CURRENTMONTH}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#ifexpr: {{{month|{{CURRENTMONTH}}}}} = {{CURRENTMONTH}} | {{#ifexpr: {{{day|{{CURRENTDAY}}}}} <= {{CURRENTDAY}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} - 1 }} }} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} - 1 }} }} }}''' |
| style="width: 45px; height: 43px; background: #003388; text-align: center; font-size:15pt; color: #fff;" | '''{{#ifexpr: {{{month|{{CURRENTMONTH}}}}} < {{CURRENTMONTH}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#ifexpr: {{{month|{{CURRENTMONTH}}}}} = {{CURRENTMONTH}} | {{#ifexpr: {{{day|{{CURRENTDAY}}}}} <= {{CURRENTDAY}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} - 1 }} }} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} - 1 }} }} }}''' |
||
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: #000;" | This [[OLPC: |
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: #000;" | This [[OLPC:OLPCers|OLPCer]] is <!-- |
||
//-->{{#ifexpr: {{{month|{{CURRENTMONTH}}}}} < {{CURRENTMONTH}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#ifexpr: {{{month|{{CURRENTMONTH}}}}} = {{CURRENTMONTH}} | {{#ifexpr: {{{day|{{CURRENTDAY}}}}} <= {{CURRENTDAY}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#expr: ({{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}}) - 1 }} }} | {{#expr: ({{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}}) - 1 }} }} }} years{{#ifexpr:{{#ifeq:{{CURRENTMONTH}}|{{{month}}}|1|0}} AND {{#ifeq:{{CURRENTDAY}}|{{{day}}}|1|0}}| old today! |, <!-- |
//-->{{#ifexpr: {{{month|{{CURRENTMONTH}}}}} < {{CURRENTMONTH}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#ifexpr: {{{month|{{CURRENTMONTH}}}}} = {{CURRENTMONTH}} | {{#ifexpr: {{{day|{{CURRENTDAY}}}}} <= {{CURRENTDAY}} | {{#expr: {{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}} }} | {{#expr: ({{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}}) - 1 }} }} | {{#expr: ({{CURRENTYEAR}} - {{{year|{{CURRENTYEAR}}}}}) - 1 }} }} }} years{{#ifexpr:{{#ifeq:{{CURRENTMONTH}}|{{{month}}}|1|0}} AND {{#ifeq:{{CURRENTDAY}}|{{{day}}}|1|0}}| old today! |, <!-- |
Revision as of 03:10, 10 February 2008
0 | This OLPCer is 0 years, 0 months, and 0 days old on November 22, 2024. |
Usage
{{Age-calculator|day=16|month=08|year=1952}}
72 | This OLPCer is 72 years, 3 months, and 6 days old on November 22, 2024. |