Difference between revisions of "Template:Alerts"

From Arks-Visiphone
Jump to navigation Jump to search
Line 31: Line 31:
  
 
Wiki code:
 
Wiki code:
<pre>{{Alerts|Test message}}</pre>
+
<pre>{{Alerts|A simple light alert—check it out!}}</pre>
{{Alerts|Test message}}
+
{{Alerts|A simple light alert—check it out!}}
  
 
===== The Warning Alert =====
 
===== The Warning Alert =====
Line 38: Line 38:
  
 
Wiki code:
 
Wiki code:
<pre>{{Alerts|warning|Test message}}</pre>
+
<pre>{{Alerts|warning|A simple warning alert—check it out!}}</pre>
{{Alerts|warning|Test message}}
+
{{Alerts|warning|A simple warning alert—check it out!}}
  
You may also include a title for the warning alert.
+
===== The Danger Alert =====
 +
The following displays the danger alert text box. You can follow this with whatever text/images/markup you like.
  
 
Wiki code:
 
Wiki code:
 +
<pre>{{Alerts|danger|A simple danger alert—check it out!}}</pre>
 +
{{Alerts|danger|A simple danger alert—check it out!}}
 +
 +
===== The Dark Alert =====
 +
The following displays the dark alert text box. You can follow this with whatever text/images/markup you like.
 +
 +
Wiki code:
 +
<pre>{{Alerts|dark|A simple dark alert—check it out!}}</pre>
 +
{{Alerts|dark|A simple dark alert—check it out!}}
 +
 +
===== Titles =====
 +
You may also include a title for the alerts.
 +
 +
Wiki code using the warning alert:
 
<pre>{{Alerts|warning|title=This is a title|Test message}}</pre>
 
<pre>{{Alerts|warning|title=This is a title|Test message}}</pre>
 
{{Alerts|warning|title=This is a title|Test message}}
 
{{Alerts|warning|title=This is a title|Test message}}

Revision as of 08:40, 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:

  1. A warning alert
  2. A danger alert
  3. A dark alert
  4. 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|A simple light alert—check it out!}}
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|A simple warning alert—check it out!}}
The Danger Alert

The following displays the danger alert text box. You can follow this with whatever text/images/markup you like.

Wiki code:

{{Alerts|danger|A simple danger alert—check it out!}}
The Dark Alert

The following displays the dark alert text box. You can follow this with whatever text/images/markup you like.

Wiki code:

{{Alerts|dark|A simple dark alert—check it out!}}
Titles

You may also include a title for the alerts.

Wiki code using the warning alert:

{{Alerts|warning|title=This is a title|Test message}}