Template:Alert/doc: Difference between revisions
ArrowHead294 (talk | contribs) m Update documentation to use label parameter. |
ArrowHead294 (talk | contribs) m Update documentation. |
||
| Line 8: | Line 8: | ||
* <code>text</code>: Message to be displayed in the box. | * <code>text</code>: Message to be displayed in the box. | ||
* <code>icon</code>: Icon to be displayed in the box, if provided. Icons appear on the left side of the message box. | * <code>icon</code>: Icon to be displayed in the box, if provided. Icons appear on the left side of the message box. | ||
: | :* <code><nowiki>{{alert}}</nowiki></code> is designed to use an {{w|emoji}} as an icon instead of an image. We recommend passing in the icon using its {{w|HTML entity}} representation (e.g. use <code>&#x1F642;</code> for 🙂</code>). | ||
* <code>label</code>: A custom label to be used, if desired. This is not used by <code><nowiki>{{note}}</nowiki></code>, <code><nowiki>{{tip}}</nowiki></code>, or <code><nowiki>{{warning}}</nowiki></code> as their labels are the same as the template names. | |||
* <code>label</code>: | |||
</ | |||
=== Types and examples === | === Types and examples === | ||