Template:Alert box

From GGBN Wiki
Jump to: navigation, search

Summary: provide different kind of display boxes for messages (e.g. info, warning, danger, success)

Usage

Wiki CodeExample
{{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
}}
{{Alert box
|Note, that text in the box (info notice is default style)
|anchor=box with info note
}}

… which gives

Note, that text in the box (info notice is default style)
🔗
Link to this box: #box with info note
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