Template:Swatch: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div style="background-color:rgb({{{1}}}); text-align: center; height: 20px; width: 20px; border: 1px solid" title="({{{1}}})">
<div style="background-color:rgb({{{1}}}); text-align: center; border: {{{b|0}}}px solid" title="{{{t|({{{1}}})}}}">
<tt style="font-style:normal"> ({{{1}}}) </tt></div>
<tt style="font-style:normal"> ({{{1}}}) </tt></div>


Line 5: Line 5:


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.

It takes a positional argument, which is the rgb color, and then it takes 2 named arguments, b = border, and t = title


</noinclude>
</noinclude>

Revision as of 09:13, 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 a positional argument, which is the rgb color, and then it takes 2 named arguments, b = border, and t = title