Difference between revisions of "Template:Alert"
Line 14: | Line 14: | ||
{{alert|Title|This is an alert with a title!}} | {{alert|Title|This is an alert with a title!}} | ||
− | </noinclude><includeonly><html><figure class="alert">{{{1}}}</figure></html></includeonly> | + | <nowiki>{{alert|This is a note.|class=note}}</nowiki> |
+ | |||
+ | {{alert|This is a note.|class=note}} | ||
+ | |||
+ | Supported classes: | ||
+ | |||
+ | {{alert|This uses class "note".|class=note}} | ||
+ | {{alert|This uses class "warning". (This is the default.)|class=warning}} | ||
+ | {{alert|This uses class "stop".|class=stop}} | ||
+ | |||
+ | |||
+ | </noinclude><includeonly><html><figure class="alert </html>{{#if: {{{class}}}|{{{class}}}|warning}}<html>"></html>{{#if: {{{2|}}}|<html><figcaption></html>{{{1}}}<html></figcaption></html><p>{{{2}}}</p> | <p>{{{1}}}</p>}}<html></figure></html></includeonly> |
Revision as of 18:53, 16 May 2023
This template is used for typesetting alert boxes that you want to be set apart from the surrounding text.
For example, the following markup:
{{alert|This is an alert!}}
will look like this:
{{alert|Title|This is an alert with a title!}}
{{alert|This is a note.|class=note}}
Supported classes: