Changes
Template:I18n month/doc (view source)
Revision as of 17:58, 13 November 2013
, 17:58, 13 November 2013Fix links that were supposed to hide "wikipedia:"
{{documentation subpage}}
This templates allows to render the name of a month (specified through a number between ''1'' and ''12'') in the user's preferred language.
==Usage==
{{tlx|I18n month|1{{=}}|2{{=}}}}
==Parameters==
{| class=wikitable
! Parameter !! Description !! Default !! Status
|- valign=top
| {{para|1}} || Number (''1-12'') of the month. Short (like "Jan") and full (like "January") names are also supported. || {{color|grey|empty}} || Required
|- valign=top
| {{para|2}} || Language code (only needs to be provided if the language shall be fixed and independent from the user's preferences) || Value of <nowiki>{{int:Lang}}</nowiki> || Optional
|- valign=top
| {{para|form}} || Allows specification of [[Wikipedia:grammatical case|grammatical case]] for the month, for languages that use them. Possible cases:
*"form=nom" for [[Wikipedia:nominative case|nominative case]] (or leave blank)
*"form=gen" for [[Wikipedia:genitive case|genitive case]]
*"form=loc" for [[Wikipedia:locative case|locative case]] (supported for pl, cs & sl languages)
*"form=ins" for [[Wikipedia:instrumental case|instrumental case]] (supported for pl, cs & sl languages)
*"form=dat" for [[Wikipedia:dative case|dative case]] (supported for ru language)
Also [[Wikipedia:partitive case|partitive case]] (ptv), [[Wikipedia:inessive case|inessive case]] (ine), [[Wikipedia:elative case|elative case]] (ela) and [[Wikipedia:illative case|illative case]] (ill) cases are supported for Finnish language, in addition to [[Wikipedia:nominative case|nominative case]] and [[Wikipedia:genitive case|genitive case]] (gen).
|nom || Optional
|}
==Examples==
{|border="1" style="right"
|-
! Code
! Output
! Notes
|-
| <nowiki> {{I18n month|1}} </nowiki>
| {{I18n month|1}}
| Month name in the language of the user
|-
| <nowiki> {{I18n month|2|de}} </nowiki>
| {{I18n month|2|de}}
| German version
|-
| <nowiki>{{I18n month|3|fr}}</nowiki><br><nowiki>{{I18n month|3|fr|form=gen}} </nowiki>
| {{I18n month|3|fr}}<br>{{I18n month|3|fr|form=gen}}
| Regular and [[:en:Genitive case|genitive case]] in language that do not differentiate between them results in identical output
|-
| <nowiki>{{I18n month|4|ru}}</nowiki><br><nowiki>{{I18n month|4|ru|form=gen}} </nowiki>
| {{I18n month|4|ru}}<br>{{I18n month|4|ru|form=gen}}
| Regular and [[:en:Genitive case|genitive case]] in language that use uses different [[:en:Grammatical case|cases]]
|-
| <nowiki>{{I18n month|9}}</nowiki><br><nowiki>{{I18n month|Sep}}</nowiki><br><nowiki>{{I18n month|September}}</nowiki>
| {{I18n month|9}}<br>{{I18n month|Sep}}<br>{{I18n month|September}}
| Alternative month specifications
|-
| <nowiki>{{I18n month|6|pl|form=loc}}</nowiki><br><nowiki>{{I18n month|6|cs|form=loc}}</nowiki>
| {{I18n month|6|pl|form=loc}}<br>{{I18n month|6|cs|form=loc}}
| [[:en:Locative case|locative case]]
|-
| <nowiki>{{I18n month|7|pl|form=ins}}</nowiki><br><nowiki>{{I18n month|7|cs|form=ins}}</nowiki>
| {{I18n month|7|pl|form=ins}}<br>{{I18n month|7|cs|form=ins}}
| [[:en:Instrumental case|instrumental case]]
|-
| <nowiki> {{I18n month|5}} </nowiki><br><nowiki> {{I18n month|5|fi|form=gen}} </nowiki><br><nowiki> {{I18n month|5|cs|form=ins}}</nowiki><br><nowiki> {{I18n month|5|pl|form=loc}}</nowiki>
| {{I18n month|5}} <br> {{I18n month|5|fi|form=gen}} <br> {{I18n month|5|cs|form=ins}} <br> {{I18n month|5|pl|form=loc}}
| May uses different code than other months, beceause it has no separate short and long forms in English.
|}
==Czech months in nominative, genitive, instrumental and locative cases==
#{{I18n month|01|cs}}, {{I18n month|01|cs|form=gen}}, {{I18n month|01|cs|form=ins}}, {{I18n month|01|cs|form=loc}}
#{{I18n month|02|cs}}, {{I18n month|02|cs|form=gen}}, {{I18n month|02|cs|form=ins}}, {{I18n month|02|cs|form=loc}}
#{{I18n month|03|cs}}, {{I18n month|03|cs|form=gen}}, {{I18n month|03|cs|form=ins}}, {{I18n month|03|cs|form=loc}}
#{{I18n month|04|cs}}, {{I18n month|04|cs|form=gen}}, {{I18n month|04|cs|form=ins}}, {{I18n month|04|cs|form=loc}}
#{{I18n month|05|cs}}, {{I18n month|05|cs|form=gen}}, {{I18n month|05|cs|form=ins}}, {{I18n month|05|cs|form=loc}}
#{{I18n month|06|cs}}, {{I18n month|06|cs|form=gen}}, {{I18n month|06|cs|form=ins}}, {{I18n month|06|cs|form=loc}}
#{{I18n month|07|cs}}, {{I18n month|07|cs|form=gen}}, {{I18n month|07|cs|form=ins}}, {{I18n month|07|cs|form=loc}}
#{{I18n month|08|cs}}, {{I18n month|08|cs|form=gen}}, {{I18n month|08|cs|form=ins}}, {{I18n month|08|cs|form=loc}}
#{{I18n month|09|cs}}, {{I18n month|09|cs|form=gen}}, {{I18n month|09|cs|form=ins}}, {{I18n month|09|cs|form=loc}}
#{{I18n month|10|cs}}, {{I18n month|10|cs|form=gen}}, {{I18n month|10|cs|form=ins}}, {{I18n month|10|cs|form=loc}}
#{{I18n month|11|cs}}, {{I18n month|11|cs|form=gen}}, {{I18n month|11|cs|form=ins}}, {{I18n month|11|cs|form=loc}}
#{{I18n month|12|cs}}, {{I18n month|12|cs|form=gen}}, {{I18n month|12|cs|form=ins}}, {{I18n month|12|cs|form=loc}}
==Polish months in nominative, genitive, instrumental and locative cases==
#{{I18n month|01|pl}}, {{I18n month|01|pl|form=gen}}, {{I18n month|01|pl|form=ins}}, {{I18n month|01|pl|form=loc}}
#{{I18n month|02|pl}}, {{I18n month|02|pl|form=gen}}, {{I18n month|02|pl|form=ins}}, {{I18n month|02|pl|form=loc}}
#{{I18n month|03|pl}}, {{I18n month|03|pl|form=gen}}, {{I18n month|03|pl|form=ins}}, {{I18n month|03|pl|form=loc}}
#{{I18n month|04|pl}}, {{I18n month|04|pl|form=gen}}, {{I18n month|04|pl|form=ins}}, {{I18n month|04|pl|form=loc}}
#{{I18n month|05|pl}}, {{I18n month|05|pl|form=gen}}, {{I18n month|05|pl|form=ins}}, {{I18n month|05|pl|form=loc}}
#{{I18n month|06|pl}}, {{I18n month|06|pl|form=gen}}, {{I18n month|06|pl|form=ins}}, {{I18n month|06|pl|form=loc}}
#{{I18n month|07|pl}}, {{I18n month|07|pl|form=gen}}, {{I18n month|07|pl|form=ins}}, {{I18n month|07|pl|form=loc}}
#{{I18n month|08|pl}}, {{I18n month|08|pl|form=gen}}, {{I18n month|08|pl|form=ins}}, {{I18n month|08|pl|form=loc}}
#{{I18n month|09|pl}}, {{I18n month|09|pl|form=gen}}, {{I18n month|09|pl|form=ins}}, {{I18n month|09|pl|form=loc}}
#{{I18n month|10|pl}}, {{I18n month|10|pl|form=gen}}, {{I18n month|10|pl|form=ins}}, {{I18n month|10|pl|form=loc}}
#{{I18n month|11|pl}}, {{I18n month|11|pl|form=gen}}, {{I18n month|11|pl|form=ins}}, {{I18n month|11|pl|form=loc}}
#{{I18n month|12|pl}}, {{I18n month|12|pl|form=gen}}, {{I18n month|12|pl|form=ins}}, {{I18n month|12|pl|form=loc}}
<includeonly>
[[Category:User interface language dependent templates|{{PAGENAME}}]]
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
</includeonly>
This templates allows to render the name of a month (specified through a number between ''1'' and ''12'') in the user's preferred language.
==Usage==
{{tlx|I18n month|1{{=}}|2{{=}}}}
==Parameters==
{| class=wikitable
! Parameter !! Description !! Default !! Status
|- valign=top
| {{para|1}} || Number (''1-12'') of the month. Short (like "Jan") and full (like "January") names are also supported. || {{color|grey|empty}} || Required
|- valign=top
| {{para|2}} || Language code (only needs to be provided if the language shall be fixed and independent from the user's preferences) || Value of <nowiki>{{int:Lang}}</nowiki> || Optional
|- valign=top
| {{para|form}} || Allows specification of [[Wikipedia:grammatical case|grammatical case]] for the month, for languages that use them. Possible cases:
*"form=nom" for [[Wikipedia:nominative case|nominative case]] (or leave blank)
*"form=gen" for [[Wikipedia:genitive case|genitive case]]
*"form=loc" for [[Wikipedia:locative case|locative case]] (supported for pl, cs & sl languages)
*"form=ins" for [[Wikipedia:instrumental case|instrumental case]] (supported for pl, cs & sl languages)
*"form=dat" for [[Wikipedia:dative case|dative case]] (supported for ru language)
Also [[Wikipedia:partitive case|partitive case]] (ptv), [[Wikipedia:inessive case|inessive case]] (ine), [[Wikipedia:elative case|elative case]] (ela) and [[Wikipedia:illative case|illative case]] (ill) cases are supported for Finnish language, in addition to [[Wikipedia:nominative case|nominative case]] and [[Wikipedia:genitive case|genitive case]] (gen).
|nom || Optional
|}
==Examples==
{|border="1" style="right"
|-
! Code
! Output
! Notes
|-
| <nowiki> {{I18n month|1}} </nowiki>
| {{I18n month|1}}
| Month name in the language of the user
|-
| <nowiki> {{I18n month|2|de}} </nowiki>
| {{I18n month|2|de}}
| German version
|-
| <nowiki>{{I18n month|3|fr}}</nowiki><br><nowiki>{{I18n month|3|fr|form=gen}} </nowiki>
| {{I18n month|3|fr}}<br>{{I18n month|3|fr|form=gen}}
| Regular and [[:en:Genitive case|genitive case]] in language that do not differentiate between them results in identical output
|-
| <nowiki>{{I18n month|4|ru}}</nowiki><br><nowiki>{{I18n month|4|ru|form=gen}} </nowiki>
| {{I18n month|4|ru}}<br>{{I18n month|4|ru|form=gen}}
| Regular and [[:en:Genitive case|genitive case]] in language that use uses different [[:en:Grammatical case|cases]]
|-
| <nowiki>{{I18n month|9}}</nowiki><br><nowiki>{{I18n month|Sep}}</nowiki><br><nowiki>{{I18n month|September}}</nowiki>
| {{I18n month|9}}<br>{{I18n month|Sep}}<br>{{I18n month|September}}
| Alternative month specifications
|-
| <nowiki>{{I18n month|6|pl|form=loc}}</nowiki><br><nowiki>{{I18n month|6|cs|form=loc}}</nowiki>
| {{I18n month|6|pl|form=loc}}<br>{{I18n month|6|cs|form=loc}}
| [[:en:Locative case|locative case]]
|-
| <nowiki>{{I18n month|7|pl|form=ins}}</nowiki><br><nowiki>{{I18n month|7|cs|form=ins}}</nowiki>
| {{I18n month|7|pl|form=ins}}<br>{{I18n month|7|cs|form=ins}}
| [[:en:Instrumental case|instrumental case]]
|-
| <nowiki> {{I18n month|5}} </nowiki><br><nowiki> {{I18n month|5|fi|form=gen}} </nowiki><br><nowiki> {{I18n month|5|cs|form=ins}}</nowiki><br><nowiki> {{I18n month|5|pl|form=loc}}</nowiki>
| {{I18n month|5}} <br> {{I18n month|5|fi|form=gen}} <br> {{I18n month|5|cs|form=ins}} <br> {{I18n month|5|pl|form=loc}}
| May uses different code than other months, beceause it has no separate short and long forms in English.
|}
==Czech months in nominative, genitive, instrumental and locative cases==
#{{I18n month|01|cs}}, {{I18n month|01|cs|form=gen}}, {{I18n month|01|cs|form=ins}}, {{I18n month|01|cs|form=loc}}
#{{I18n month|02|cs}}, {{I18n month|02|cs|form=gen}}, {{I18n month|02|cs|form=ins}}, {{I18n month|02|cs|form=loc}}
#{{I18n month|03|cs}}, {{I18n month|03|cs|form=gen}}, {{I18n month|03|cs|form=ins}}, {{I18n month|03|cs|form=loc}}
#{{I18n month|04|cs}}, {{I18n month|04|cs|form=gen}}, {{I18n month|04|cs|form=ins}}, {{I18n month|04|cs|form=loc}}
#{{I18n month|05|cs}}, {{I18n month|05|cs|form=gen}}, {{I18n month|05|cs|form=ins}}, {{I18n month|05|cs|form=loc}}
#{{I18n month|06|cs}}, {{I18n month|06|cs|form=gen}}, {{I18n month|06|cs|form=ins}}, {{I18n month|06|cs|form=loc}}
#{{I18n month|07|cs}}, {{I18n month|07|cs|form=gen}}, {{I18n month|07|cs|form=ins}}, {{I18n month|07|cs|form=loc}}
#{{I18n month|08|cs}}, {{I18n month|08|cs|form=gen}}, {{I18n month|08|cs|form=ins}}, {{I18n month|08|cs|form=loc}}
#{{I18n month|09|cs}}, {{I18n month|09|cs|form=gen}}, {{I18n month|09|cs|form=ins}}, {{I18n month|09|cs|form=loc}}
#{{I18n month|10|cs}}, {{I18n month|10|cs|form=gen}}, {{I18n month|10|cs|form=ins}}, {{I18n month|10|cs|form=loc}}
#{{I18n month|11|cs}}, {{I18n month|11|cs|form=gen}}, {{I18n month|11|cs|form=ins}}, {{I18n month|11|cs|form=loc}}
#{{I18n month|12|cs}}, {{I18n month|12|cs|form=gen}}, {{I18n month|12|cs|form=ins}}, {{I18n month|12|cs|form=loc}}
==Polish months in nominative, genitive, instrumental and locative cases==
#{{I18n month|01|pl}}, {{I18n month|01|pl|form=gen}}, {{I18n month|01|pl|form=ins}}, {{I18n month|01|pl|form=loc}}
#{{I18n month|02|pl}}, {{I18n month|02|pl|form=gen}}, {{I18n month|02|pl|form=ins}}, {{I18n month|02|pl|form=loc}}
#{{I18n month|03|pl}}, {{I18n month|03|pl|form=gen}}, {{I18n month|03|pl|form=ins}}, {{I18n month|03|pl|form=loc}}
#{{I18n month|04|pl}}, {{I18n month|04|pl|form=gen}}, {{I18n month|04|pl|form=ins}}, {{I18n month|04|pl|form=loc}}
#{{I18n month|05|pl}}, {{I18n month|05|pl|form=gen}}, {{I18n month|05|pl|form=ins}}, {{I18n month|05|pl|form=loc}}
#{{I18n month|06|pl}}, {{I18n month|06|pl|form=gen}}, {{I18n month|06|pl|form=ins}}, {{I18n month|06|pl|form=loc}}
#{{I18n month|07|pl}}, {{I18n month|07|pl|form=gen}}, {{I18n month|07|pl|form=ins}}, {{I18n month|07|pl|form=loc}}
#{{I18n month|08|pl}}, {{I18n month|08|pl|form=gen}}, {{I18n month|08|pl|form=ins}}, {{I18n month|08|pl|form=loc}}
#{{I18n month|09|pl}}, {{I18n month|09|pl|form=gen}}, {{I18n month|09|pl|form=ins}}, {{I18n month|09|pl|form=loc}}
#{{I18n month|10|pl}}, {{I18n month|10|pl|form=gen}}, {{I18n month|10|pl|form=ins}}, {{I18n month|10|pl|form=loc}}
#{{I18n month|11|pl}}, {{I18n month|11|pl|form=gen}}, {{I18n month|11|pl|form=ins}}, {{I18n month|11|pl|form=loc}}
#{{I18n month|12|pl}}, {{I18n month|12|pl|form=gen}}, {{I18n month|12|pl|form=ins}}, {{I18n month|12|pl|form=loc}}
<includeonly>
[[Category:User interface language dependent templates|{{PAGENAME}}]]
[[Category:Time, date and calendar templates|{{PAGENAME}}]]
</includeonly>