Difference between revisions of "Template:Color Icons"

From mtgpq wiki
Jump to: navigation, search
Line 11: Line 11:
 
The fourth parameter (optional) is hover text for each icon (default: the full name of the color).
 
The fourth parameter (optional) is hover text for each icon (default: the full name of the color).
  
The named "sep" parameter (optional) is the separator between icons.  (Default:  )
+
The named "sep" parameter (optional) is the separator between icons.  (Default:  )
  
 
==Example==
 
==Example==

Revision as of 00:54, 24 August 2019

Usage

Given a string of 1 to 5 letters representing colors, produces a corresponding series of space-separated color icons.

The first parameter is a sequence of upper-case letters from the set WUBRGCL.

The second parameter (optional) is the size of the icons (default = 15).

The third parameter (optional) is a wiki link for each icon (default: Mana).

The fourth parameter (optional) is hover text for each icon (default: the full name of the color).

The named "sep" parameter (optional) is the separator between icons. (Default:  )

Example

The following mark-up:

{{Color Icons|UBR|24}}

Produces:

BlueBlackRed