Fyrimynd:MONTHABBREV

Frá Wikipedia, hin frælsa alfrøðin
Jump to navigation Jump to search
Documentation icon Skjalfesting til fyrimyndina[vís] [rætta] [søga] [dagfør]

This template returns the English abbreviation (between "Jan" and "Dec") of the month whose number is in parameter. Alternatively, the English name or abbreviation (in any letter case) can be provided.

Syntax:
{{MONTHABBREV|month}}
  • The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
Examples for all standard English month names:
{{MONTHABBREV|january}} returns jan
{{MONTHABBREV|february}} returns feb
{{MONTHABBREV|march}} returns mar
{{MONTHABBREV|april}} returns apr
{{MONTHABBREV|may}} returns mai
{{MONTHABBREV|june}} returns jun
{{MONTHABBREV|july}} returns jul
{{MONTHABBREV|august}} returns aug
{{MONTHABBREV|september}} returns sep
{{MONTHABBREV|october}} returns okt
{{MONTHABBREV|november}} returns nov
{{MONTHABBREV|december}} returns des
Examples for all abbreviated English month names:
{{MONTHABBREV|JAN}} returns jan
{{MONTHABBREV|FEB}} returns feb
{{MONTHABBREV|MAR}} returns mar
{{MONTHABBREV|APR}} returns apr
{{MONTHABBREV|MAY}} returns mai
{{MONTHABBREV|JUN}} returns jun
{{MONTHABBREV|JUL}} returns jul
{{MONTHABBREV|AUG}} returns aug
{{MONTHABBREV|SEP}} returns sep
{{MONTHABBREV|OCT}} returns okt
{{MONTHABBREV|NOV}} returns nov
{{MONTHABBREV|DEC}} returns des
Examples for all standard month numbers:
{{MONTHABBREV|1}} gevur jan
{{MONTHABBREV|2}} gevur feb
{{MONTHABBREV|3}} gevur mar
{{MONTHABBREV|4}} gevur apr
{{MONTHABBREV|5}} gevur mai
{{MONTHABBREV|6}} gevur jun
{{MONTHABBREV|7}} gevur jul
{{MONTHABBREV|8}} gevur aug
{{MONTHABBREV|9}} gevur sep
{{MONTHABBREV|10}} gevur okt
{{MONTHABBREV|11}} gevur nov
{{MONTHABBREV|12}} gevur des
Examples for month numbers with extra leading zero:
{{MONTHABBREV|01}} returns jan
{{MONTHABBREV|02}} returns feb
{{MONTHABBREV|03}} returns mar
{{MONTHABBREV|04}} returns apr
{{MONTHABBREV|05}} returns mai
{{MONTHABBREV|06}} returns jun
{{MONTHABBREV|07}} returns jul
{{MONTHABBREV|08}} returns aug
{{MONTHABBREV|09}} returns sep
Examples for month number underflows and overflows, from computed values:
{{MONTHABBREV|-1200}} returns des
{{MONTHABBREV|-1201}} returns nov
{{MONTHABBREV|-1212}} returns des
{{MONTHABBREV|-12}} returns des
{{MONTHABBREV|-11}} returns jan
{{MONTHABBREV|-10}} returns feb
{{MONTHABBREV|-9}} returns mar
{{MONTHABBREV|-3}} returns okt
{{MONTHABBREV|-2}} returns okt
{{MONTHABBREV|-1}} returns nov
{{MONTHABBREV|0}} returns des
{{MONTHABBREV|13}} returns jan
{{MONTHABBREV|14}} returns feb
{{MONTHABBREV|15}} returns mar
{{MONTHABBREV|16}} returns apr
{{MONTHABBREV|23}} returns nov
{{MONTHABBREV|24}} returns des
{{MONTHABBREV|25}} returns jan
{{MONTHABBREV|1200}} returns des
{{MONTHABBREV|1201}} returns jan
{{MONTHABBREV|1212}} returns des

Sí eisini[rætta wikitekst]

Template:MONTHNUMBER
Template:MONTHNAME