Template:Colorbox/doc

This template supersedes legend3.

Usage
color is passed to the css background-color property. HTML color names (eg "#FF0000") or the color name (eg "red") can be used.

text is any text to be rendered inside the colorbox.

Wikilink is the Wikilink for the Wikipedia page the text should point to.

Examples
For a colorbox with no text, use
 * Empty colorbox

renders:

For a legend or key using color and a text-based marker such as aCaret (^), dagger/obelisk (†), double dagger/diesis (‡), or asterisk (*), use
 * Legends and keys

which renders:

Notes:
 * 1) Whenever possible, always use a text marker to improve accessibility in articles. See Colours for more information.
 * 2) Do not use a black shaded colorbox with text markers as the text will not be visible.
 * 3) The HTML coding  must be used to create the asterisk as Wikipedia will treat the a typed asterisk as an indented bullet point
 * like this.

To create linkable text inside the colorbox, use
 * Linkable text

which renders:

Note:
 * 1) Do not use a blue or red shaded colorbox with wikilinks as the text will not be visible.