Template:Font Color

“Font Color”: Purpose
Debugging generators can be tricky. With all the randomness, it’s often hard to tell if one is working correctly. Oh my aching brain … which bits are coming from where?

Enter this template. It lets you quickly assign colors to various logical routines, to visually distinguish each during a page render. It’s intended not so much for inclusion in finished generators (though it certainly might also be useful that way!), as to facilitate debugging during their development.

Usage
Invoke this template via this syntax:



Maybe you’d like to know when (or if!) Abulafia uses a certain subtable named “Foo”. Simply wrap “Foo” as follows:



Now upon page render, any text contributed by “Foo” will.

Needless to say … besides being highly useful, this could open up some interesting possibilities!

Note: both foreground/background parameters need not be specced; however, colors may be specced however you like:
 * named: “” (foreground), “” (background), “” (yikes!), etc.
 * hex3: “#FCC”, “#CFC” and “#CCF” are especially readable RGB values for background use.
 * hex6: “”, etc.

Short Form
The template “fc” is a shortcut to this template, and can be used interchangeably, if you prefer:



''it is (somewhat) case-sensitive – “fc” or “Fc” will work, but “FC” or “fC” will fail.