Template:Portal door
| This template uses TemplateStyles: |
Renders a Tier 1 focal doorway item (.portal-door) with a clickable round green icon badge, bold primary link, and short description using Template:Portal styles. Supports both internal wiki pages (page=) and external URLs (url=), optional Codex/OOjs icons (icon_set=), horizontal row layout (layout=row), and shortcut pillars (links=).
Intended for use inside <div class="portal-grid portal-grid--3">, portal-grid--6, portal-grid--2 (with layout=row), or portal-grid--4 (with links=).
Usage
<div class="portal-grid portal-grid--3">
{{Portal door
| icon = Map-icon.svg
| page = Using OpenStreetMap
| desc = Apps, web maps, and open map data
}}
{{Portal door
| icon = Nuvola web pen.svg
| page = Beginners' guide
| desc = Make your first map edit step by step
}}
{{Portal door
| icon_set = codex
| icon = speechBubble
| url = https://community.openstreetmap.org/
| title = Ask the community
| desc = Questions, tagging help, and regional forums
}}
</div>
Horizontal 2-column row or doorway pillar with shortcut links:
{{Portal door
| layout = row
| icon_set = codex
| icon = map
| page = Develop#maps
| title = Build with OSM data & tiles
| desc = Display vector or raster maps, query geodata, and add search or routing.
}}
{{Portal door
| icon = Map-icon.svg
| page = Using OpenStreetMap
| desc = Apps, web maps, and open map data
| links =
* [[Software/Mobile|Mobile navigation apps]]
* [[Downloading data]]
}}
TemplateData
Renders a focal doorway with a clickable circular icon badge, bold link, description, and optional shortcut links using Template:Portal styles.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon name or filename | icon | Wiki image filename (for example Map-icon.svg), or Codex/OOjs icon name when icon_set is set to codex or oojs. | String | required |
| Icon set | icon_set | Leave empty for a wiki File: image, or set to codex (Template:Codex icon) or oojs (Template:OOjs icon).
| String | optional |
| Target wiki page | page | Destination wiki page name (used unless url is set). | Page name | optional |
| External URL | url | Optional external destination URL used instead of page. | URL | optional |
| Link label | title | Optional custom display label. Defaults to page or url. | String | optional |
| Description | desc | Optional one-line muted subtitle shown below the link. | String | optional |
| Pillar shortcut links | links | Optional bulleted shortcut list wrapped in .portal-pillar and .portal-pillar__links below the doorway. | Content | optional |
| Icon size | icon_size | Icon width. Defaults to 40px for centered File: icons, 32px for layout=row File: icons, or 28px for Codex/OOjs icons. | String | optional |
| Invert in dark mode | invert | Set to yes for monochrome black File: SVG icons when not using icon_set=codex or oojs. | String | optional |
| Anchor ID | id | Optional HTML id attribute placed on the doorway (or pillar) container. | String | optional |
| ARIA heading level | level | Heading level assigned to the door title.
| Number | optional |
| Layout variant | layout | Set to row for a compact horizontal icon-left layout (.portal-door--row). Leave empty for the default centered vertical badge. | String | optional |