Template:Color

From Firrhna Project Wiki
Revision as of 12:07, 10 September 2023 by Kawa-neechan (talk | contribs) (Created page with "<includeonly><span style="display: inline-block; background: {{{2|#FF00FF}}}; border: 1px solid #FFFFFF; border-radius: 1em; width: 0.75em; height: 0.75em; vertical-align: middle"> </span> {{{1|[Color missing]}}}</includeonly><noinclude> Input: <pre> {{Color | Red | #f00 }} </pre> Result: {{Color | Red | #f00 }} <templatedata> { "params": { "1": { "aliases": [ "colorName" ], "label": "Color name", "description": "Written name of the color",...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Input:

{{Color
 | Red
 | #f00
}}

Result:   Red

Shows a color with a little swatch next to it.

Template parameters

ParameterDescriptionTypeStatus
Color name1 colorName

Written name of the color

Example
Magenta
Stringrequired
CSS2 colorSwatch

The color as a CSS value

Example
#FF00FF
Stringrequired