Difference between revisions of "Template:EnhancementBar"

From Fallen Sword Wiki
Jump to: navigation, search
(Alternate Templates)
Line 1: Line 1:
{| width="100%" style="background:transparent"
+
<includeonly>
| style="text-align:right" valign="middle" width="34%" | [[{{{1}}}]]:
+
{| width="100%" style="background:transparent;"
 +
| style="text-align:right" valign="middle" width="34%" | [[Enhancements|{{{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 #000;background:transparent" cellpadding="0" cellspacing="0" width="100%"
| style="text-align:left" |
+
| style="text-align:left;" |
{| style="margin:0px;background:transparent" width="{{{2}}}%"
+
{| width="{{{2}}}%" style="background:transparent;"
| valign="middle" style="color:#fff;padding-left:5px;background-color:#f00" | {{{2}}}%
+
| valign="middle" style="color:{{{4|#fff}}};padding-left:5px;background-color:{{{3|#f00}}};" |{{{2}}}%
|}
+
 
|}
 
|}
 
|}
 
|}
 +
|}</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;" |
 +
{| width="75%" style="border:0px"
 +
| <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 45%, then we would use
+
For example, if we have Piercing Strike 85%, then we would use
:<pre>{{EnhancementBar|Piercing Strike|45}}</pre>
+
{| 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
:<pre>{{EnhancementBar|Mancrusha Boots|50}}</pre>
+
{| 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
 
:<pre>{{EnhancementBar|Level Progress|47}}</pre>
 
  
Medal Progress
+
==== Level Progress ====
:<pre>{{EnhancementBar|Adventurer Bronze Medal|32}}</pre>
+
{| 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|32}}</nowiki></code>
 +
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Adventurer Bronze Medal|100}}
 +
|}
 +
 
 +
 
 +
== 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.
 +
{| width="100%"
 +
! ''Code''
 +
! ''Output''
 +
|-
 +
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{EnhancementBar|Piercing Strike|85|#ff0}}</nowiki></code>
 +
| 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|#ff0|#0ff}}</nowiki></code>
 +
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Piercing Strike|85|#ff0|#0ff}}
 +
|}
 +
 
 
== Alternate Templates ==
 
== Alternate Templates ==
 
* [[Template:ProgressBar]] - This template gives the same basic appearance without the link in front.
 
* [[Template:ProgressBar]] - This template gives the same basic appearance without the link in front.
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 +
__NOTOC__
 
</noinclude>
 
</noinclude>

Revision as of 18:27, 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 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.

Code Output
{{EnhancementBar|Piercing Strike|85|#ff0}}
Piercing Strike:
85%
{{EnhancementBar|Piercing Strike|85|#ff0|#0ff}}
Piercing Strike:
85%

Alternate Templates