Difference between revisions of "Template:Alerts"
Jump to navigation
Jump to search
Line 51: | Line 51: | ||
</div> | </div> | ||
+ | __NOTOC__ | ||
</noinclude> | </noinclude> |
Revision as of 08:31, 30 April 2020
Template Documentation
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Usage
This template can be used to provide an alert textbox in 4 contextual cases. This template can display the following alerts:
- A warning alert
- A danger alert
- A dark alert
- And a normal alert
Examples
The Classic Light Alert
The following displays the light alert text box. You can follow this with whatever text/images/markup you like.
Wiki code:
{{Alerts|Test message}}
Test message
The Warning Alert
The following displays the warning alert text box. You can follow this with whatever text/images/markup you like.
Wiki code:
{{Alerts|warning|Test message}}
warning
You may also include a title for the warning alert.
Wiki code:
{{Alerts|warning|title=This is a title|Test message}}
This is a title
warning