Template:Color/doc: Difference between revisions

From Little Tail Wiki
Jump to navigationJump to search
Created page with " ==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== <pre>{{color|<INDEX>|<TEXT>|bg=<BACKGROUND>|link=<LINK>}}</pre> ===Notes=== *Acceptable values for <INDEX> and <BACKGROUND> are: #A color name used in the above table. This should always be used unless you want a color that isn't supported. #A hexidecimal value. #A {{W|Web_colors|web color name}}. *The <TEXT..."
 
 
Line 1: Line 1:
   
   
==Description==
==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.
This template makes it easy to change colors for each unique wiki theme, for coloring text or using it as an input to a CSS style.


==Syntax==
==Syntax==

Latest revision as of 21:15, 11 March 2025

Description

This template makes it easy to change colors for each unique wiki 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.