Template:Age calculator: Difference between revisions

From OLPC
Jump to navigation Jump to search
(test)
 
(color)
Line 1: Line 1:
<div style="float: left; border:1px solid #053A83; margin: 1px;">
<div style="float: left; border:1px solid #003388; margin: 1px;">
{| cellspacing="0" style="width: 238px; background: #99CCFF;"
{| cellspacing="0" style="width: 238px; background: #99CCFF;"
| style="width: 45px; height: 43px; background: #053A83; 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 [[Wikipedia:Wikipedians|Wikipedian]] is <!--
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: #000;" | This [[OLPC:OLPCan|OLPCan]] 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}}|&nbsp;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}}|&nbsp;old today! |, <!--

Revision as of 02:54, 10 February 2008

0 This OLPCan is 0 years, 0 months, and 0 days old
on November 22, 2024.


Usage

{{User current age|day=16|month=08|year=1982}}
Template:User current age