Difference between revisions of "Template:EnhancementBar"
(10 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {| width="100%" style="background:transparent" | + | <includeonly> |
− | | style="text-align:right" valign="middle" width="34%" | [[{{{1}}}]]: | + | {| width="100%" style="background:transparent;" |
− | | valign="middle" width="66%" | | + | | style="text-align:right;font-size:{{{14|10pt}}};font-family:{{{15|Arial}}};" valign="middle" width="{{{8|34%}}}" | [[{{{1}}}]]: |
− | {| style="border: | + | | valign="middle" width="{{{9|66%}}}" | |
− | | style="text-align:left" | | + | {| style="border:{{{7|1}}}px {{{10|solid}}} {{{5|#000}}};background:{{{6|transparent}}};" cellpadding="{{{11|1}}}" cellspacing="0" width="100%" |
− | { | + | | style="text-align:left;" | |
− | + | <div width="{{{2}}}%" style="background:{{{6|transparent}}};position:relative;width:{{{2}}}%;"> | |
− | |} | + | <div style="color:{{{4|#000}}};padding-left:5px;background-color:{{{3|#f00}}}; font-size:{{{12|9pt}}};font-family:{{{13|Arial}}};">{{{2}}}%</div></div> |
− | + | ||
|} | |} | ||
+ | |}</includeonly> | ||
<noinclude> | <noinclude> | ||
+ | <center> | ||
+ | {| width="100%" style="border:3px dashed #f00;" | ||
+ | | align="center" valign="middle" style="font-family:Verdana;font-variant:small-caps;font-weight:bold;" | Do not edit this page! | ||
+ | |- | ||
+ | | 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. | ||
+ | |} | ||
+ | </center> | ||
+ | |||
+ | |||
+ | |||
== How to Use == | == How to Use == | ||
− | This template allows you to make a percentage bar for a specific enhancement. | + | 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 | + | For example, if we have Piercing Strike 85%, then we would use |
+ | {| width="100%" | ||
+ | ! ''Code'' | ||
+ | ! ''Output'' | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Piercing Strike|85}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Piercing Strike|85}} | ||
+ | |} | ||
== Other Uses == | == 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 | 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 | ||
− | < | + | {| width="100%" |
+ | ! ''Code'' | ||
+ | ! ''Output'' | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Mancrusha Boots|50}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Mancrusha Boots|50}} | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==== Level Progress ==== | ||
+ | {| width="100%" | ||
+ | ! ''Code'' | ||
+ | ! ''Output'' | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Level Progress|47}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Level Progress|47}} | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==== Medal Progress ==== | ||
+ | {| width="100%" | ||
+ | ! ''Code'' | ||
+ | ! ''Output'' | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Adventurer Bronze Medal|4}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Adventurer Bronze Medal|4}} | ||
+ | |} | ||
+ | |||
+ | |||
+ | == 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> | ||
+ | 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: #000 (black) | ||
+ | 5 = Full Bar Border Color . . . default: #000 (black) | ||
+ | 6 = Full Bar Internal Color . . default: transparent | ||
+ | 7 = Full Bar Border Size. . . . default: 1 | ||
+ | 8 = Description Width . . . . . default: 34% | ||
+ | 9 = Full Bar Width. . . . . . . default: 66% | ||
+ | 10 = Full Bar Border-Style. . . default: solid | ||
+ | 11 = Full Bar Padding . . . . . default: 1px | ||
+ | 12 = Percentage Font-Size . . . default: 9pt | ||
+ | 13 = Percentage Font-Family . . default: Arial | ||
+ | 14 = Description Font-Size. . . default: 10pt | ||
+ | 15 = Description Font-Family. . default: Arial | ||
+ | </pre> | ||
+ | |||
+ | {| width="100%" | ||
+ | ! width="50%" | ''Code'' | ||
+ | ! width="50%" | ''Output'' | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Piercing Strike|100|#ff0|#8772ff|#f0f|12=15pt|7=2}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Piercing Strike|100|#ff0|#8772ff|#f0f|12=15pt|7=2}} | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Banishment|85|10=dashed|4=#f0f}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Banishment|85|10=dashed|4=#f0f}} | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Critical Hit|9|4=#f0f|13='Arial Black'|6=#0ff|7=4}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Critical Hit|9|4=#ff0|13='Arial Black'|6=#f0f|7=4}} | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Holy|47|11=3|7=4|15=Verdana}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Holy|47|11=3|7=4|15=Verdana}} | ||
+ | |} | ||
− | + | == Alternate Templates == | |
− | + | * [[Template:EnhancementBar2]] - This template allows for a level to be placed before the description. | |
+ | * [[Template:EnhancementBar3]] - This template gives only the bar with the percentage. | ||
+ | * [[Template:ProgressBar]] - This template gives the same basic appearance without the link in front. | ||
− | |||
− | |||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
+ | __NOTOC__ | ||
</noinclude> | </noinclude> |
Latest revision as of 22:09, 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. 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}}
|
|
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}}
|
|
Level Progress
Code | Output | |||
---|---|---|---|---|
{{EnhancementBar|Level Progress|47}}
|
|
Medal Progress
Code | Output | |||
---|---|---|---|---|
{{EnhancementBar|Adventurer Bronze Medal|4}}
|
|
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: #000 (black) 5 = Full Bar Border Color . . . default: #000 (black) 6 = Full Bar Internal Color . . default: transparent 7 = Full Bar Border Size. . . . default: 1 8 = Description Width . . . . . default: 34% 9 = Full Bar Width. . . . . . . default: 66% 10 = Full Bar Border-Style. . . default: solid 11 = Full Bar Padding . . . . . default: 1px 12 = Percentage Font-Size . . . default: 9pt 13 = Percentage Font-Family . . default: Arial 14 = Description Font-Size. . . default: 10pt 15 = Description Font-Family. . default: Arial
Code | Output | |||
---|---|---|---|---|
{{EnhancementBar|Piercing Strike|100|#ff0|#8772ff|#f0f|12=15pt|7=2}}
|
| |||
{{EnhancementBar|Banishment|85|10=dashed|4=#f0f}}
|
| |||
{{EnhancementBar|Critical Hit|9|4=#f0f|13='Arial Black'|6=#0ff|7=4}}
|
| |||
{{EnhancementBar|Holy|47|11=3|7=4|15=Verdana}}
|
|
Alternate Templates
- Template:EnhancementBar2 - This template allows for a level to be placed before the description.
- Template:EnhancementBar3 - This template gives only the bar with the percentage.
- Template:ProgressBar - This template gives the same basic appearance without the link in front.