Template:Portal events
| This template uses TemplateStyles: |
Renders an upcoming events dashboard card built on Template:Portal card and the <osmcal> tag. By default it shows up to 32 worldwide events formatted in the current page language, with links to add an event and browse past events.
Supports regional filtering via in= (for example in=Finland) and full label customization for translated portals. Passing an empty footer= hides the footer strip.
Usage
{{Portal events}}
Regional portal example:
{{Portal events
| id = tapahtumat
| title = Tapahtumat
| in = Finland
| lang = fi
| limit = 10
| nobanner = yes
| actions = [https://osmcal.org/event/add/ lisää tapahtuma]
| footer = '''[[Fi:OSM Suomi kartoittajatapaamiset|Kartoittajatapaamiset]]'''
}}
TemplateData
Renders an upcoming events dashboard card built on Template:Portal card and the osmcal extension.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Header title | title | Card heading text.
| Content | optional |
| Region or country filter | in | Optional country or region name passed to osmcal in=, for example Finland or Germany. | String | optional |
| Language code | lang | Language code passed to osmcal lang=. Defaults to the current page language via Template:langcode.
| String | optional |
| Event limit | limit | Maximum number of upcoming events to display.
| Number | optional |
| Hide empty banner | nobanner | Set to yes or true to pass nobanner=true to osmcal. | String | optional |
| Past events page | past | Wiki page linked by the default past events action.
| Page name | optional |
| Add action label | add_label | Link label for adding an event on osmcal.org.
| String | optional |
| Past action label | past_label | Link label for the past events page.
| String | optional |
| Header actions override | actions | Replaces the default add and past header actions. Leave empty to hide header actions. | Content | optional |
| Footer override | footer | Replaces the default footer links. Pass empty footer= to hide the footer. | Content | optional |
| Tone | tone | Card tone passed to Template:Portal card (neutral, featured, or empty for green).
| String | optional |
| Header icon | icon | Codex icon name passed to Template:Portal card.
| String | optional |
| Icon size | icon_size | Icon width passed to Template:Portal card.
| String | optional |
| ARIA heading level | level | Heading level assigned to the card header.
| Number | optional |
| Anchor ID | id | Optional HTML id attribute placed on the card container. | String | optional |