Template:Calendar/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

The above calendar box appears on the Main Page and Current events.

On 2020-12-18 the calendar has been replaced (as announced) with osmcal. Please add all events to OpenStreetMap Calendar, they will appear here soon afterwards, as well as on some other sites in the OSM universe.

How to update the calendar

To add a new event to the calendar, go to OSMCal, grant OSMCal access to your OpenStreetMap account, and add an event.

Usage

{{Calendar|country=ISO 3166 code|language=BCP 47 code}}

By default, the calendar displays all upcoming events, regardless of location, with dates formatted in the current page's language (as determined by {{Langcode}}). To limit the events to a particular country, set the |country = parameter. To format dates in a different language, set the |language = parameter.

Inserts a table of upcoming events related to OpenStreetMap.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Countrycountry

Limits the events to a single country based on an ISO 3166 code.

Default
Every event is displayed regardless of location.
Example
US
Stringoptional
Languagelanguage

Formats dates based on a BCP 47 code (such as an ISO 639 code).

Default
The current page’s language based on its title.
Example
es
Unknownoptional