Template:MONTHNAME: Difference between revisions

    From Nonbinary Wiki
    mNo edit summary
     
    m (57 revisions imported from wikipedia:Template:MONTHNAME)
     
    (58 intermediate revisions by 11 users not shown)
    Line 1: Line 1:
    <includeonly>{{#ifexpr:{{{1|}}}|{{#switch:{{#expr:{{{1|}}}-0.5 round 0}}|1=january|2=february|3=march|4=april|5=may|6=june|7=july|8=august|9=september|10=october|11=november|12=december|Incorrect required parameter 1=''month''!}}|Missing required parameter 1=''month''!}}</includeonly><noinclude>{{Template documentation}}
    <includeonly>{{#if:{{{1|}}}|{{#switch:{{MONTHNUMBER|{{{1}}}}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=''month''!}}|Missing required parameter 1=''month''!}}</includeonly><noinclude>
    This template returns the name of the month whose number is in parameter.
    {{documentation}}
    ; Syntax<nowiki>:</nowiki>
    [[Category:Templates]]
    : <tt><nowiki>{{</nowiki>MONTHNAME|</tt>''month''<tt>}}</tt>
    * The ''month'' must be between 1 and 12 (extra leading zeroes and decimals are ignored).
    ; Examples for all months<nowiki>:</nowiki>
    : <tt><nowiki>{{MONTHNAME|1}}</nowiki></tt> returns {{MONTHNAME|1}}
    : <tt><nowiki>{{MONTHNAME|2}}</nowiki></tt> returns {{MONTHNAME|2}}
    : <tt><nowiki>{{MONTHNAME|3}}</nowiki></tt> returns {{MONTHNAME|3}}
    : <tt><nowiki>{{MONTHNAME|4}}</nowiki></tt> returns {{MONTHNAME|4}}
    : <tt><nowiki>{{MONTHNAME|5}}</nowiki></tt> returns {{MONTHNAME|5}}
    : <tt><nowiki>{{MONTHNAME|6}}</nowiki></tt> returns {{MONTHNAME|6}}
    : <tt><nowiki>{{MONTHNAME|7}}</nowiki></tt> returns {{MONTHNAME|7}}
    : <tt><nowiki>{{MONTHNAME|8}}</nowiki></tt> returns {{MONTHNAME|8}}
    : <tt><nowiki>{{MONTHNAME|9}}</nowiki></tt> returns {{MONTHNAME|9}}
    : <tt><nowiki>{{MONTHNAME|10}}</nowiki></tt> returns {{MONTHNAME|10}}
    : <tt><nowiki>{{MONTHNAME|11}}</nowiki></tt> returns {{MONTHNAME|11}}
    : <tt><nowiki>{{MONTHNAME|12}}</nowiki></tt> returns {{MONTHNAME|12}}
     
    ; See also<nowiki>:</nowiki>
    : [[Template:CURRENTMONTHNAME]]
     
    [[Category:Date computing template|MONTHNAME]]
     
    [[fr:Modèle:MONTHNAME]]
    </noinclude>
    </noinclude>

    Latest revision as of 11:59, 21 May 2021

    Template documentation[view] [edit] [history] [purge]

    This template returns the name of the month whose number is in parameter. Alternatively, the English month name or abbreviation (with any letter case) can be given.