Template:Portal intro
| This template uses TemplateStyles: |
Renders an editorial hero or introduction box using Template:Portal styles (.portal-intro) with an optional left logo, secondary text line, and bottom quick-link strip, or a slim single-row directory strip when layout=bar (.portal-bar).
Usage
{{Portal intro
| logo = Openstreetmap logo.svg
| logo_size = 64px
| logo_link = https://www.openstreetmap.org/
| logo_alt = OpenStreetMap logo
| lead = '''OpenStreetMap''' is a free, editable map of the world built by volunteers.
| sub = Its open geographic database powers websites, mobile apps, and GIS tools worldwide.
| links = [[About OpenStreetMap]] · [[FAQ]] · [[Glossary]] · [[Get help]]
}}
Slim single-row directory strip:
{{Portal intro
| layout = bar
| lead = The contributor hub is a directory of resources for OpenStreetMap contributors.
| meta = '''New to OpenStreetMap?''' Start with the '''[[Beginners' guide]]'''.
}}
TemplateData
Renders an editorial hero box or slim directory strip using Template:Portal styles.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Lead text | lead 1 | Primary introductory sentence shown in larger text (or left-side text when layout=bar). | Content | required |
| Subtext | sub | Optional secondary muted sentence shown below the lead (or right-aligned text when layout=bar). | Content | optional |
| Directory bar meta text | meta | Alias for sub when using layout=bar to show right-aligned routing hints. | Content | optional |
| Quick links | links | Optional bottom strip of inline links separated by middle dots. | Content | optional |
| Layout variant | layout | Set to bar for a slim single-row directory strip (.portal-bar). Leave empty for the default editorial hero (.portal-intro).
| String | optional |
| Logo filename | logo | Optional image filename without the File: prefix, for example Openstreetmap logo.svg. | File | optional |
| Logo size | logo_size | Image width such as 64px or 72px.
| String | optional |
| Logo link target | logo_link | Optional wiki page or URL opened when clicking the logo. Leave empty for a decorative logo. | String | optional |
| Logo alt text | logo_alt | Accessible alternative text for the logo image. | String | optional |
| Logo border | logo_border | Set to yes to add MediaWiki's subtle 1px image border (useful for flags with white edges). | String | optional |
| Invert logo in dark mode | logo_invert | Set to yes to wrap the logo in Template:Invert in dark mode for monochrome SVGs. | String | optional |
| Anchor ID | id | Optional HTML id attribute placed on the container. | String | optional |
| ARIA heading level | heading | Optional ARIA heading level on the lead paragraph, for example 1 on Main Page where the default page title is hidden. | Number | optional |