Template:Color: Difference between revisions
From Firrhna Project Wiki
Jump to navigationJump to search
Kawa-neechan (talk | contribs) (Created page with "<includeonly><span style="display: inline-block; background: {{{2|#FF00FF}}}; border: 1px solid #FFFFFF; border-radius: 1em; width: 0.75em; height: 0.75em; vertical-align: middle"> </span> {{{1|[Color missing]}}}</includeonly><noinclude> Input: <pre> {{Color | Red | #f00 }} </pre> Result: {{Color | Red | #f00 }} <templatedata> { "params": { "1": { "aliases": [ "colorName" ], "label": "Color name", "description": "Written name of the color",...") |
Kawa-neechan (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="display: inline-block; background: {{{2|#FF00FF}}}; border: 1px solid #FFFFFF; border-radius: 1em; width: 0.75em; height: 0.75em; vertical-align: middle"> </span> {{{1|[Color missing]}}}</includeonly><noinclude> | <includeonly><span title="{{{2|#FF00FF}}}"><span style="display: inline-block; background: {{{2|#FF00FF}}}; border: 1px solid #FFFFFF; border-radius: 1em; width: 0.75em; height: 0.75em; vertical-align: middle"> </span> {{{1|[Color missing]}}}</span></includeonly><noinclude> | ||
Input: | Input: | ||
<pre> | <pre> |
Revision as of 15:15, 10 September 2023
Input:
{{Color | Red | #f00 }}
Result: Red
Shows a color with a little swatch next to it.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color name | 1 colorName | Written name of the color
| String | required |
CSS | 2 colorSwatch | The color as a CSS value
| String | required |