Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Color: Difference between revisions

Template page
Hans5958 (talk | contribs)
No edit summary
Hans5958 (talk | contribs)
No edit summary
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": "",
"paramOrder": [
"paramOrder": [
"Hex",
"1",
"Text"
"2"
],
],
"format": "inline"
"format": "inline"

Revision as of 14:09, 4 May 2022


No description.

Template parameters[Edit template data]

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.