Template:Date of birth: Difference between revisions
. |
. |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{3|}}} | Day | | [[{{MONTHNAME|{{{2}}}}} {{#expr:{{{3|{{{day|{{{3}}}}}}}}}}}]], }} {{#ifeq: {{{1|}}} | Year | | [[{{{1}}}]] }} {{#ifeq: {{{1|}}} | Year | | <br>(age: {{#ifeq: {{{2}}} | Month | {{#ifeq: {{{1}}} | Year | | ca. }} | }}{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{#ifeq: {{{2|}}} | Month | 7 | {{{2}}} }})or({{{5|{{CURRENTMONTH}}}}})=({{#ifeq: {{{2|}}} | Month | 7 | {{{2}}} }})and({{{6|{{CURRENTDAY}}}}})<({{#ifeq: {{{3|}}} | Day | 1 | {{#expr:{{{3|{{{day|{{{3}}}}}}}}}}} }}))}})}} {{#ifeq: {{{3|}}} | Day | [[Category:Born unknown]] | [[Category:Born {{#expr:{{MONTHNAME|{{{2}}}}} {{#expr:{{{3|{{{day|{{{3}}}}}}}}}}}]]}}{{#ifeq: {{{1|}}} | Year | [[Category:Born unknown]] | [[Category:Born {{{1}}}]] }}</includeonly><noinclude> | <includeonly>{{#ifeq: {{{3|}}} | Day | | [[{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} {{#expr:{{{3|{{{day|{{{3}}}}}}}}}}}]], }} {{#ifeq: {{{1|}}} | Year | | [[{{{1}}}]] }} {{#ifeq: {{{1|}}} | Year | | <br>(age: {{#ifeq: {{{2}}} | Month | {{#ifeq: {{{1}}} | Year | | ca. }} | }}{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{#ifeq: {{{2|}}} | Month | 7 | {{{2}}} }})or({{{5|{{CURRENTMONTH}}}}})=({{#ifeq: {{{2|}}} | Month | 7 | {{{2}}} }})and({{{6|{{CURRENTDAY}}}}})<({{#ifeq: {{{3|}}} | Day | 1 | {{#expr:{{{3|{{{day|{{{3}}}}}}}}}}} }}))}})}} {{#ifeq: {{{3|}}} | Day | [[Category:Born unknown]] | [[Category:Born {{#expr:{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} {{#expr:{{{3|{{{day|{{{3}}}}}}}}}}}]]}}{{#ifeq: {{{1|}}} | Year | [[Category:Born unknown]] | [[Category:Born {{{1}}}]] }}</includeonly><noinclude> | ||
This template shows the age an links the date of birth. | This template shows the age an links the date of birth. | ||
Revision as of 19:49, 6 October 2013
This template shows the age an links the date of birth.
Use it like that:
{{Date of birth|Year|Month|Day}}