Template:Notice: Difference between revisions
Appearance
Created page with "<includeonly><div class="hedgedocs-notice hedgedocs-notice-{{{type|info}}}"> <div class="hedgedocs-notice-header">{{#switch: {{{type|info}}} | note = Note | info = Info | example = Example | warn = Warning | #default = Info }}</div> <div class="hedgedocs-notice-content">{{{content|}}}</div></div></includeonly> <noinclude> <templatedata> { "params": { "type": { "label": "Type", "type": "string", "required": true, "descr..." |
m Protected "Template:Notice" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(No difference)
|
Latest revision as of 14:12, 12 February 2025
This template creates a notice box with different styles for different types.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type | The type of notice. Valid values are "note", "info", "example" and "warn".
| String | required |
Content | content | The content of the notice | Content | required |
Examples
Note
This is a note box.
Info
This is an information box.
Example
This is an example box.
Warning
This is a warn box.