Template:Color

From Little Tail Wiki
Revision as of 20:48, 11 March 2025 by Zoltier (talk | contribs) (Created page with "<!--EDITING THIS PAGE WILL NOT MODIFY THE CHEATSHEET OR THE COLORS THEMSELVES. IF YOU WANT TO ADD A NEW COLOR, ADD IT TO DEFINITIONS FIRST, THEN CHANGE THE CHEATSHEET ACCORDINGLY.--><includeonly>{{#if:{{{2|}}}<!-- -->|{{#if:{{{link|}}}|[[{{{link}}}|<!-- --><font style="color:{{Color/definitions|{{{1|}}}}};<!-- -->{{#if:{{{bg|}}}|background-color:{{Color/definitions|{{{bg}}}}}}}">{{{2}}}</font>]]<!-- -->|<font style="color:{{Color/definitions|{{{1|}}}}};<!-- -->{{#if:{{{b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
0
#000000
1
#535353
2
#7B7B7B
3
#B8B8B8
4
#C6C6C6
5
#E0E0E0
6
#EEEEEE
7
#FFFFFF
TC
#4662AF
TC2
#C9AE42
SR
#A53C2C
SR2
#766781
FG
#6C2C2f
FG2
#DDC295
LTS
#7E9305
LTS2
#C9882E
MM
#165AAB
MM2
#D68000
RDC
#960018
RDC2
#F2CAF7
LTW
#85AEDD
LTW2
#485E91
CC2
#00A83C
CC22
#BED602
Documentation (for the above template, sometimes hidden or invisible)

Description

This template makes it easy to change colors for each part's unique theme, for coloring text or using it as an input to a CSS style.

Syntax

{{color|<INDEX>|<TEXT>|bg=<BACKGROUND>|link=<LINK>}}

Notes

  • Acceptable values for <INDEX> and <BACKGROUND> are:
  1. A color name used in the above table. This should always be used unless you want a color that isn't supported.
  2. A hexidecimal value.
  3. A web color name.
  • The <TEXT> parameter is optional.
  • Refer to the above table for color indices.

Sample output

{{Color|TC|Tail Concerto}}

Tail Concerto

<div style="width:250px; height:50px; background:{{color|MM}};"/>


{{Color|BT2|bg=SC|Making text on a colored background.}}

Making text on a colored background.

{{color|#FF0000|'''Making red text using a hex value.'''}}

Making red text using a hex value.

{{color|lime|'''Making green linked text using a web color.'''|link=Template:Color/doc}}
Making green linked text using a web color.

Visit Template:Color/doc to edit this text! (How does this work?)