Template:Fc: Difference between revisions
mNo edit summary |
|||
Line 1: | Line 1: | ||
<includeonly><span class="{{#switch:{{lc:{{{1|}}}}} | <includeonly><span class="{{#switch:{{lc:{{{1|}}}}} | ||
| red | warning | warn = redtx | | red | warning | warn = redtx | ||
| salmon | instruction | heading = salmontx | | salmon | instruction | heading | notice = salmontx | ||
| orange = orangetx | | orange = orangetx | ||
| yellow | issue = yellowtx | | yellow | issue = yellowtx | ||
| chartr | bug = chartrtx | | chartr | bug = chartrtx | ||
| green = greentx | | green = greentx | ||
| blue | | blue = bluetx | ||
| purple | dev = purpletx | | purple | dev = purpletx | ||
| magenta = magenttx | | magenta = magenttx | ||
Line 42: | Line 42: | ||
| Warning text without an "Alert" template, dropped mods, required elements, etc. | | Warning text without an "Alert" template, dropped mods, required elements, etc. | ||
|- | |- | ||
| {{Template:Fc|salmon|salmon, instruction, heading}} | | {{Template:Fc|salmon|salmon, instruction, heading, notice}} | ||
| Emphasis within instruction sets, alterative color for headings, etc. | | Emphasis within instruction sets, alterative color for headings, etc. | ||
|- | |- | ||
Line 57: | Line 57: | ||
| Call attention to additions, etc. | | Call attention to additions, etc. | ||
|- | |- | ||
| {{Template:Fc|blue|blue | | {{Template:Fc|blue|blue}} | ||
| Notice text without an "Alert" template, etc.<br>{{fc|warning|''Try not to use this color for {{fc|notice|short phases}} as it can resemble {{fc|notice|links}}.''}} | | Notice text without an "Alert" template, etc.<br>{{fc|warning|''Try not to use this color for {{fc|notice|short phases}} as it can resemble {{fc|notice|links}}.''}} | ||
|- | |- |
Revision as of 19:43, September 22, 2021
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](/wiki/images/thumb/4/40/Info-Logo.png/35px-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, warning | Warning text without an "Alert" template, dropped mods, required elements, etc. |
salmon, instruction, heading, notice | Emphasis within instruction sets, alterative color for headings, etc. |
orange | Call attention to changes such as updates or file moves, etc. |
yellow, issue | Call attention to issues, etc. |
chartr, bug | Call out bugs, etc. |
green | Call attention to additions, etc. |
blue | Notice text without an "Alert" template, etc. Try not to use this color for short phases as it can resemble links. |
purple, dev | Call out development, etc. |
magenta | Unknown, but it was requested by users. |
highlight, important, bright, brighter | Emphasis within normal text or additional emphasis within instruction sets, etc. |
dim, dimmer | Sub/Sup text, etc. |
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.