FANDOM


Usage

Script error

Examples
Visual effect Markup
<span style="background-color:Green; color:Script error; border:1px solid #000000; text-align:center;">    </span> {{color box|Green}}
<span style="background-color:Yellow; color:Script error; border:1px solid #000000; text-align:center;"> Default color for this text </span> {{color box|Yellow|Default color for this text}}
<span style="background-color:Blue; color:Script error; border:1px solid #000000; text-align:center;"> Default color for this text </span> {{color box|Blue|Default color for this text}}
 Using X11 color names  {{color box|SteelBlue|'''Using X11 color names'''|Gold}}
 Using RGB hex triplets  {{color box|#012345|''Using RGB hex triplet''|#FEDCBA}}
 Red  {{color box|Yellow|Red|#f00|border=#f00}}

Variants

  • {{Color box}}, a small color box with black borders and text color. (e.g. <span style="background-color:orange; color:Script error; border:1px solid #000000; text-align:center;">    </span> or  ORANGE  )
  • {{RouteBox}}, a borderless version with text color and wikilinks. (e.g.  ORANGE )
  • {{Colorbull}}, a colored bullet with wikilinks. (e.g. )
  • {{legend2}}, another borderless version (e.g.,   )
  • {{Color sample}}, a small color box with black borders. (e.g., )
  • {{Swatch inline}}. (e.g., orange)
  • {{Background color}}. (e.g., orangeExpression error: Unexpected < operator.)

See also


Community content is available under CC-BY-SA unless otherwise noted.