Template:ISOmonth

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
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

ParameterDescriptionDefaultStatus
1date in ISO 8601 format. Supported formats: YYYY-MM-DD, YYYY-MM, YYYY.emptyrequired
2language code (only needs to be provided if the language shall be fixed and independant from the user's preferences)value of {{int:Lang}}optional
formallows 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)emptyoptional
ffor month index, n for not zero-padded, m for zero-paddedemptyoptional

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