Template:Fc
Purpose & Usage[edit source]
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.
Required Parameters[edit source]
title - Sets the title
- Values
- Default: n/a,
title=TitleHere
- Default: n/a,
Optional Parameters[edit source]
logo - Displays a logo to the left of the content
- Values
- Default:
logo=delta
- delta
- fo3
- fo4
- fnv
- mo, mo2
- morrowind
- nomanssky
- oblivion
- nomanssky, nms
- skyrim, skyrimle
- skyrimse
- Default:
subtitle - Sets a subtitle
- Values
- Default: n/a,
subtitle=SubtitleHere
- Default: n/a,
author - Sets a subtitle
- Values
- Default: n/a,
author=Author(s)Here
- Default: n/a,
forumtid - Sets a forum link if a support forum exists for the page. The <uniqueForumID> is found in the forum topic's URL:
https://stepmodifications.org/forum/topic/14917-system-setup-guide/
- Values
- Default: n/a,
forumtid=14917
- Default: n/a,
Examples[edit source]
Default Call[edit source]
The simplest call returns defaults for the template.
- Code:
{{PageTitle|title=Title Here}}
- Result:
Parameters:[edit source]
- Template:
{{Fc|keyword|displayedText}}
- 1 (color keyword)
- This this the first ( {{{1}}} ) anonymous parameter. It accepts color keywords, which control the color of the text. The available keywords are in the table below.
- Default: blank, which results in the inherited color displaying
- How to use:
{{Fc|notice|displayedText}}
- 2 / text
- This is the second ( {{{2}}} ) anonymous parameter. It is the text that displays.
- Default: blank, which results in no text being displayed.
- How to use:
{{Fc|notice|BlahBlahBlah}}
-
- By default, there is no need to name this parameter, however, there is a bug that exists when parsing the template that include "=" characters within this parameter. Essentially, the first instance of this character will break the template. To fix this, the second anonymous parameter is nested within a named parameter. Therefore, any time a "=" character has to be included within the displayed text, users will have to call the named parameter, text.
- How to use:
{{Fc|notice|text=BlahBlahBlah=3}}
Color Table[edit source]
Only the colors listed below are available for use. The reason the colors are restricted is that the Wiki supports themes; thus, the available colors have been carefully selected to work with all available themes.
The following is a table of the colors supported by the Step Wiki. 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. The keywords are required for the template and will produce their respective colors, thus, have been included below with some usage information to guide users. Bad keywords will result in no effect, thus, the inherited text color from the parent will display.
Keywords | Usage |
---|---|
red, warning | Warning text without an "Alert" template, dropped mods, required elements, etc. |
salmon, instruction, heading | 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 | 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, brighter | Emphasis within normal text or additional emphasis within instruction sets, etc. |
dimmer, dim | Sub/Sup text, etc. |
Examples[edit source]
Code:
{{fc|instruction|The {{Fc|highlight|important part}} of an instruction is highlighted.}}
Result: The important part of an instruction is highlighted.
Code:
{{fc|highlight|text=Use the ''text'' parameter when "=" characters are used.}}
Result: Use the text parameter when "=" characters are used.
Code:
{{fc|nonsense|Bad key words}} don't affect text color.
Result: Bad key words don't affect text color.