Difference between revisions of "Template: Warning"
From Elder Tale Online MUSH
Liminality (talk | contribs) (Created page with "<noinclude> This is the "Warning" template. It should be called in the following format: <pre> {{Warning |warning= }} </pre> Edit the page to see the template text. </noinclud...") |
Liminality (talk | contribs) m |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>Use: |
− | + | <nowiki>{{ Warning</nowiki> | |
− | + | | type=primary|danger|warning|info | |
− | < | + | | Msg=Your message here |
− | {{Warning | + | }} |
− | |warning= | + | |
− | }} | + | == Primary Example == |
− | </ | + | <nowiki>{{Warning | Type=primary | Msg=Primary Message}}</nowiki> |
− | + | <div class="alert alert-primary" role="alert">Primary Message</div> | |
− | </ | + | |
− | + | == Danger Example == | |
− | | {{{warning|}}} | + | <nowiki>{{Warning | Type=danger| Msg=Dangerous Message}}</nowiki> |
− | |} | + | <div class="alert alert-danger" role="alert"><i class="fas fa-exclamation-triangle"></i> Dangerous Message</div> |
− | </includeonly> | + | |
+ | == Warning Example == | ||
+ | <nowiki>{{Warning | Type=warning| Msg=Warning Message}}</nowiki> | ||
+ | <div class="alert alert-warning" role="alert"><i class="fas fa-exclamation-circle"></i> Warning Message</div> | ||
+ | |||
+ | == Info Example == | ||
+ | <nowiki>{{Warning | Type=info| Msg=Info Message}}</nowiki> | ||
+ | <div class="alert alert-info" role="alert"><i class="fas fa-exclamation"></i> Info Message</div></noinclude><includeonly><div class="alert alert-{{#switch:{{{Type|primary}}}|primary|danger|warning|info={{{Type|primary}}}|#default=primary}}" role="alert">{{#switch:{{{Type|primary}}}|primary=|danger=<i class="fas fa-exclamation"></i>|warning=<i class="fas fa-exclamation-triangle"></i>|info=<i class="fas fa-exclamation-circle"></i>|#default=}} {{{Msg}}}</div></includeonly> |
Latest revision as of 10:58, 19 January 2019
Use:
{{ Warning | type=primary|danger|warning|info | Msg=Your message here }}
Primary Example
{{Warning | Type=primary | Msg=Primary Message}}
Primary Message
Danger Example
{{Warning | Type=danger| Msg=Dangerous Message}}
Dangerous Message
Warning Example
{{Warning | Type=warning| Msg=Warning Message}}
Warning Message
Info Example
{{Warning | Type=info| Msg=Info Message}}
Info Message