မေႃႇၵျူး:TypeToColor/doc
Appearance
| ဢၼ်ၼႆႉ မၼ်းပဵၼ် ၽိုၼ်လိၵ်ႈၽႄ တွၼ်ႈတႃႇ မေႃႇၵျူး:TypeToColor။ မၼ်းၶဝ်ႈပႃး လွၼ်ႉၶၢဝ်ႇ လွင်ႈၸႂ်ႉတိုဝ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ လမ်းၼႂ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၸႂ်ႈ ပွတ်းတွၼ်ႈ ၶွင်ငဝ်ႈတိုၼ်း မေႃႇၵျူး ၼႃႈလိၵ်ႈ။ |
| ဢၼ်ၼႆႉ မၼ်းပဵၼ် ၽိုၼ်လိၵ်ႈၽႄ တွၼ်ႈတႃႇ မေႃႇၵျူး:TypeToColor။ မၼ်းၶဝ်ႈပႃး လွၼ်ႉၶၢဝ်ႇ လွင်ႈၸႂ်ႉတိုဝ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ လမ်းၼႂ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၸႂ်ႈ ပွတ်းတွၼ်ႈ ၶွင်ငဝ်ႈတိုၼ်း မေႃႇၵျူး ၼႃႈလိၵ်ႈ။ |
This template converts a "type" value to a color, using the supported icon set. It is used in ထႅမ်းပလဵၵ်ႉ:Marker and ထႅမ်းပလဵၵ်ႉ:Listing.
| type | css3 color name | |
|---|---|---|
| see | #4682B4 | |
| do | #808080 | |
| buy | #008080 | |
| eat | #D2691E | |
| drink | #000000 | |
| sleep | #000080 | |
| listing | #228B22 | |
| city | #0000FF | |
| go | #A52A2A | |
| other | #228B22 | |
| 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 |