Template:ISOmonth
Jump to navigation
Jump to search
This documentation is transcluded from Template:ISOmonth/doc.
Extracts month from calendar dates in ISO 8601 extended format (YYYY-MM-DD, e.g. "2024-05-04").
Usage
{{ISOmonth |1= |2= |form= |f= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | date in ISO 8601 format. Supported formats: YYYY-MM-DD, YYYY-MM, YYYY. | empty | required | |
2 | language code (only needs to be provided if the language shall be fixed and independant from the user's preferences) | value of {{int:Lang}} | optional | |
form | allows to specify differing syntactic forms to apply to the date (e.g. in some Polish phrases the month must appear in genitive form instead of nominative, so you have to set form to gen) | empty | optional | |
f | for month index, n for not zero-padded, m for zero-padded | empty | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also
Localization
This template is not intended to be localized.
- Examples
{{ISOmonth|2009-09-09}}
gives "September"{{ISOmonth|2009-09-09|ar}}
gives "سبتمبر"{{ISOmonth|2009-09-09|pl}}
gives "wrzesień"{{ISOmonth|2009-09-09|pl|form=gen}}
gives "września"{{ISOmonth|2009-09}}
gives "September"{{ISOmonth|2009-09-09|f=m}}
gives "09"{{ISOmonth|2009-09-09|f=n}}
gives "9"{{ISOmonth|2009-07|f=m}}
gives "07"{{ISOmonth|2009}}
gives ""
- Wrong ISO date or parameters