Difference between revisions of "Template:Angcol"
m (fix violet) |
(documentation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="color:{{#switch: {{{1|}}} | <span style="color:{{#switch: {{{1|}}} | ||
| d | Dark | TERM_DARK = #000000 | | d | Dark | TERM_DARK = #000000 | ||
− | | w | White | TERM_WHITE = # | + | | w | White | TERM_WHITE = #f4f4f4 |
| s | Slate | TERM_SLATE = #909090 | | s | Slate | TERM_SLATE = #909090 | ||
− | | o | Orange | TERM_ORANGE = # | + | | o | Orange | TERM_ORANGE = #ff8000 |
| r | Red | TERM_RED = #c00000 | | r | Red | TERM_RED = #c00000 | ||
| g | Green | TERM_GREEN = #008040 | | g | Green | TERM_GREEN = #008040 | ||
Line 28: | Line 28: | ||
| Z | Deep Light Blue | TERM_DEEP_L_BLUE = #00b0ff | | Z | Deep Light Blue | TERM_DEEP_L_BLUE = #00b0ff | ||
| #default = #303030}} | | #default = #303030}} | ||
− | ;">{{{2}}}</span> | + | ;">{{{2}}}</span><noinclude>{{Angcol/doc}}</noinclude> |
Latest revision as of 18:34, 6 February 2020
{{{2}}}
{{angcol|color|text|game=Angband}}
Color can take any of several values used in Angband-like code; b (used in edit files), Blue (plaintext) and TERM_BLUE (used within the code) will all work in this field, and produce this color.
Text is the text to be so coloured; often this will be a single letter (a monster symbol), but it can be any text as long as it does not interfere with formatting.
Game is an optional parameter that can usually be omitted. If this parameter is set to "Angband", special Vanilla colours are triggered (currently, this only happens for violet, which has a different value in Vanilla).
For example, {{angcol|Red|Gwarl is the man!}} outputs Gwarl is the man!; note that the game parameter was omitted.
Acceptable colors:
Dark
White
Slate
Orange
Red
Green
Blue
Umber
Light Dark
Light Slate
Light Purple
Violet
Violet (special Vanilla color)
Yellow
Light Yellow (identical with yellow)
Light Red
Light Green
Light Blue
Light Umber
Purple
Teal
Mud
Magenta-Pink
Light Teal
Light Violet
Light Pink
Mustard
Blue Slate
Deep Light Blue