Template:Alert: Difference between revisions

From Ymirheim Wiki
(Created page with "<templatestyles src="Template:Alert/styles.css"/><div class="alert alert-{{{type|primary}}}" role="alert">{{{content}}}</div>")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Alert/styles.css"/><div class="alert alert-{{{type|primary}}}" role="alert">{{{content}}}</div>
<includeonly><templatestyles src="Template:Alert/styles.css"/><div class="alert alert-{{{type|primary}}}" role="alert">{{{content}}}</div></includeonly><noinclude>
A template used to display Bootstrap-like alert boxes with different styles.
 
== Examples ==
<pre><nowiki>{{Alert|type=primary|content=Test conent}}</nowiki></pre>
{{Alert|type=primary|content=Test conent}}
 
 
<pre><nowiki>{{Alert|type=secondary|content=Test conent}}</nowiki></pre>
{{Alert|type=secondary|content=Test conent}}
 
 
<pre><nowiki>{{Alert|type=success|content=Test conent}}</nowiki></pre>
{{Alert|type=success|content=Test conent}}
 
 
<pre><nowiki>{{Alert|type=danger|content=Test conent}}</nowiki></pre>
{{Alert|type=danger|content=Test conent}}
 
 
<pre><nowiki>{{Alert|type=warning|content=Test conent}}</nowiki></pre>
{{Alert|type=warning|content=Test conent}}
 
 
<pre><nowiki>{{Alert|type=info|content=Test conent}}</nowiki></pre>
{{Alert|type=info|content=Test conent}}
 
 
<pre><nowiki>{{Alert|type=light|content=Test conent}}</nowiki></pre>
{{Alert|type=light|content=Test conent}}
 
 
<pre><nowiki>{{Alert|type=dark|content=Test conent}}</nowiki></pre>
{{Alert|type=dark|content=Test conent}}
 
 
[[Category:Formatting Templates{{#translation:}}]]
</noinclude>

Latest revision as of 19:30, 8 July 2024

A template used to display Bootstrap-like alert boxes with different styles.

Examples

{{Alert|type=primary|content=Test conent}}


{{Alert|type=secondary|content=Test conent}}


{{Alert|type=success|content=Test conent}}


{{Alert|type=danger|content=Test conent}}


{{Alert|type=warning|content=Test conent}}


{{Alert|type=info|content=Test conent}}


{{Alert|type=light|content=Test conent}}


{{Alert|type=dark|content=Test conent}}