Template:Jb/doc
Description
Inserts an image of a jellybean of the given color and is intended to be used on pages about flowers and statues. The jellybean's color appears as text in a tooltip when a user hovers their cursor over it, which is helpful for users who are colorblind. The color is also the image's alt text for users who use screen readers.
This template has one parameter, in which the jellybean's color in full (e.g. {{jb|red}}) can be spelled out, or its first letter can be used (e.g. {{jb|r}}). By default, the image is 20 pixels wide, but its size can be changed using the second parameter (e.g. {{jb|red|15px}}).
TemplateData
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Color | 1 | The color of the jellybean. Single letters (r, g, o, v, b, p, y, c, s) as a shorthand may be used instead of the full color name.
| String | required |
| Size | 2 | The display size of the jellybean image.
| String | suggested |