Template:Traitbar: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
These colors should always be the proper green or red, to match the game. The exact colors are as follows:<br />
These colors should always be the proper green or red, to match the game. The exact colors are as follows:<br />
{{color|'''Green:'''|#9ae89a}} ''Bar color'' - #17a018; ''Border color'' - #046005<br />
{{color|'''Green:'''|#9ae89a}} ''Bar color'' - #17a018; ''Border color'' - #046005<br />
{{color|'''Red:'''|#e89a9a}} ''Bar color'' - #640000; ''Border color'' - #610505
{{color|'''Red:'''|#e89a9a}} ''Bar color'' - #640000; ''Border color'' - #610505<br /><br />
For example, <code><nowiki>{{traitbar|65%|#8888ff|#6666cc}}</nowiki></code>
Creates the following: {{traitbar|65%|#8888ff|#6666cc}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 19:17, 3 July 2021

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}}
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.

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
Red: Bar color - #640000; Border color - #610505

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

Creates the following: