Difference between revisions of "Template: Warning"
From Elder Tale Online MUSH
Liminality (talk | contribs) m |
Liminality (talk | contribs) m |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <noinclude>Use: |
− | + | <nowiki>{{ Warning</nowiki> | |
− | {{ | + | | type=primary|danger|warning|info |
− | | | + | | Msg=Your message here |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | < | + | == Primary Example == |
− | + | <nowiki>{{Warning | Type=primary | Msg=Primary Message}}</nowiki> | |
+ | <div class="alert alert-primary" role="alert">Primary Message</div> | ||
− | < | + | == Danger Example == |
− | + | <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> |
− | < | ||
− | |||
− | === | + | == 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> |
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | </ | ||
− | |||
− | |||
− | |||
− | {{warning}} | ||
− | |||
− | |||
− | === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
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