Difference between revisions of "Template:Infobox color"
Jump to navigation
Jump to search
imported>Georgia guy (Too much inconsistency; most of the articles on colors use the word "color" throughout) |
imported>Mike Dillon m (default {{{textcolor}}} to "inherit" to avoid bad CSS for template calls not using this parameter) |
||
| Line 1: | Line 1: | ||
{| class="toccolours" style="float:right; width:225px; clear:right; margin: 0em 0em 1em 1em;" | {| class="toccolours" style="float:right; width:225px; clear:right; margin: 0em 0em 1em 1em;" | ||
|- | |- | ||
| − | ! colspan="3" style="text-align: center; background-color:#{{{hex}}}; color:{{{textcolor}}};" | {{{title}}} | + | ! colspan="3" style="text-align: center; background-color:#{{{hex}}}; color:{{{textcolor|inherit}}};" | {{{title}}} |
|- | |- | ||
| − | | colspan="3" style="height:25px; background-color:#{{{hex}}}; color:{{{textcolor}}}; text-align: center;" | — Color coordinates — | + | | colspan="3" style="height:25px; background-color:#{{{hex}}}; color:{{{textcolor|inherit}}}; text-align: center;" | — Color coordinates — |
|- | |- | ||
! style="text-align:left;" colspan="2" | [[Web colours|Hex triplet]] | ! style="text-align:left;" colspan="2" | [[Web colours|Hex triplet]] | ||
| Line 20: | Line 20: | ||
| ({{{h}}}°, {{{s}}}%, {{{v}}}%) | | ({{{h}}}°, {{{s}}}%, {{{v}}}%) | ||
|- | |- | ||
| − | | colspan="3" style="text-align: center; background-color:#{{{hex}}}; font-size:smaller; color:{{{textcolor}}};" | <sup>'''N'''</sup>: '''N'''ormalised to <nowiki>[</nowiki> 0–255 ] (changing to [0–100]) | + | | colspan="3" style="text-align: center; background-color:#{{{hex}}}; font-size:smaller; color:{{{textcolor|inherit}}};" | <sup>'''N'''</sup>: '''N'''ormalised to <nowiki>[</nowiki> 0–255 ] (changing to [0–100]) |
|} | |} | ||