Template:Birth-date: Difference between revisions
no edit summary
(similar to {{tl|birth date}} except readable inputs. See also {{tl|start-date}}) |
No edit summary |
||
Line 2: | Line 2: | ||
|up-date={{#ifeq:"{{{1|0009-11}}}"|"{{Four digit|{{#expr:{{{1|0009-11}}}}}}}"|<!--Here if Test1 satisfied: see talk -->{{#time:Y|{{#expr:{{{1|0009-11}}}+3000}}}}//{{#if:{{{BCE|{{{BC|}}}}}}|-1 year, |+1 year, }}|{{#iferror:{{#ifexpr:((abs({{{1|0009-11}}}))< 1900) and ({{#time:Y|{{{1|0009-11}}}}} >1900) | {{#ifexpr:({{#time:Y|{{{1|0009-11}}}}}) <2000|{{#expr:{{#time:Y|{{{1|0009-11}}}}}+1100}}|{{#expr:{{#time:Y|{{{1|0009-11}}}}}+1000}} }} |{{#expr:{{#time:Y|{{{1|0009-11}}}}}+3000}}}}|{{#expr:{{#time:Y|{{{1|0009-11}}}}}+3000}}}}<!--done with year -->{{#ifeq:{{#time:d H:i:s|{{{1|0009-11}}} }}|{{#iferror:{{#ifexpr:{{{1|0009-11}}}|{{#time:d}}}}|01}} 00:00:00|{{#time:-m|{{{1|0009-11}}}}}/-m/+1 month, |{{#ifeq:{{#time:H:i:s|{{{1|0009-11}}}}}|00:00:00|{{#time:-m-d|{{{1|0009-11}}}}}/-m-d/+1 day, |{{#ifeq:{{#time:i:s|{{{1|0009-11}}}}}|00:00|{{#time:-m-d H:00|{{{1|0009-11}}}}}/-m-d TH/+1 hour, |{{#ifeq:{{#time:s|{{{1|0009-11}}}}}|00|{{#time:-m-d H:i|{{{1|0009-11}}}}}/-m-d TH:i/+1 minute, |{{#time:-m-d H:i:s|{{{1|0009-11}}}}}/-m-d TH:i:s/+1 second, }}}}}}}}}} | |up-date={{#ifeq:"{{{1|0009-11}}}"|"{{Four digit|{{#expr:{{{1|0009-11}}}}}}}"|<!--Here if Test1 satisfied: see talk -->{{#time:Y|{{#expr:{{{1|0009-11}}}+3000}}}}//{{#if:{{{BCE|{{{BC|}}}}}}|-1 year, |+1 year, }}|{{#iferror:{{#ifexpr:((abs({{{1|0009-11}}}))< 1900) and ({{#time:Y|{{{1|0009-11}}}}} >1900) | {{#ifexpr:({{#time:Y|{{{1|0009-11}}}}}) <2000|{{#expr:{{#time:Y|{{{1|0009-11}}}}}+1100}}|{{#expr:{{#time:Y|{{{1|0009-11}}}}}+1000}} }} |{{#expr:{{#time:Y|{{{1|0009-11}}}}}+3000}}}}|{{#expr:{{#time:Y|{{{1|0009-11}}}}}+3000}}}}<!--done with year -->{{#ifeq:{{#time:d H:i:s|{{{1|0009-11}}} }}|{{#iferror:{{#ifexpr:{{{1|0009-11}}}|{{#time:d}}}}|01}} 00:00:00|{{#time:-m|{{{1|0009-11}}}}}/-m/+1 month, |{{#ifeq:{{#time:H:i:s|{{{1|0009-11}}}}}|00:00:00|{{#time:-m-d|{{{1|0009-11}}}}}/-m-d/+1 day, |{{#ifeq:{{#time:i:s|{{{1|0009-11}}}}}|00:00|{{#time:-m-d H:00|{{{1|0009-11}}}}}/-m-d TH/+1 hour, |{{#ifeq:{{#time:s|{{{1|0009-11}}}}}|00|{{#time:-m-d H:i|{{{1|0009-11}}}}}/-m-d TH:i/+1 minute, |{{#time:-m-d H:i:s|{{{1|0009-11}}}}}/-m-d TH:i:s/+1 second, }}}}}}}}}} | ||
|BCE={{{BCE|{{{BC|}}}}}} | |BCE={{{BCE|{{{BC|}}}}}} | ||
|ISO8601={{{ISO8601|}}} | |ISO8601={{{ISO8601|{{{ymd|}}}}}} | ||
|class-extra={{{class-extra|}}} bday<!-- random extra classes to add eg:bday updated --> | |class-extra={{{class-extra|}}} bday<!-- random extra classes to add eg:bday updated --> | ||
|class=dtstart | |class=dtstart |