Template:Color1

From Hellmoo Wiki Archive
Revision as of 02:30, 5 January 2009 by imported>Acrux (→‎Appearance)
Jump to navigation Jump to search

{{{2}}}

BEFORE YOU USE THESE TO REPRESENT TEXT FROM THE MUD, MAKE SURE YOUR
CLIENT USES THE DEFAULT SIXTEEN COLOR SET. MAKE SURE THAT THE COLORS
ON YOUR INGAME MAP APPEAR TO BE THE SAME AS THE WORLD MAP SEEN HERE.
IF IT DOES NOT, PLEASE ADJUST YOUR COLORS BEFORE USING THIS TAG.

DEFAULT TEXT COLOR IS "SILVER" NOT "GRAY".

Appearance

{{color1|#ff0000|This is text.}} gives: This is text.
{{color1|#aa0000|This is text.}} gives: This is text.
{{color1|red|This is text.}} gives: This is text.
{{color1|yellow|This is text.}} gives: This is text.
{{color1|blue|This is text.}} gives: This is text.
{{color1|grey|This is text.}} gives: This is text.
{{color1|black|This is text.}} gives: This is text.

{{gametext|
{{color1|aqua|[ BADMIN ]}}{{color1|white|:}}{{color1|fuchsia|Gimore says, "hi guys"}}
}}

gives:

[ BADMIN ]: Gimore says, "hi guys"

How to Use

{{color1|FOREGROUND|TEXT}}

<span style="color: {{{1}}}">{{{2}}}</span>

Sets foreground of a given text. They can be specified by name or in the format #dddddd (RGB hex triplet).

For setting both at once, see Template:Color. For setting only the background, see Template:Color2.

More Information

HellMOO uses the sixteen ANSI colors, which you can use as a parameter:

Color Hexadecimal Color Hexadecimal
black #000000 gray #808080
silver #c0c0c0 white #ffffff
maroon #800000 red #ff0000
purple #800080 fuchsia #ff00ff
green #008000 lime #00ff00
olive #808000 yellow #ffff00
navy #000080 blue #0000ff
teal #008080 aqua #00ffff