Template:Color: Difference between revisions
From FrathWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="display: inline-block; border:1px solid #7f7f7f; width: 16px; height: 16px; background-color: {{{1|transparent}}}"></span></includeonly><noinclude> | <includeonly><span style="display: inline-block; border:1px solid #7f7f7f; width: 16px; height: 16px; background-color: {{{1|transparent}}};" title="{{{1|transparent}}}"></span></includeonly><noinclude> | ||
This template accepts one parameter: a color in a format which is understood by CSS. It displays a small box filled with this color. The parameter defaults to transparent. | This template accepts one parameter: a color in a format which is understood by CSS. It displays a small box filled with this color. When hovering over it, the name of the color is displayed in a tooltip. The parameter defaults to transparent. | ||
==Examples== | ==Examples== |
Revision as of 00:44, 1 May 2012
This template accepts one parameter: a color in a format which is understood by CSS. It displays a small box filled with this color. When hovering over it, the name of the color is displayed in a tooltip. The parameter defaults to transparent.
Examples
— red
— #60f
— rgb(20, 50, 80)
— transparent