Template:Notice icon/Documentation

Template page
Revision as of 17:02, 12 August 2016 by Thumper (talk | contribs) (Created template documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template creates a simple text "icon" consisting of some character or text surrounded by two pairs of braces. An example is the "{{❢}}" that you can see in the title of a template documentation box, which is generated by {{notice icon|❢|royalblue}}.

The primary purpose of these icons is to add a little bit of visual flair. This template makes it easy to create them.

Usage

{{notice icon|<character>|<colour>|<glow colour>}}

<text> is the character that will appear between the braces in the icon. It doesn't need to be a single character. It can technically be any text, even with wiki markup. It could even be an image. Generally though, Unicode symbols are easiest.

<colour> is the colour of the icon. You can use anything recognized by Cascading Style Sheets as a colour. If not specified, it just defaults to boring black.

<glow colour> sets the colour of the "glow" around the icon. By default it's white. If you want to disable the glow, set this to "none".

Examples

Code Result
{{notice icon|✋|#f00}} {{✋}}
{{notice icon|☢|black|yellow}} {{☢}}