Template:Note: Difference between revisions
Template page
More actions
m Improved examples |
Replaced manually added params table with template data block on /doc |
||
| Line 34: | Line 34: | ||
* Text {{Note|inline=1|text=with an inline note}} | * Text {{Note|inline=1|text=with an inline note}} | ||
== Template | == Template Specification == | ||
{ | {{Note/doc}} | ||
Revision as of 19:26, 26 April 2026
{{{text}}}
Usage
{{Note|text=Note without type}}
{{Note|type=info|text=Note with type 'info'}}
{{Note|type=reminder|text=Note with type 'reminder'}}
{{Note|type=warn|text=Note with type 'warn'}}
{{Note|type=error|text=Note with type 'error'}}
{{Note}} Text with a note prefix
* Text {{Note|inline=1|text=with an inline note}}
Note without type
Note with type 'info'
Note with type 'reminder'
Add
br tags
to add
a line break
br tags
to add
a line break
- Multiple paragraphs.
Note with type 'warn'
Note with type 'error'
Note: Text with a note prefix
- Text with an inline note
Template Specification
Show a note in a box (e.g. a top-of-the-page warning).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Inline formatting | inline | Show the template without line breaks before and after it.
| Boolean | optional |
| Type | type 2 | One of “info”, “example”, “reminder”, “warn”, or “error”. This setting affects the color and icon.
| String | optional |
| Header | header | Header text. This is expected to be used in combination with the 'text' parameter. | Content | optional |
| Text | text 1 content | Informative note. If the 'header' parameter is used, this will be the body text. | Content | optional |