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)
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>"
 
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:{{{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[Edit template data]

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.