Template:Traitbar

From Songs of Syx Wiki
Revision as of 23:30, 3 July 2021 by Zippy (talk | contribs)
Jump to navigation Jump to search

This is a trait bar. It can be edited to look like something of a static loading bar. These are meant to mimic the trait bars seen in the game. They can be customized in terms of how much of the bar is filled. Some bars are green, some are red. The syntax of the template is as follows:
{{traitbar|width|inner color|border color|background color}}
The width part must be typed as a number with "px" or "%" at the end of it, with no spaces. The colors can be written as color names or as #RGB format HTML color codes. If a trait bar is empty, Template:Traitbarempty should be used instead, which is written as {{traitbarempty}}.

These colors should always be the proper green or red, to match the game. The exact colors are as follows:
Green: Bar color - #17a018; Border color - #046005; Background - #23110b
Red: Bar color - #920000; Border color - #610000; Background - #23030b
Note: The background can be left blank, but this will default it to the background of a green bar.

For example, {{traitbar|65%|#8888ff|#6666cc}}

Creates the following: