Template:Date of birth: Difference between revisions
Till Kraemer (talk | contribs) +zodiac signs, copied from https://de.pornopedia.com/wiki/Vorlage:Geburtsdatum - thank you, Kenji! |
m set category plural |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<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| | |||
{{#ifeq: {{{2}}} | 2 | {{#ifexpr: {{{3}}}<=18 | [[File:Aquarius.png|13px|Aquarius| | <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}}} | 3 | {{#ifexpr: {{{3}}}<=20 | [[File:Pisces.png|13px|Pisces| | {{#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}}} | 4 | {{#ifexpr: {{{3}}}<=20 | [[File:Aries.png|13px|Aries| | {{#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}}} | 5 | {{#ifexpr: {{{3}}}<=20 | [[File:Taurus.png|13px|Taurus| | {{#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}}} | 6 | {{#ifexpr: {{{3}}}<=21 | [[File:Gemini.png|13px|Gemini| | {{#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}}} | 7 | {{#ifexpr: {{{3}}}<=22 | [[File:Cancer.png|13px|Cancer| | {{#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}}} | 8 | {{#ifexpr: {{{3}}}<=22 | [[File:Leo.png|13px|Leo| | {{#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}}} | 9 | {{#ifexpr: {{{3}}}<=23 | [[File:Virgo.png|13px|Virgo| | {{#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}}} | 10 | {{#ifexpr: {{{3}}}<=23 | [[File:Libra.png|13px|Libra| | {{#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}}} | 11 | {{#ifexpr: {{{3}}}<=22 | [[File:Scorpio.png|13px|Scorpio| | {{#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}}} | 12 | {{#ifexpr: {{{3}}}<=21 | [[File:Sagittarius.png|13px|Sagittarius| | {{#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> | {{#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 18: | Line 19: | ||
<code><nowiki>{{Date of birth|Year|Month|Day}}</nowiki></code> | <code><nowiki>{{Date of birth|Year|Month|Day}}</nowiki></code> | ||
[[Category: | [[Category:Templates]] | ||
[[de:Vorlage:Geburtsdatum]] | [[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}}