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
 
m (Fix error)
Tag: 2017 source edit
 
(3 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:{{{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:{{{1|#000}}};width:1em;height:1em;vertical-align:text-top;"><br></span>&nbsp;{{{2|{{{1|#000}}}}}}</span></includeonly>
<noinclude>
<templatedata>
{
"params": {
"1": {
"aliases": [
"Hex"
],
"label": "Hex code",
"description": "Hex code of the color",
"example": "#000",
"type": "string",
"default": "#000",
"required": true
},
"2": {
"aliases": [
"Text"
],
"label": "Text",
"description": "Text of the color instead of the hex code.",
"example": "Black",
"default": "Black",
"type": "string"
}
},
"paramOrder": [
"1",
"2"
],
"format": "inline"
}
</templatedata>
</noinclude>

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.