Template:Birth date: Difference between revisions

    (Add a df (day first) option to this template. See Template talk:Euro birth date#Suggested move.)
    m (Ensure month is a number, using MONTHNUMBER)
    Line 1: Line 1:
    {{#ifeq:{{{df}}}|yes|[[{{{3}}} {{MONTHNAME|{{{2}}}}}]]|[[{{MONTHNAME|{{{2}}}}} {{{3}}}]]}} [[{{{1}}}]]<span style="display:none">(<span class="bday">{{{1}}}-{{pad2digit|{{{2}}}}}-{{pad2digit|{{{3}}}}}</span>)</span><noinclude>
    {{#ifeq:{{{df}}}|yes|[[{{{3}}} {{MONTHNAME|{{{2}}}}}]]|[[{{MONTHNAME|{{{2}}}}} {{{3}}}]]}} [[{{{1}}}]]<span style="display:none">(<span class="bday">{{{1}}}-{{pad2digit|{{MONTHNUMBER|{{{2}}}}}}}-{{pad2digit|{{{3}}}}}</span>)</span><noinclude>
    {{Template:Birth date and age/doc}}
    {{Template:Birth date and age/doc}}
    [[Category:Date mathematics templates|{{PAGENAME}}]]
    [[Category:Date mathematics templates|{{PAGENAME}}]]
    </noinclude>
    </noinclude>