Template:Color: Difference between revisions

From Firrhna Project Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<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>
<includeonly><span title="{{{2|#FF00FF}}}" 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>
Input:
Input:
<pre>
<pre>

Latest revision as of 15:16, 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