Template:CustomTag

From STEP Modding Wiki


Template:CustomTag

Purpose & Usage

Use this template to create a custom tag anywhere within a page's text. The tag is automatically formatted based on the parameters passed:

Parameters

  • color
    Sets the font color for the tag. Accepts all valid CSS values for the color property, as well as, predefined keywords (see chart below). Invalid keywords or skipping this parameter will result in the default text color of the current line.
  • size
    Sets the font size for the tag. Accepts all valid CSS values for the font-size property. Values for larger, normal, and smaller are customized. Invalid keywords or skipping this parameter will result in the text size equal to that of the current line.
  • tag
    Text for the tag. Be aware of the Reserved keywords below. These are reserved for Step's use and will result in preformatted text.

The following keywords specify predefined colors/formats.

Keywords Reserved ! Hex Value
blue #9eb8ee
green added #78c888
red dropped, replaced #ff7878
yellow #c0c840
orange merged, moved, updated #dd9500
salmon #e6b69e
highlight #ddd

The highlight keyword simply makes the text slightly brighter.

Examples

Code:

XyzLocation {{CustomTag|color=green|size=larger|tag=Completed}}

Result:

XyzLocation Completed

Code:

XyzLocation {{CustomTag|color=#DD5|size=smaller|tag=Completed}}

Result:

XyzLocation Completed

Code:

XyzLocation {{CustomTag|color=rgb(220,40,20)|size=1.2em|tag=Completed}}

Result:

XyzLocation Completed

Step Reserved

Code:

{{CustomTag|color=added|tag=added}}
{{CustomTag|color=dropped|tag=dropped}}
{{CustomTag|color=replaced|tag=replaced}}
{{CustomTag|color=moved|tag=moved}}
{{CustomTag|color=updated|tag=updated}}

Result:

Added
Dropped
Replaced by
Moved to
Updated