Template:color box: Difference between revisions
Content added Content deleted
(added suggested values for colors that are of good contrast) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<span style="color: {{{1}}}; font-size: 125%">⬛︎</span><noinclude> |
<span style="color: {{{1}}}; font-size: 125%; line-height: 80%">⬛︎</span><noinclude> |
||
== Documentation == |
|||
This template types a big square character of the needed color. The color can be any CSS-valid color, here are some examples: |
|||
{| class="wikitable" |
|||
! Template usage !! Result |
|||
|- |
|||
| <nowiki>{{color box|darkviolet}}</nowiki> || {{color box|darkviolet}} |
|||
|- |
|||
| <nowiki>{{color box|#FF0000}}</nowiki> || {{color box|#FF0000}} |
|||
|- |
|||
| <nowiki>{{color box|rgb(210, 105, 30)}}</nowiki> || {{color box|rgb(210, 105, 30)}} |
|||
|} |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 29: | Line 41: | ||
"paramOrder": [ |
"paramOrder": [ |
||
"1" |
"1" |
||
] |
], |
||
"description": "colored square" |
|||
} |
} |
||
</templatedata> |
</templatedata> |
Latest revision as of 19:44, 4 February 2024
⬛︎
Documentation[edit source]
This template types a big square character of the needed color. The color can be any CSS-valid color, here are some examples:
Template usage | Result |
---|---|
{{color box|darkviolet}} | ⬛︎ |
{{color box|#FF0000}} | ⬛︎ |
{{color box|rgb(210, 105, 30)}} | ⬛︎ |
colored square
Parameter | Description | Type | Status | |
---|---|---|---|---|
color | 1 color | the desired color of the box.
| String | required |