Difference between revisions of "Template:Alert box"
From GGBN Wiki
(Created page with "<includeonly><!-- template programming here -->{{#switch: {{LC:{{{type|{{{2|}}}}}}}}<!-- -->| danger = <div class="alert alert-danger" {{#if: {{{anchor|}}}|id="{{{anchor|}...") |
(No difference)
|
Latest revision as of 11:01, 19 December 2022
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 }} {{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)
🔗 Note, that text in the box (info notice is default style)
Link to this box: #box with info note |
{{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