From OpenStreetMap Wiki
Jump to: navigation, search
20 Aug.
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation



This template displays the day and month of the date argument or arguments in the language deduced from the page’s name. The date can be entered in any format that Mediawiki’s #time function understands, but usually omits the year. In this case, the current year is assumed, which may fail to render correctly some dates falling on 29 February, but not in the current year, for example in archived calendar events or events scheduled in the future (if this occurs, specify explicitly the year in the date parameters, even if this year will not be displayed).

Optional parameter for year:


This overrrides the default current year assumed by default by Mediawiki’s #time function when parsing the given date values. This indication of the year (not displayed) also enables the insertion of invisible microformats for each date (in standard ISO 8601 format YYYY-MM-DD), usable by external parsers (such as pin13.net/mf2 for parsing Template:Calendar and generate JSON data) for creating custom calendars. This assumes that both dates (when specifying a date range) will be on the same year. No indication of time is given: as the default time is at start of the day at 00:00, the second date given in date ranges will be converted in the generated microformat at start of the following day.

See also