Template:Alert: Difference between revisions
From Ymirheim Wiki
m (Protected "Template:Alert" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
No edit summary |
||
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]] | |||
</noinclude> |
Revision as of 16:02, 8 July 2024
A template used to display Bootstrap-like alert boxes with different styles.
Examples
{{Alert|type=primary|content=Test conent}}
Test conent
{{Alert|type=secondary|content=Test conent}}
Test conent
{{Alert|type=success|content=Test conent}}
Test conent
{{Alert|type=danger|content=Test conent}}
Test conent
{{Alert|type=warning|content=Test conent}}
Test conent
{{Alert|type=info|content=Test conent}}
Test conent
{{Alert|type=light|content=Test conent}}
Test conent
{{Alert|type=dark|content=Test conent}}
Test conent