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.
type | css3 color name | |
---|---|---|
see | #387bb2 | |
do | #757070 | |
buy | #008080 | |
eat | #b1591b | |
drink | #000000 | |
sleep | #000080 | |
listing | #258825 | |
city | #0000FF | |
go | #A52A2A | |
other | #258825 | |
view | #4169E1 | |
vicinity | #800000 | |
around | #800080 | |
gold | #FFD700 | |
lime | #BFFF00 | |
red | #FF0000 | |
silver | #C0C0C0 |
Examples:
input | output | comment |
---|---|---|
#{{#invoke:TypeToColor|convert|sleep}} | #000080 | type to color |
#{{#invoke:TypeToColor|convert|red}} | #FF0000 | color to color |
#{{#invoke:TypeToColor|convert|wrong}} | #C0C0C0 | wrong to default |
#{{#invoke:TypeToColor|convert|}} | #C0C0C0 | no to default |