Difference between revisions of "Template:Colour mapping"
Jump to navigation
Jump to search
(Create key for number-to-colour mapping in templates (e.g. marq for --marq-color)) |
(Swap columns for hex code and colour name, remove CSS to allow table collapse) |
||
Line 1: | Line 1: | ||
− | {| class="mw-datatable | + | {| class="mw-datatable sortable" style="display: inline-table;" |
|+ Colour key | |+ Colour key | ||
− | ! scope="col" | Sample !! scope="col" | | + | ! scope="col" | Sample !! scope="col" | Colour !! scope="col" | Hex code |
|- | |- | ||
− | |style="background-color:black;"| || <code>0x000000</code> | + | | style="background-color:black;"| || Black || <code>0x000000</code> |
|- | |- | ||
− | |style="background-color:gray;"| || <code>0x808080</code> | + | | style="background-color:gray;"| || Gray || <code>0x808080</code> |
|- | |- | ||
− | |style="background-color:silver;"| || <code>0xC0C0C0</code> | + | | style="background-color:silver;"| || Silver || <code>0xC0C0C0</code> |
|- | |- | ||
− | |style="background-color:white;"| || <code>0xFFFFFF</code> | + | | style="background-color:white;"| || White || <code>0xFFFFFF</code> |
|- | |- | ||
− | |style="background-color:maroon;"| || <code>0x800000</code> | + | | style="background-color:maroon;"| || Maroon || <code>0x800000</code> |
|- | |- | ||
− | |style="background-color:red;"| || <code>0xFF0000</code> | + | | style="background-color:red;"| || Red || <code>0xFF0000</code> |
|- | |- | ||
− | |style="background-color:fuchsia;"| || <code>0xFF00FF</code> | + | | style="background-color:fuchsia;"| || Fuchsia || <code>0xFF00FF</code> |
|- | |- | ||
− | |style="background-color:yellow;"| || <code>0xFFFF00</code> | + | | style="background-color:yellow;"| || Yellow || <code>0xFFFF00</code> |
|- | |- | ||
− | |style="background-color:olive;"| || <code>0x808000</code> | + | | style="background-color:olive;"| || Olive || <code>0x808000</code> |
|- | |- | ||
− | |style="background-color:green;"| || <code>0x008000</code> | + | | style="background-color:green;"| || Green || <code>0x008000</code> |
|- | |- | ||
− | |style="background-color:teal;"| || <code>0x008080</code> | + | | style="background-color:teal;"| || Teal || <code>0x008080</code> |
|- | |- | ||
− | |style="background-color:lime;"| || <code>0x00FF00</code> | + | | style="background-color:lime;"| || Lime || <code>0x00FF00</code> |
|- | |- | ||
− | |style="background-color:purple;"| || <code>0x800080</code> | + | | style="background-color:purple;"| || Purple || <code>0x800080</code> |
|- | |- | ||
− | |style="background-color:navy;"| || <code>0x000080</code> | + | | style="background-color:navy;"| || Navy || <code>0x000080</code> |
|- | |- | ||
− | |style="background-color:blue;"| || <code>0x0000FF</code> | + | | style="background-color:blue;"| || Blue || <code>0x0000FF</code> |
|- | |- | ||
− | |style="background-color:aqua;"| || <code>0x00FFFF</code> | + | | style="background-color:aqua;"| || Aqua || <code>0x00FFFF</code> |
|}<noinclude> | |}<noinclude> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 04:00, 2 June 2019
Sample | Colour | Hex code |
---|---|---|
Black | 0x000000
| |
Gray | 0x808080
| |
Silver | 0xC0C0C0
| |
White | 0xFFFFFF
| |
Maroon | 0x800000
| |
Red | 0xFF0000
| |
Fuchsia | 0xFF00FF
| |
Yellow | 0xFFFF00
| |
Olive | 0x808000
| |
Green | 0x008000
| |
Teal | 0x008080
| |
Lime | 0x00FF00
| |
Purple | 0x800080
| |
Navy | 0x000080
| |
Blue | 0x0000FF
| |
Aqua | 0x00FFFF
|