Template:Color: Difference between revisions

From Firrhna Project Wiki
Jump to navigationJump to search
(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",...")
 
mNo edit summary
Line 1: Line 1:
<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">&nbsp;</span> {{{1|[Color missing]}}}</includeonly><noinclude>
<includeonly><span title="{{{2|#FF00FF}}}"><span style="display: inline-block; background: {{{2|#FF00FF}}}; border: 1px solid #FFFFFF; border-radius: 1em; width: 0.75em; height: 0.75em; vertical-align: middle">&nbsp;</span> {{{1|[Color missing]}}}</span></includeonly><noinclude>
Input:
Input:
<pre>
<pre>

Revision as of 15:15, 10 September 2023

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