Difference between revisions of "Template:EnhancementBar2"
From Fallen Sword Wiki
(New page: <includeonly> {| width="100%" style="background:transparent;" | style="text-align:left" valign="middle" width="5%" | '''{{{3}}}''' | style="text-align:right" valign="middle" width="30%" | ...) |
|||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| width="100%" style="background:transparent;" | {| width="100%" style="background:transparent;" | ||
− | | style="text-align:left" valign="middle" width="5%" | '''{{{3}}}''' | + | | style="text-align:left" valign="middle" width="{{{17|5%}}}" | '''{{{3}}}''' |
− | | style="text-align:right" valign="middle" width=" | + | | style="text-align:right;font-size:{{{15|10pt}}};font-family:{{{16|Arial}}};" valign="middle" width="{{{9|34%}}}" | [[{{{1}}}]]: |
− | | valign="middle" width=" | + | | valign="middle" width="{{{10|66%}}}" | |
− | {| style="border: | + | {| style="border:{{{8|1}}}px {{{11|solid}}} {{{6|#000}}};background:{{{7|transparent}}};" cellpadding="{{{12|1}}}" cellspacing="0" width="100%" |
| style="text-align:left;" | | | style="text-align:left;" | | ||
− | + | <div width="{{{2}}}%" style="background:{{{7|transparent}}};position:relative;width:{{{2}}}%;"> | |
− | + | <div style="color:{{{5|#000}}};padding-left:5px;background-color:{{{4|#f00}}}; font-size:{{{13|9pt}}};font-family:{{{14|Arial}}};">{{{2}}}%</div></div> | |
− | + | ||
|} | |} | ||
|}</includeonly> | |}</includeonly> | ||
Line 17: | Line 16: | ||
|- | |- | ||
| align="center" valign="middle" style="font-family:Verdana;font-weight:normal;" | | | align="center" valign="middle" style="font-family:Verdana;font-weight:normal;" | | ||
− | + | <small>If you need to customize this template to fit your own needs, copy the code into a fresh template and work from there.</small> | |
− | + | ||
− | + | ||
|- | |- | ||
| align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Editing this page may cause the template to stop working properly for other pages currently using this template. | | align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Editing this page may cause the template to stop working properly for other pages currently using this template. | ||
Line 38: | Line 35: | ||
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar2|Rune of Decay|40|90}} | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar2|Rune of Decay|40|90}} | ||
|} | |} | ||
+ | == 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. | ||
− | |||
− | |||
<pre> | <pre> | ||
− | 1 = | + | 1 = Description . . . . . . . . default: none (this parameter is mandatory) |
− | 2 = Percentage. . . . . . . . default: none (this parameter is mandatory) | + | 2 = Percentage. . . . . . . . . default: none (this parameter is mandatory) |
− | 3 = Level . . . . . . . . . . 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% | ||
</pre> | </pre> | ||
== Alternate Templates == | == Alternate Templates == | ||
* [[Template:EnhancementBar]] - This template gives the same basic appearance without the level in front. | * [[Template:EnhancementBar]] - This template gives the same basic appearance without the level in front. | ||
+ | * [[Template:EnhancementBar3]] - This template gives only the bar with the percentage. | ||
* [[Template:ProgressBar]] - This template gives the same basic appearance without the level. The description is also not a link. | * [[Template:ProgressBar]] - This template gives the same basic appearance without the level. The description is also not a link. | ||
Latest revision as of 22:08, 18 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 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}}
|
|
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
- Template:EnhancementBar - This template gives the same basic appearance without the level in front.
- Template:EnhancementBar3 - This template gives only the bar with the percentage.
- Template:ProgressBar - This template gives the same basic appearance without the level. The description is also not a link.