Template:Color: Difference between revisions

Template page
(Created page with "<includeonly><span style="display:inline-block;white-space:nowrap;"><span style="display:inline-block;background-color:{{{1|#000}}};border-radius:50%;width:1em;height:1em;vertical-align:text-top;"><br></span> {{{2|{{{1|#000}}}}}}</span></includeonly>")
Tag: 2017 source edit
 
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
<includeonly><span style="display:inline-block;white-space:nowrap;"><span style="display:inline-block;background-color:{{{1|#000}}};border-radius:50%;width:1em;height:1em;vertical-align:text-top;"><br></span>&nbsp;{{{2|{{{1|#000}}}}}}</span></includeonly>
<includeonly><span style="display:inline-block;white-space:nowrap;"><span style="display:inline-block;background-color:{{Hex|#000}}};width:1em;height:1em;vertical-align:text-top;"><br></span>&nbsp;{{{Text|{{{Hex|#000}}}}}}</span></includeonly>
<noinclude>
<templatedata>
{
"params": {
"Hex": {
"aliases": [
"1"
],
"label": "Hex code",
"description": "Hex code of the color",
"example": "#000",
"type": "string",
"default": "#000",
"required": true
},
"Text": {
"aliases": [
"2"
],
"label": "Text",
"description": "Text of the color instead of the hex code.",
"example": "Black",
"default": "Black"
}
},
"description": "This template shows the color of the ",
"paramOrder": [
"Hex",
"Text"
],
"format": "inline"
}
</templatedata>
</noinclude>

Revision as of 14:07, 4 May 2022


This template shows the color of the

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hex codeHex 1

Hex code of the color

Default
#000
Example
#000
Stringrequired
TextText 2

Text of the color instead of the hex code.

Default
Black
Example
Black
Unknownoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.