Template:Swatch: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="background:#{{{1}}}; color: #{{{2|000000}}}; text-align: center; padding:6px; padding-top:1px; padding-bottom:1px; border: {{{b|0}}}px solid; width:1.5em;" title="{{{3|#{{{1}}}}}}"><tt style="font-size:0.5em;">{{{3|#{{{1}}}}}}</tt></div> |
<div style="background:#{{{1}}}; color: #{{{2|000000}}}; text-align: center; padding:6px; padding-top:1px; padding-bottom:1px; border: {{{b|0}}}px solid; width:{{{w|1.5em}}};" title="{{{3|#{{{1}}}}}}"><tt style="font-size:0.5em;">{{{3|#{{{1}}}}}}</tt></div> |
||
<noinclude> |
<noinclude> |
||
This template makes an rgb color swatch, as css colors. On Windows these will appear as sRGB. They will not look correct on a Mac. |
This template makes an rgb color swatch, as css colors. On Windows these will appear as sRGB. They will not look correct on a Mac. |
Revision as of 18:09, 3 November 2006
#{{{1}}}
This template makes an rgb color swatch, as css colors. On Windows these will appear as sRGB. They will not look correct on a Mac.
It takes 3 positional arguments, hex rgb color and an optional text color (default black), and an optional title/content string, b = border