Nodyn:Monthname/doc
Dyma is-ddalen dogfennaeth ar gyfer Nodyn:Monthname. Mae'n cynnwys gwybodaeth defnydd, categorïau, dolenni rhyngiaith a chynnwys eraill sydd ddim yn rhan o nodyn dudalen wreiddiol. |
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.
- Syntax:
- {{MONTHNAME|month}}
- The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
- Compatibility synonym:
- {{month name|month}}
- Examples for all standard month numbers:
- {{MONTHNAME|1}} returns Ionawr
- {{MONTHNAME|2}} returns Chwefror
- {{MONTHNAME|3}} returns Mawrth
- {{MONTHNAME|4}} returns Ebrill
- {{MONTHNAME|5}} returns Mai
- {{MONTHNAME|6}} returns Mehefin
- {{MONTHNAME|7}} returns Gorffennaf
- {{MONTHNAME|8}} returns Awst
- {{MONTHNAME|9}} returns Medi
- {{MONTHNAME|10}} returns Hydref
- {{MONTHNAME|11}} returns Tachwedd
- {{MONTHNAME|12}} returns Rhagfyr
- Examples for month numbers with extra leading zero:
- {{MONTHNAME|01}} returns Ionawr
- {{MONTHNAME|02}} returns Chwefror
- {{MONTHNAME|03}} returns Mawrth
- {{MONTHNAME|04}} returns Ebrill
- {{MONTHNAME|05}} returns Mai
- {{MONTHNAME|06}} returns Mehefin
- {{MONTHNAME|07}} returns Gorffennaf
- {{MONTHNAME|08}} returns Awst
- {{MONTHNAME|09}} returns Medi
- Examples for month number cyclic underflows and overflows, from computed values:
- {{MONTHNAME|-12}} returns Rhagfyr
- {{MONTHNAME|-11}} returns Ionawr
- {{MONTHNAME|-10}} returns Chwefror
- {{MONTHNAME|-9}} returns Mawrth
- {{MONTHNAME|-3}} returns Medi
- {{MONTHNAME|-2}} returns Hydref
- {{MONTHNAME|-1}} returns Tachwedd
- {{MONTHNAME|0}} returns Rhagfyr
- {{MONTHNAME|13}} returns Ionawr
- {{MONTHNAME|14}} returns Chwefror
- {{MONTHNAME|15}} returns Mawrth
- {{MONTHNAME|16}} returns Ebrill
- {{MONTHNAME|23}} returns Tachwedd
- {{MONTHNAME|24}} returns Rhagfyr
- {{MONTHNAME|25}} returns Ionawr
- {{MONTHNAME|1200}} returns Rhagfyr
- {{MONTHNAME|1201}} returns Ionawr
- {{MONTHNAME|1212}} returns Rhagfyr
- Examples for all standard English month names:
- {{MONTHNAME|JANUARY}} returns Ionawr
- {{MONTHNAME|FEBRUARY}} returns Chwefror
- {{MONTHNAME|MARCH}} returns Mawrth
- {{MONTHNAME|APRIL}} returns Ebrill
- {{MONTHNAME|MAY}} returns Mai
- {{MONTHNAME|JUNE}} returns Mehefin
- {{MONTHNAME|JULY}} returns Gorffennaf
- {{MONTHNAME|AUGUST}} returns Awst
- {{MONTHNAME|SEPTEMBER}} returns Medi
- {{MONTHNAME|OCTOBER}} returns Hydref
- {{MONTHNAME|NOVEMBER}} returns Tachwedd
- {{MONTHNAME|DECEMBER}} returns Rhagfyr
- Examples for all abbreviated English month names:
- {{MONTHNAME|jan}} returns Ionawr
- {{MONTHNAME|feb}} returns Chwefror
- {{MONTHNAME|mar}} returns Mawrth
- {{MONTHNAME|apr}} returns Ebrill
- {{MONTHNAME|may}} returns Mai
- {{MONTHNAME|jun}} returns Mehefin
- {{MONTHNAME|jul}} returns Gorffennaf
- {{MONTHNAME|aug}} returns Awst
- {{MONTHNAME|sep}} returns Medi
- {{MONTHNAME|oct}} returns Hydref
- {{MONTHNAME|nov}} returns Tachwedd
- {{MONTHNAME|dec}} returns Rhagfyr
See also
golygu