Template:Date of birth: Difference between revisions
Till Kraemer (talk | contribs) mNo edit summary |
m set category plural |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} | |||
<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: {{{2}}} | Month | | {{#ifeq: {{{2}}} | 1 | {{#ifexpr: {{{3}}}<=20 | [[File:Capricorn.png|13px|Capricorn|link=Category:Capricorn]] [[Category:Capricorn]] | [[File:Aquarius.png|13px|Aquarius|link=Category:Aquarius]] [[Category:Aquarius]] }} | }} | |||
{{#ifeq: {{{2}}} | 2 | {{#ifexpr: {{{3}}}<=18 | [[File:Aquarius.png|13px|Aquarius|link=Category:Aquarius]] [[Category:Aquarius]] | [[File:Pisces.png|13px|Pisces|link=Category:Pisces]] [[Category:Pisces]] }} | }} | |||
{{#ifeq: {{{2}}} | 3 | {{#ifexpr: {{{3}}}<=20 | [[File:Pisces.png|13px|Pisces|link=Category:Pisces]] [[Category:Pisces]] | [[File:Aries.png|13px|Aries|link=Category:Aries]] [[Category:Aries]] }} | }} | |||
{{#ifeq: {{{2}}} | 4 | {{#ifexpr: {{{3}}}<=20 | [[File:Aries.png|13px|Aries|link=Category:Aries]] [[Category:Aries]] | [[File:Taurus.png|13px|Taurus|link=Category:Taurus]] [[Category:Taurus]] }} | }} | |||
{{#ifeq: {{{2}}} | 5 | {{#ifexpr: {{{3}}}<=20 | [[File:Taurus.png|13px|Taurus|link=Category:Taurus]] [[Category:Taurus]] | [[File:Gemini.png|13px|Gemini|link=Category:Gemini]] [[Category:Gemini]] }} | }} | |||
{{#ifeq: {{{2}}} | 6 | {{#ifexpr: {{{3}}}<=21 | [[File:Gemini.png|13px|Gemini|link=Category:Gemini]] [[Category:Gemini]] | [[File:Cancer.png|13px|Cancer|link=Category:Cancer]] [[Category:Cancer]] }} | }} | |||
{{#ifeq: {{{2}}} | 7 | {{#ifexpr: {{{3}}}<=22 | [[File:Cancer.png|13px|Cancer|link=Category:Cancer]] [[Category:Cancer]] | [[File:Leo.png|13px|Leo|link=Category:Leo]] [[Category:Leo]] }} | }} | |||
{{#ifeq: {{{2}}} | 8 | {{#ifexpr: {{{3}}}<=22 | [[File:Leo.png|13px|Leo|link=Category:Leo]] [[Category:Leo]] | [[File:Virgo.png|13px|Virgo|link=Category:Virgo]] [[Category:Virgo]] }} | }} | |||
{{#ifeq: {{{2}}} | 9 | {{#ifexpr: {{{3}}}<=23 | [[File:Virgo.png|13px|Virgo|link=Category:Virgo]] [[Category:Virgo]] | [[File:Libra.png|13px|Libra|link=Category:Libra]] [[Category:Libra]] }} | }} | |||
{{#ifeq: {{{2}}} | 10 | {{#ifexpr: {{{3}}}<=23 | [[File:Libra.png|13px|Libra|link=Category:Libra]] [[Category:Libra]] | [[File:Scorpio.png|13px|Scorpio|link=Category:Scorpio]] [[Category:Scorpio]] }} | }} | |||
{{#ifeq: {{{2}}} | 11 | {{#ifexpr: {{{3}}}<=22 | [[File:Scorpio.png|13px|Scorpio|link=Category:Scorpio]] [[Category:Scorpio]] | [[File:Sagittarius.png|13px|Sagittarius|link=Category:Sagittarius]] [[Category:Sagittarius]] }} | }} | |||
{{#ifeq: {{{2}}} | 12 | {{#ifexpr: {{{3}}}<=21 | [[File:Sagittarius.png|13px|Sagittarius|link=Category:Sagittarius]] [[Category:Sagittarius]] | ([[File:Capricorn.png|13px|Capricorn|link=Category:Capricorn]] [[Category:Capricorn]] }} | }} }} | |||
{{#ifeq: {{{3|}}} | Day | [[Category:Born unknown]] | [[Category:Born {{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. | ||
Line 6: | Line 19: | ||
<code><nowiki>{{Date of birth|Year|Month|Day}}</nowiki></code> | <code><nowiki>{{Date of birth|Year|Month|Day}}</nowiki></code> | ||
[[Category:Templates]] | |||
[[ | [[de:Vorlage:Geburtsdatum]] | ||
</noinclude> | </noinclude> |
Latest revision as of 14:05, 16 November 2023
This template shows the age an links the date of birth.
Use it like that:
{{Date of birth|Year|Month|Day}}