Template:Alert box
From CETAF Identifiers Wiki
Revision as of 16:22, 4 June 2020 by Andreas Plank (Talk | contribs) (Alert box after CodiMD layout)
Summary: provide different kind of display boxes for messages (e.g. info, warning, danger, success)
Usage
Wiki Code | Example |
---|---|
{{Alert box |Note, that text in the box (info notice is default style) }} {{Alert box |Note, that text in the box (info notice is default style) |info }} |
… which gives Note, that text in the box (info notice is default style)
|
{{Alert box |Yes, text in the box (success notice) |success }} |
… which gives Yes, text in the box (success notice)
|
{{Alert box |Watch out! Text in the box (warning notice) |warning }} |
… which gives Watch out! Text in the box (warning notice)
|
{{Alert box |Oh No! Text in the box (danger notice) |danger }} |
… which gives Oh No! Text in the box (danger notice)
|
Parameters
Bold parameters are mandatory, all other are optional:
- |1= or |content=
- the text content of the box
- |2= or |type=
- the text content of the box’es type, one of
info
,success
,warning
,danger
(info is default) - |anchor=
- an (HTML) ID as a target anchor, to have later a link possibility to point to this ID