Module:TypeToColor/doc
From Dive Atlas
This is the documentation page for Module:TypeToColor
Template:Documentation subpage
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.
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 |