Jump to content

Template:Notice

From HedgeDocs
Revision as of 17:44, 9 February 2025 by Hedgedocs-admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This template creates a notice box with different styles for different types.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Typetype

The type of notice. Valid values are "note", "info", "example" and "warn".

Default
info
Stringrequired
Contentcontent

The content of the notice

Contentrequired

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.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.