Template:Color

Template page
Revision as of 20:14, 6 April 2022 by Wakeup720 (talk | contribs) (Take 2)
{{color|X|Y|game=Z}} or {{clr|X|Y|game=Z}}

This template is used to apply color/style classes to text.
Currently, it supports 8 pre-defined colors and 6 styles that are colorblind and "Dark mode" friendly, though the template can also be used for arbitrary HTML colors.

Colors applied with this template can be disabled or re-enabled through the use of "Monochrome mode" and "Colorful mode", so it is recommended to use this over applying text colors with style attribute, e.g. Red text.

The first parameter (X) is the color identifier code. The second parameter (Y) is the text to be styled. Optionally, game name abbreviations (Z) can be used to force the colors of a specific game's buttons. If this is not provided, it will assume the game from the RootPageName of the current page, or if not found, default to Guilty Gear's button colors.

Equals sign

To use equals sign ("=") in the text field, there are a couple of workarounds:

  • Use the magic word {{=}}

{{color|new|2 + 2 {{=}} 4}} produces 2 + 2 = 4

  • Use the HTML entity =

{{color|new|2 + 2 = 4}} produces 2 + 2 = 4

  • Add 2= before your text

{{color|new|2=2 + 2 = 4}} produces 2 + 2 = 4

  • Wrap the "=" in <nowiki> tags

{{color|new|2 + 2 <nowiki>=</nowiki> 4}} produces 2 + 2 = 4

Supported Game Titles and Examples

The styles for this template are contained within Template:Color/styles.css.

Universal Colors

{{color|1|5P}}
Page Template:Clr/styles.css has no content.5P
{{color|2|2K}}
Page Template:Clr/styles.css has no content.2K
{{color|3|c.S}}
Page Template:Clr/styles.css has no content.c.S
{{color|4|j.H}}
Page Template:Clr/styles.css has no content.j.H
{{color|5|j.D}}
Page Template:Clr/styles.css has no content.j.D
{{color|6|Very Easy}}
Page Template:Clr/styles.css has no content.Very Easy

Balance Badge Template

These have since been replaced by Template:BalanceBadge

HTML colors

{{color|ForestGreen|Forest Green text}}
Page Template:Clr/styles.css has no content.Forest Green text
{{clr|#f00|Red text}}
Page Template:Clr/styles.css has no content.Red text

GGACR, GGML, GGXRD-R2, GGST Pages

{{color|1|5P}} or {{color|P|5P}}
Page Template:Clr/styles.css has no content.5P
{{color|2|2K}} or {{color|K|2K}}
Page Template:Clr/styles.css has no content.2K
{{color|3|c.S}} or {{color|S|c.S}}
Page Template:Clr/styles.css has no content.c.S
{{color|4|j.H}} or {{color|H|j.H}}
Page Template:Clr/styles.css has no content.j.H
{{color|5|j.D}} or {{color|D|j.D}}
Page Template:Clr/styles.css has no content.j.D

BBCF, BBCT Pages

{{color|A|5A}}
Page Template:Clr/styles.css has no content.5A
{{color|B|2B}}
Page Template:Clr/styles.css has no content.2B
{{color|C|6C}}
Page Template:Clr/styles.css has no content.6C
{{color|D|j.D}}
Page Template:Clr/styles.css has no content.j.D

BBTag Pages

{{color|1|5A}} or {{color|A|5A}}
Page Template:Clr/styles.css has no content.5A
{{color|2|2B}} or {{color|B|2B}}
Page Template:Clr/styles.css has no content.2B
{{color|3|5C}} or {{color|C|5C}}
Page Template:Clr/styles.css has no content.5C
{{color|4|5D}} or {{color|D|5D}}
Page Template:Clr/styles.css has no content.5D
{{color|5|5P}} or {{color|P|5P}}
Page Template:Clr/styles.css has no content.5P

DBFZ Pages

{{color|L|5L}}
Page Template:Clr/styles.css has no content.5L
{{color|M|2M}}
Page Template:Clr/styles.css has no content.2M
{{color|H|j.H}}
Page Template:Clr/styles.css has no content.j.H
{{color|S|236S}}
Page Template:Clr/styles.css has no content.236S

DNFD Pages

{{color|1|5A}} or {{color|A|5A}}
Page Template:Clr/styles.css has no content.5A
{{color|2|5B}} or {{color|B|5B}}
Page Template:Clr/styles.css has no content.5B
{{color|3|5S}} or {{color|S|5S}}
Page Template:Clr/styles.css has no content.5S
{{color|4|236M}} or {{color|M|236M}}
Page Template:Clr/styles.css has no content.236MS
{{color|5|AS}} or {{color|AS|AS}}
Page Template:Clr/styles.css has no content.AS

GBVS, GBVSR Pages

{{color|1|c.L}} or {{color|L|c.L}}
Page Template:Clr/styles.css has no content.c.L
{{color|2|2M}} or {{color|M|2M}}
Page Template:Clr/styles.css has no content.2M
{{color|3|f.H}} or {{color|H|f.H}}
Page Template:Clr/styles.css has no content.f.H
{{color|4|j.U}} or {{color|U|j.U}}
Page Template:Clr/styles.css has no content.j.U
{{color|6|G}} or {{color|G|G}}
Page Template:Clr/styles.css has no content.4G

HNK Pages

{{color|1|c.A}} or {{color|A|c.A}}
Page Template:Clr/styles.css has no content.c.A
{{color|2|f.B}} or {{color|B|f.B}}
Page Template:Clr/styles.css has no content.f.B
{{color|3|j.C}} or {{color|C|2C}}
Page Template:Clr/styles.css has no content.2C
{{color|4|c.D}} or {{color|D|j.D}}
Page Template:Clr/styles.css has no content.j.D
{{color|5|6E}} or {{color|E|6E}}
Page Template:Clr/styles.css has no content.6E

P4Arena, P4AU, P4U2.5 Pages

{{color|1|5A}} or {{color|A|5A}}
Page Template:Clr/styles.css has no content.5A
{{color|2|2B}} or {{color|B|2B}}
Page Template:Clr/styles.css has no content.2B
{{color|3|5C}} or {{color|C|5C}}
Page Template:Clr/styles.css has no content.5C
{{color|4|j.D}} or {{color|D|j.D}}
Page Template:Clr/styles.css has no content.j.D

SBX Pages

{{color|1|6A}} or {{color|A|6A}}
Page Template:Clr/styles.css has no content.6A
{{color|2|5B}} or {{color|B|5B}}
Page Template:Clr/styles.css has no content.5B
{{color|3|2C}} or {{color|C|2C}}
Page Template:Clr/styles.css has no content.2C
{{color|4|236E}} or {{color|E|236E}}
Page Template:Clr/styles.css has no content.236E

SMS Pages

{{color|1|LP}} or {{color|LP|6LP}}
Page Template:Clr/styles.css has no content.6LP
{{color|2|5HP}} or {{color|HP|5HP}}
Page Template:Clr/styles.css has no content.5HP
{{color|3|2LK}} or {{color|LK|2LK}}
Page Template:Clr/styles.css has no content.2LK
{{color|4|236HK}} or {{color|HK|236HK}}
Page Template:Clr/styles.css has no content.236HK