Jump to content

Template:Notice: Difference between revisions

From HedgeDocs
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.

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.