Template:Char col

From Xeno Series Wiki
Jump to navigation Jump to search

127,127,127

This template takes a major character name and outputs a relevant colour in r,g,b format. It's mostly used for fancying up dialogue boxes. It takes names because it covers all games at once, but it also has some IDs in the form "xc1-pc-3" and similar.

The actual code is at Module:Char col. This template does no work by itself, aside from removing uppercase and spaces from the input. Because of this, changes can't be previewed the same way as a normal template. Instead, you'll have to:

  • Begin editing this page.
  • Uncomment the hidden code below this text.
  • Follow the instructions and use the preview feature to determine what colour you want to use.
  • Stop editing this page without making changes.
  • Go over to Module:Char col, and put the colour of choice in there.