Template:Color: Difference between revisions

Template page
No edit summary
Tag: 2017 source edit
m (Fix error)
Tag: 2017 source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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>
<includeonly><span style="display:inline-block;white-space:nowrap;"><span style="display:inline-block;background-color:{{{1|#000}}};width:1em;height:1em;vertical-align:text-top;"><br></span>&nbsp;{{{2|{{{1|#000}}}}}}</span></includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"Hex": {
"1": {
"aliases": [
"aliases": [
"1"
"Hex"
],
],
"label": "Hex code",
"label": "Hex code",
Line 15: Line 15:
"required": true
"required": true
},
},
"Text": {
"2": {
"aliases": [
"aliases": [
"2"
"Text"
],
],
"label": "Text",
"label": "Text",
"description": "Text of the color instead of the hex code.",
"description": "Text of the color instead of the hex code.",
"example": "Black",
"example": "Black",
"default": "Black"
"default": "Black",
"type": "string"
}
}
},
},
"description": "This template shows the color of the ",
"paramOrder": [
"paramOrder": [
"Hex",
"1",
"Text"
"2"
],
],
"format": "inline"
"format": "inline"

Latest revision as of 13:10, 4 May 2022


No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hex code1 Hex

Hex code of the color

Default
#000
Example
#000
Stringrequired
Text2 Text

Text of the color instead of the hex code.

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