Difference between revisions of "Template:EnhancementBar"

From Fallen Sword Wiki
Jump to: navigation, search
(Optional Parameters)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{| width="100%" style="background:transparent;"
 
{| width="100%" style="background:transparent;"
| style="text-align:right" valign="middle" width="34%" | [[Enhancements|{{{1}}}]]:
+
| style="text-align:right" valign="middle" width="34%" | [[{{{1}}}]]:
 
| valign="middle" width="66%" |
 
| valign="middle" width="66%" |
{| style="border:1px solid #000;background:transparent" cellpadding="0" cellspacing="0" width="100%"
+
{| style="border:1px solid {{{5|#000}}};background:{{{6|transparent}}};" cellpadding="0" cellspacing="0" width="100%"
 
| style="text-align:left;" |
 
| style="text-align:left;" |
{| width="{{{2}}}%" style="background:transparent;"
+
{| width="{{{2}}}%" style="background:{{{6|transparent}}};"
 
| valign="middle" style="color:{{{4|#fff}}};padding-left:5px;background-color:{{{3|#f00}}};" |{{{2}}}%
 
| valign="middle" style="color:{{{4|#fff}}};padding-left:5px;background-color:{{{3|#f00}}};" |{{{2}}}%
 
|}
 
|}
Line 70: Line 70:
  
 
== Optional Parameters ==
 
== Optional Parameters ==
This template now allows for users to customize the colors of the bar. However, if the text color is changed, then the bar color will also need to be changed. If the colors are not changed, the default colors are white and red.
+
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.
 +
 
 +
<pre>
 +
1 = Description . . . . . . . . default: none, this parameter is mandatory
 +
2 = Percentage . . . . . . . . .default: none, this parameter is mandatory
 +
3 = Percentage Bar Color . . . .default: #f00 (red)
 +
4 = Percentage Text Color . . . default: #fff (white)
 +
5 = Full Bar Border Color . . . default: #000 (black)
 +
6 = Full Bar Internal Color . . default: transparent
 +
</pre>
 +
 
 
{| width="100%"
 
{| width="100%"
 
! ''Code''
 
! ''Code''
 
! ''Output''
 
! ''Output''
 
|-
 
|-
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Piercing Strike|85|#ff0}}</nowiki></code>
+
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Piercing Strike|85|#ff0|#8772ff|#045}}</nowiki></code>
 
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Piercing Strike|85|#ff0}}
 
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Piercing Strike|85|#ff0}}
 
|-
 
|-
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Piercing Strike|85|#f0f|#0ff}}</nowiki></code>
+
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Piercing Strike|85|4=#f0f|6=#0ff}}</nowiki></code>
 
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Piercing Strike|85|#f0f|#0ff}}
 
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Piercing Strike|85|#f0f|#0ff}}
 
|}
 
|}

Revision as of 19:42, 10 March 2008


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. Note: The white parts of the background are actually transparent so the template can be used on any color background.

For example, if we have Piercing Strike 85%, then we would use

Code Output
{{EnhancementBar|Piercing Strike|85}}
Piercing Strike:
85%

Other Uses

This template can also be used if you are describing the enhancement amount for a specific item. For example, if we are describing the amount of enhancement for Mancrusha Boots on the Dodge page, it would be

Code Output
{{EnhancementBar|Mancrusha Boots|50}}
Mancrusha Boots:
50%


Level Progress

Code Output
{{EnhancementBar|Level Progress|47}}
Level Progress:
47%


Medal Progress

Code Output
{{EnhancementBar|Adventurer Bronze Medal|32}}
Adventurer Bronze Medal:
100%


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 = Percentage Bar Color . . . .default: #f00 (red)
4 = Percentage Text Color . . . default: #fff (white)
5 = Full Bar Border Color . . . default: #000 (black)
6 = Full Bar Internal Color . . default: transparent
Code Output
{{EnhancementBar|Piercing Strike|85|#ff0|#8772ff|#045}}
Piercing Strike:
85%
{{EnhancementBar|Piercing Strike|85|4=#f0f|6=#0ff}}
Piercing Strike:
85%

Alternate Templates