Template:Fc

From Step Mods | Change The Game

Forum Topic

Purpose & Usage

This template is used to change text color in accordance with the site color pallet. Deviation from this template using inline styling or other means is not recommended.

Info-Logo.png

NOTE

Always use a 'named' second parameter (text) when using this template to color text that includes an equal ('=') symbol to avoid parser errors.

Required Parameters

This template uses 'anonymous' and optionally 'named' parameters, and all are required and must appear in a particular order.

First Prameter - color - Sets the color of text

Values
See Color Table

Second Prameter - text - Sets the text to be colored

Values
Free text (this parameter can also be 'named' if the text to be colored includes an equal ('=') symbol)

Optional Parameters

Not applicable.

Color Table

The following is a table of the colors supported by the Step Wiki to maintain compatibility with site themes and colors. See the Site Color Usage for more in-depth information regarding the use of colors, including their Hex and CSS values, which will be useful for any custom development on user pages, theming, etc.

Key Words (first parameter) Usage
red, warn, warning Warning text without an "Alert" template, dropped mods, required elements, etc.
salmon, instruction, heading, note, notice Should be the most prevalent "callout" text color for notes and special instructions. Preferred over Template:AlertSmall
orange Call attention to changes such as updates or file moves, etc.
yellow, issue Call attention to issues, etc.
chartr, bug Chartreuse text; can represent 'bug' notes, etc.
green Green text
blue Use sparingly. Do not use for short phases as it can resemble links.
purple, dev, development Call out development, etc.
magenta Magenta text.
highlight, important, bright, brighter Secondary emphasis within normal text (salmon preferred), instructions, and notes
dim, dimmer Subtle text used for de-emphasis

Examples

Default Call

No applicable (all parameters must be specified)

Fully Specified

Code:

{{Fc|instruction|The {{Fc|highlight|important part}} of an instruction is highlighted.}}

Result: The important part of an instruction is highlighted.


Code:

{{Fc|green|text=Use the ''text'' parameter when "=" characters are used.}}

Result: Use the text parameter when "=" characters are used.


Code:

{{Fc|nonsense|Undefined parameter key words}} don't affect text color.

Result: Undefined parameter key words don't affect text color.

See Also

Template:Fs
Site Color Usage