Template:CustomTag: Difference between revisions
From Step Mods | Change The Game
m (Z929669 moved page Project:Template:CustomTag to Template:CustomTag without leaving a redirect) |
mNo edit summary |
||
Line 18: | Line 18: | ||
|moved = Moved to | |moved = Moved to | ||
|updated = Updated | |updated = Updated | ||
|#default = {{{tag|}}}}}</sup>'''''</includeonly><noinclude> | |#default = {{{tag|}}}}}</sup>'''''</includeonly><noinclude>__NOTOC__[[Category:Formatting Templates]][https://stepmodifications.org/forum/topic/9770-customtag/ '''Forum Topic'''] | ||
== Purpose & Usage == | == 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: | Use this template to create a custom tag anywhere within a page's text. The tag is automatically formatted based on the parameters passed: |
Latest revision as of 15:55, August 2, 2021
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! |
---|---|
blue | |
green | added |
red | dropped, replaced |
yellow | |
orange | merged, moved, updated |
salmon | |
highlight |
The highlight keyword simply makes the text slightly brighter.
Examples
- Code:
XyzLocation {{CustomTag|color=green|size=larger|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
Related Templates
None