Template:EnhancementBar2

From Fallen Sword Wiki
Revision as of 22:08, 18 March 2008 by Belgrave (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Do not edit this page!

If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there.

Editing this page may cause the template to stop working properly for other pages currently using this template.


How to Use

This template allows you to make a percentage bar for a specific enhancement with an additional parameter to put in a minimum level. Note: The white parts of the background are actually transparent so the template can be used on any color background.

For example, to show the amount of enhancement for a Rune of Decay listed on the Breaker enhancement page, then we would use

Code Output
{{EnhancementBar2|Rune of Decay|49|90}}
90 Rune of Decay:
40%

Optional Parameters

This template now allows for users to customize the colors of the bar. However, if only select colors are changed, then parameters will have to be referred to by number.

1 = Description . . . . . . . . default: none (this parameter is mandatory)
2 = Percentage. . . . . . . . . default: none (this parameter is mandatory)
3 = Level . . . . . . . . . . . default: none (this parameter is mandatory)
4 = Percentage Bar Color. . . . default: #f00 (red)
5 = Percentage Text Color . . . default: #000 (black)
6 = Full Bar Border Color . . . default: #000 (black)
7 = Full Bar Internal Color . . default: transparent
8 = Full Bar Border Size. . . . default: 1
9 = Description Width . . . . . default: 34%
10 = Full Bar Width . . . . . . default: 66%
11 = Full Bar Border-Style. . . default: solid
12 = Full Bar Padding . . . . . default: 1px
13 = Percentage Font-Size . . . default: 9pt
14 = Percentage Font-Family . . default: Arial
15 = Description Font-Size. . . default: 10pt
16 = Description Font-Family. . default: Arial
17 = Level Width. . . . . . . . default: 5%

Alternate Templates