Template:Portal note
| This template uses TemplateStyles: |
Renders a left-accented note, tip, or alert box (.portal-note) using Template:Portal styles.
- Use
text=(or positional1=) for compact inline notes. Always use a named parameter (text=orbody=) when the message contains an equals sign such as a URL query string or OSM tag. - Use
body=for multi-paragraph or list-based notes (*or#). For boxes containing full page section headings (== ... ==), keep raw<div class="portal-note">markup so MediaWiki section headings parse normally.
Usage
{{Portal note|title=Tip:|text=Local knowledge of your neighborhood is enough to make useful edits.}}
{{Portal note|tone=warn|icon=alert|title=Platform notice:|text=Scheduled maintenance is underway.}}
{{Portal note|id=mailing-lists|tone=neutral|title=Mailing lists:|text=Additional background information.}}
{{Portal note|title=Before uploading:|body=
* Check [[Copyright|license compatibility]].
* Consult local mappers via [[Contact channels]].
}}
TemplateData
Renders a styled note, tip, or warning box using Template:Portal styles.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Inline note text | text 1 | Inline body text of the note. Use named text= if the content includes an equals sign. | Content | optional |
| Block note body | body | Multi-paragraph or list-based note content rendered below an optional header block. | Content | optional |
| Title prefix | title | Optional bold lead-in label shown before the text, for example Tip: or Platform notice:. | String | optional |
| Tone | tone | Visual style: leave empty for default green tip, warn for amber warning, or neutral for subtle grey.
| String | optional |
| Optional icon | icon | Icon name passed to Template:Codex icon (or Template:OOjs icon when icon_set=oojs). | String | optional |
| Icon set | icon_set | Icon template to use when icon is set: leave empty or codex for Template:Codex icon, or oojs for Template:OOjs icon.
| String | optional |
| Icon size | icon_size | Icon width passed to the icon template.
| String | optional |
| Anchor ID | id | Optional HTML id attribute placed on the note container. | String | optional |