Jump to content

Template:Nùmeru mese

Dae Wikipedia, s'entziclopedia lìbera.
[edit] [purge] Documentatzione template
Custa pàgina cheret iscrita in sardu.

This template returns the cyclic integer month number (between 1 and 12) of the month whose real number is in parameter. Alternatively, the month can be given with its Sardinian name (complete or abbreviated to 3 characters, with capitals or small letters).

Does not play nicely with "subst:"

Syntax:
{{Nùmeru_mese|mese}}
  • The month value is interpreted modulo 12 (extra leading zeroes are ignored, negative numbers are accepted, all numbers are rounded to floor).
Examples for all standard Sardinian month names:
{{Nùmeru_mese|ghennàrgiu}} returns 1
{{Nùmeru_mese|freàrgiu}} returns 2
{{Nùmeru_mese|martzu}} returns 3
{{Nùmeru_mese|abrile}} returns 4
{{Nùmeru_mese|maju}} returns 5
{{Nùmeru_mese|làmpadas}} returns 6
{{Nùmeru_mese|trìulas}} returns 7
{{Nùmeru_mese|austu}} returns 8
{{Nùmeru_mese|cabudanni}} returns 9
{{Nùmeru_mese|santugaine}} returns 10
{{Nùmeru_mese|santandria}} returns 11
{{Nùmeru_mese|nadale}} returns 12
Examples for all abbreviated Sardinian month names:
{{Nùmeru_mese|jan}} returns 1
{{Nùmeru_mese|feb}} returns 2
{{Nùmeru_mese|mar}} returns 3
{{Nùmeru_mese|apr}} returns 4
{{Nùmeru_mese|maj}} returns 5
{{Nùmeru_mese|làm}} returns 6
{{Nùmeru_mese|trì}} returns 7
{{Nùmeru_mese|aus}} returns 8
{{Nùmeru_mese|cap}} returns 9
{{Nùmeru_mese|san}} returns 10
{{Nùmeru_mese|sad}} returns 11
{{Nùmeru_mese|nad}} returns 12
Examples for all standard month numbers:
{{Nùmeru_mese|1}} returns 1
{{Nùmeru_mese|2}} returns 2
{{Nùmeru_mese|3}} returns 3
{{Nùmeru_mese|4}} returns 4
{{Nùmeru_mese|5}} returns 5
{{Nùmeru_mese|6}} returns 6
{{Nùmeru_mese|7}} returns 7
{{Nùmeru_mese|8}} returns 8
{{Nùmeru_mese|9}} returns 9
{{Nùmeru_mese|10}} returns 10
{{Nùmeru_mese|11}} returns 11
{{Nùmeru_mese|12}} returns 12
Examples for month numbers with extra leading zero:
{{Nùmeru_mese|01}} returns 1
{{Nùmeru_mese|02}} returns 2
{{Nùmeru_mese|03}} returns 3
{{Nùmeru_mese|04}} returns 4
{{Nùmeru_mese|05}} returns 5
{{Nùmeru_mese|06}} returns 6
{{Nùmeru_mese|07}} returns 7
{{Nùmeru_mese|08}} returns 8
{{Nùmeru_mese|09}} returns 9
Examples for month number underflows and overflows, from computed values:
{{Nùmeru_mese|-1200}} returns 12
{{Nùmeru_mese|-1201}} returns 11
{{Nùmeru_mese|-1212}} returns 12
{{Nùmeru_mese|-12}} returns 12
{{Nùmeru_mese|-11}} returns 1
{{Nùmeru_mese|-10}} returns 2
{{Nùmeru_mese|-9}} returns 3
{{Nùmeru_mese|-8}} returns 4
{{Nùmeru_mese|-7}} returns 5
{{Nùmeru_mese|-6}} returns 6
{{Nùmeru_mese|-5}} returns 7
{{Nùmeru_mese|-4}} returns 8
{{Nùmeru_mese|-3}} returns 9
{{Nùmeru_mese|-2}} returns 10
{{Nùmeru_mese|-1}} returns 11
{{Nùmeru_mese|-0.9999}} returns 11
{{Nùmeru_mese|-0.5}} returns 11
{{Nùmeru_mese|-0.0001}} returns 11
{{Nùmeru_mese|0}} returns 12
{{Nùmeru_mese|0.0001}} returns 12
{{Nùmeru_mese|0.5}} returns 12
{{Nùmeru_mese|0.9999}} returns 12
{{Nùmeru_mese|12.0001}} returns 12
{{Nùmeru_mese|12.5}} returns 12
{{Nùmeru_mese|12.9999}} returns 12
{{Nùmeru_mese|13}} returns 1
{{Nùmeru_mese|14}} returns 2
{{Nùmeru_mese|24}} returns 12
{{Nùmeru_mese|1200}} returns 12
{{Nùmeru_mese|1201}} returns 1
{{Nùmeru_mese|1212}} returns 12
Example for invalid month name:
{{MONTHNUMBER|xx}} returns Faddina de s'espressione: paràula non reconnota "xx".