Template:CustomTag

From Step Mods | Change The Game
Revision as of 23:02, January 16, 2021 by Z929669 (talk | contribs)


Template:CustomTag[edit source]

Purpose & Usage[edit source]

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

  • 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!
blue
green added
red dropped, replaced
yellow
orange merged, moved, updated
salmon
highlight

The highlight keyword simply makes the text slightly brighter.

Examples[edit source]

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

Step Reserved[edit source]

Code:[edit source]

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

Added
Dropped
Replaced by
Moved to
Updated

Related Templates[edit source]

None