Module:TypeToColor/doc
Appearance
| This is a documentation subpage for Module:TypeToColor. It contains usage information, categories and other content that is not part of the original module page. |
| This is a documentation subpage for Module:TypeToColor. It contains usage information, categories and other content that is not part of the original module page. |
This template converts a "type" value to a color, using the supported icon set. It is used in Template:Marker and Template:Listing.
All colors should pass WCAG AA guidelines for color contrast.
| Type | CSS3 color name | Example |
|---|---|---|
| see | #3F75A2 | |
| do | #757575 | |
| buy | #008080 | |
| eat | #B75B1A | |
| drink | #000000 | |
| sleep | #000080 | |
| listing | #218721 | |
| go | #A52A2A | |
| city | #0000FF | |
| other | #218721 | |
| view | #4169E1 | |
| vicinity | #800000 | |
| around | #800080 |
| Input | Output | Comment |
|---|---|---|
#{{#invoke:TypeToColor|convert|sleep}} | #000080 | type to color |
#{{#invoke:TypeToColor|convert|red}} | #EB0000 | color to color |
#{{#invoke:TypeToColor|convert|wrong}} | #757575 | wrong to default |
#{{#invoke:TypeToColor|convert|}} | #757575 | no to default |