Template:I18n month

From Foundry Wiki


Template-info.png Documentation

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

{{I18n month|1=|2=}}

Parameters

Parameter Description Default Status
|1= Number (1-12) of the month. Short (like "Jan") and full (like "January") names are also supported. empty style="background-color:#FFE0B2;vertical-align:middle;text-align:center;" class="table-yes" | Required
|2= Language code (only needs to be provided if the language shall be fixed and independent from the user's preferences) Value of {{int:Lang}} Optional
|form= Allows specification of grammatical case for the month, for languages that use them. Possible cases:

Also partitive case (ptv), inessive case (ine), elative case (ela) and illative case (ill) cases are supported for Finnish language, in addition to nominative case and genitive case (gen).

nom Optional

Examples

Code Output Notes
{{I18n month|1}} January Month name in the language of the user
{{I18n month|2|de}} Februar German version
{{I18n month|3|fr}}
{{I18n month|3|fr|form=gen}}
mars


mars

Regular and genitive case in language that do not differentiate between them results in identical output
{{I18n month|4|ru}}
{{I18n month|4|ru|form=gen}}
апрель


апреля

Regular and genitive case in language that use uses different cases
{{I18n month|9}}
{{I18n month|Sep}}
{{I18n month|September}}
September


September
September

Alternative month specifications
{{I18n month|6|pl|form=loc}}
{{I18n month|6|cs|form=loc}}
MediaWiki:June-loc/pl


MediaWiki:June-loc/cs

locative case
{{I18n month|7|pl|form=ins}}
{{I18n month|7|cs|form=ins}}
MediaWiki:July-ins/pl


MediaWiki:July-ins/cs

instrumental case
{{I18n month|5}}
{{I18n month|5|fi|form=gen}}
{{I18n month|5|cs|form=ins}}
{{I18n month|5|pl|form=loc}}
May

toukokuun
MediaWiki:May-ins/cs
MediaWiki:May-loc/pl
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

  1. leden

, ledna , MediaWiki:January-ins/cs , MediaWiki:January-loc/cs

  1. únor

, února , MediaWiki:February-ins/cs , MediaWiki:February-loc/cs

  1. březen

, března , MediaWiki:March-ins/cs , MediaWiki:March-loc/cs

  1. duben

, dubna , MediaWiki:April-ins/cs , MediaWiki:April-loc/cs

  1. květen

, května , MediaWiki:May-ins/cs , MediaWiki:May-loc/cs

  1. červen

, června , MediaWiki:June-ins/cs , MediaWiki:June-loc/cs

  1. červenec

, července , MediaWiki:July-ins/cs , MediaWiki:July-loc/cs

  1. srpen

, srpna , MediaWiki:August-ins/cs , MediaWiki:August-loc/cs

  1. září

, září , MediaWiki:September-ins/cs , MediaWiki:September-loc/cs

  1. říjen

, října , MediaWiki:October-ins/cs , MediaWiki:October-loc/cs

  1. listopad

, listopadu , MediaWiki:November-ins/cs , MediaWiki:November-loc/cs

  1. prosinec

, prosince , MediaWiki:December-ins/cs , MediaWiki:December-loc/cs


Polish months in nominative, genitive, instrumental and locative cases

  1. styczeń

, stycznia , MediaWiki:January-ins/pl , MediaWiki:January-loc/pl

  1. luty

, lutego , MediaWiki:February-ins/pl , MediaWiki:February-loc/pl

  1. marzec

, marca , MediaWiki:March-ins/pl , MediaWiki:March-loc/pl

  1. kwiecień

, kwietnia , MediaWiki:April-ins/pl , MediaWiki:April-loc/pl

  1. maj

, maja , MediaWiki:May-ins/pl , MediaWiki:May-loc/pl

  1. czerwiec

, czerwca , MediaWiki:June-ins/pl , MediaWiki:June-loc/pl

  1. lipiec

, lipca , MediaWiki:July-ins/pl , MediaWiki:July-loc/pl

  1. sierpień

, sierpnia , MediaWiki:August-ins/pl , MediaWiki:August-loc/pl

  1. wrzesień

, września , MediaWiki:September-ins/pl , MediaWiki:September-loc/pl

  1. październik

, października , MediaWiki:October-ins/pl , MediaWiki:October-loc/pl

  1. listopad

, listopada , MediaWiki:November-ins/pl , MediaWiki:November-loc/pl

  1. grudzień

, grudnia , MediaWiki:December-ins/pl , MediaWiki:December-loc/pl