Template:Fc: Difference between revisions

From Step Mods | Change The Game
No edit summary
mNo edit summary
Line 10: Line 10:
| dropped | removal | replaced | non-functional | warning | irrelevant | red = redtx
| dropped | removal | replaced | non-functional | warning | irrelevant | red = redtx
| important | highlight = hltxt
| important | highlight = hltxt
| #default = custom}}}}<span {{#ifeq:{{#var:color}}|custom|style="color:{{{1}}};"|class="{{#var:color}}"}}>{{{2}}}</span></includeonly><noinclude>__NOTOC__ [[Category:Formatting Templates]]
| #default = important}}}}<span class="{{#var:color}}">{{{1}}}</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!}}
<!--{{Alert|type=Notice|text=It is highly recommended to only use colors from the table below!}}-->


{| class="wikitable"
{| class="wikitable"
Line 21: Line 21:
! Key Words
! Key Words
|-
|-
| {{Fc|magenta|magenta}}
| {{Project:Template:Fc|magenta|magenta}}
|-
|-
| {{Fc|purple|purple}}
| {{Project:Template:Fc|purple|purple}}
|-
|-
| {{Fc|blue|addition, enhancement, confirmation, blue}}
| {{Project:Template:Fc|blue|addition, enhancement, confirmation, blue}}
|-
|-
| {{Fc|green|fix, functional, relevant, green}}
| {{Project:Template:Fc|green|fix, functional, relevant, green}}
|-
|-
| {{Fc|chartreuse|chartreuse}}
| {{Project:Template:Fc|chartreuse|chartreuse}}
|-
|-
| {{Fc|yellow|issue, unknown, yellow}}
| {{Project:Template:Fc|yellow|issue, unknown, yellow}}
|-
|-
| {{Fc|salmon|instruction, ilheading{{Fc|highlight|<sup>1</sup>}}, salmon}}
| {{Project:Template:Fc|salmon|instruction, ilheading{{Project:Template:Fc|highlight|<sup>1</sup>}}, salmon}}
|-
|-
| {{Fc|orange|change, modification, orange}}
| {{Project:Template:Fc|orange|change, modification, orange}}
|-
|-
| {{Fc|red|removal, non-functional, irrelevant, warning, red}}
| {{Project:Template:Fc|red|removal, non-functional, irrelevant, warning, red}}
|-
|-
| {{Fc|highlight|important, highlight}}
| {{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 {{Fc|instruction|instruction}} is highlighted.</pre>
<pre>The {{Template:Fc|important|important part}} of an {{Template:Fc|instruction|instruction}} is highlighted.</pre>
'''Result:'''
'''Result:'''
The {{Fc|important|important part}} of an {{Fc|instruction|instruction}} is highlighted.
The {{Template:Fc|important|important part}} of an {{Template:Fc|instruction|instruction}} is highlighted.


'''Code:'''
'''Code:'''
<pre>{{Fc|unfunctional|Bad key words}} don't affect text color.</pre>
<pre>{{Template:Fc|nonsense|Bad key words}} don't affect text color.</pre>
'''Result:'''
'''Result:'''
{{Fc|unfunctional|Bad key words}} don't affect text color.
{{Template:Fc|nonsense|Bad key words}} don't affect text color.
 
'''Code:'''
<pre>{{Fc|#ff0000|Try not to use {{Fc|#6060ff|custom}} colors,}} or results look either <big>←</big> bad or are inconsistent with the rest of the wiki.</pre>
'''Result:'''
{{Fc|#ff0000|Try not to use {{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 22:37, January 16, 2021


Purpose & Usage[edit source]

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[edit source]

Code:

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

Result: The important of an instruction is highlighted.

Code:

{{Template:Fc|nonsense|Bad key words}} don't affect text color.

Result: nonsense don't affect text color.

See Also[edit source]

Template:Fs
Template:Indicator