Template:Fc: Difference between revisions
From Step Mods | Change The Game
m (Z929669 moved page Project:Template Fc to Project:Template:Fc without leaving a redirect) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#vardefine:color|{{#switch:{{lc:{{{1|}}}}} | ||
| magenta = | | magenta = magenttx | ||
| purple = | | purple = purpletx | ||
| addition | enhancement | confirmation | notice | blue = | | addition | enhancement | confirmation | notice | blue = bluetx | ||
| added | fix | functional | relevant | green = | | added | fix | functional | relevant | green = greentx | ||
| chartreuse = | | chartreuse = chartrtx | ||
| issue | unknown | yellow = | | issue | unknown | yellow = yellowtx | ||
| instruction | ilheading | salmon = | | instruction | ilheading | salmon = salmontx | ||
| change | merged | modification | updated | orange = | | change | merged | modification | updated | orange = orangetx | ||
| dropped | removal | replaced | non-functional | warning | irrelevant | red = | | dropped | removal | replaced | non-functional | warning | irrelevant | red = redtx | ||
| important | highlight = | | important | highlight = hltxt | ||
| #default = custom}}}}<span {{#ifeq:{{#var:color}}|custom|style="color:{{{1}}};"|class="{{#var:color}}"}}>{{{2}}}</span></includeonly><noinclude>__NOTOC__ [[Category:Formatting Templates]] | |||
==Purpose & Usage== | ==Purpose & Usage== | ||
Use this template to change text color. The following key words specify the situation in which to use text colors and the respective colors used; if none of the key words are appropriate for what you are highlighting, the template accepts all [https://www.w3schools.com/cssref/css_colors_legal.asp CSS Legal Color Values]. Bad key words result in no effect on text color, and the default text color will result. | Use this template to change text color. The following key words specify the situation in which to use text colors and the respective colors used; if none of the key words are appropriate for what you are highlighting, the template accepts all [https://www.w3schools.com/cssref/css_colors_legal.asp CSS Legal Color Values]. Bad key words result in no effect on text color, and the default text color will result. | ||
{{Alert|type=Notice|text=It is highly recommended to only use colors from the table below!}} | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Key Words | ! Key Words | ||
|- | |- | ||
| {{Project:Template:Fc|magenta|magenta}} | |||
|- | |- | ||
| {{Project:Template:Fc|purple|purple}} | |||
|- | |- | ||
| addition, enhancement, confirmation, blue | | {{Project:Template:Fc|blue|addition, enhancement, confirmation, blue}} | ||
|- | |- | ||
| fix, functional, relevant, green | | {{Project:Template:Fc|green|fix, functional, relevant, green}} | ||
|- | |- | ||
| {{Project:Template:Fc|chartreuse|chartreuse}} | |||
|- | |- | ||
| issue, unknown, yellow | | {{Project:Template:Fc|yellow|issue, unknown, yellow}} | ||
|- | |- | ||
| instruction, ilheading{{Fc|highlight|<sup>1</sup>, salmon | | {{Project:Template:Fc|salmon|instruction, ilheading{{Project:Template:Fc|highlight|<sup>1</sup>}}, salmon}} | ||
|- | |- | ||
| change, modification, orange | | {{Project:Template:Fc|orange|change, modification, orange}} | ||
|- | |- | ||
| removal, non-functional, irrelevant, warning, red | | {{Project:Template:Fc|red|removal, non-functional, irrelevant, warning, red}} | ||
|- | |- | ||
| {{Project:Template:Fc|highlight|important, highlight}} | |||
|- | |- | ||
| colspan="2" | {{Fc|highlight|<sup>1</sup>}}{{Fs|.8em|Only use this for "inline headings," which begin a paragraph instead of being on their own line.}} | | colspan="2" | {{Project:Template:Fc|highlight|<sup>1</sup>}}{{Fs|.8em|Only use this for "inline headings," which begin a paragraph instead of being on their own line.}} | ||
|} | |} | ||
==Examples== | ==Examples== | ||
'''Code:''' | '''Code:''' | ||
<pre>The {{Fc|important|important part}} of an {{ | <pre>The {{Project:Template:Fc|important|important part}} of an {{Project:Template:Fc|instruction|instruction}} is highlighted.</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Fc| | The {{Project:Template:Fc|important|important part}} of an {{Project:Template:Fc|instruction|instruction}} is highlighted. | ||
'''Code:''' | '''Code:''' | ||
<pre>{{Fc| | <pre>{{Project:Template:Fc|unfunctional|Bad key words}} don't affect text color.</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Fc| | {{Project:Template:Fc|unfunctional|Bad key words}} don't affect text color. | ||
'''Code:''' | '''Code:''' | ||
<pre> | <pre>{{Project:Template:Fc|#ff0000|Try not to use {{Project:Template:Fc|#6060ff|custom}} colors,}} or results look either <big>←</big> bad or are inconsistent with the rest of the wiki.</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Project:Template:Fc|#ff0000|Try not to use {{Project:Template:Fc|#6060ff|custom}} colors,}} or results look either <big>←</big> bad or are inconsistent with the rest of the wiki. | |||
== See Also == | == See Also == |
Revision as of 03:35, January 15, 2021
Purpose & Usage
Use this template to change text color. The following key words specify the situation in which to use text colors and the respective colors used; if none of the key words are appropriate for what you are highlighting, the template accepts all CSS Legal Color Values. Bad key words result in no effect on text color, and the default text color will result.
Key Words | |
---|---|
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:Fc | |
Project:Template:FcOnly use this for "inline headings," which begin a paragraph instead of being on their own line. |
Examples
Code:
The {{Project:Template:Fc|important|important part}} of an {{Project:Template:Fc|instruction|instruction}} is highlighted.
Result: The Project:Template:Fc of an Project:Template:Fc is highlighted.
Code:
{{Project:Template:Fc|unfunctional|Bad key words}} don't affect text color.
Result: Project:Template:Fc don't affect text color.
Code:
{{Project:Template:Fc|#ff0000|Try not to use {{Project:Template:Fc|#6060ff|custom}} colors,}} or results look either <big>←</big> bad or are inconsistent with the rest of the wiki.
Result: Project:Template:Fc or results look either ← bad or are inconsistent with the rest of the wiki.
See Also
Template:Fs
Template:Indicator