Difference between revisions of "Template:ProgressBar"

From Fallen Sword Wiki
Jump to: navigation, search
(How to Use: typo)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| width="100%" style="background:transparent"
+
{| width="100%" style="background:transparent;"
| style="text-align:right" valign="middle" width="25%" | {{{1}}}:
+
| style="text-align:right;font-size:{{{14|10pt}}};font-family:{{{15|Arial}}};" valign="middle" width="{{{8|30%}}}" | {{{1}}}:
| valign="middle" width="75%" |
+
| valign="middle" width="{{{9|70%}}}" |
{| style="border:{{{7|1}}}px solid {{{5|#000}}};background:{{{6|transparent}}};" cellpadding="0" cellspacing="0" width="100%"
+
{| style="border:{{{7|1}}}px {{{10|solid}}} {{{5|#000}}};background:{{{6|transparent}}};" cellpadding="{{{11|1}}}" cellspacing="0" width="100%"
| style="text-align:left" |
+
| style="text-align:left;" |
{| style="margin:0px; background:transparent" width="{{{2}}}%"
+
<div width="{{{2}}}%" style="background:{{{6|transparent}}};position:relative;width:{{{2}}}%;">
| valign="middle" style="color:{{{4|#fff}}};padding-left:5px;background-color:{{{3|#f00}}};" |{{{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>
|}
+
</includeonly>
+
 
+
__NOTOC__
+
 
+
 
<noinclude>
 
<noinclude>
 
{| style="width:600px; border: solid 2px #8A0808; padding:2px" align="center" cellspacing=0
 
{| style="width:600px; border: solid 2px #8A0808; padding:2px" align="center" cellspacing=0
Line 25: Line 20:
  
 
== How to Use ==
 
== How to Use ==
This template allows you to make a percentage bar for a specific progress. It is nearly the same as the [[Template:EnhancementBar|Enhancement Bar Template]]. The diffenrence is the text in front of the bar is now no link.
+
This template allows you to make a percentage bar for a specific progress. It is nearly the same as the [[Template:EnhancementBar|Enhancement Bar Template]]. The difference is the text in front of the bar is now no link.
  
 
====Level Progress====
 
====Level Progress====
Line 56: Line 51:
  
 
<pre>
 
<pre>
1 = Description . . . . . . . . default: none, this parameter is mandatory
+
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 = Percentage Bar Color . . . .default: #f00 (red)
+
3 = Percentage Bar Color. . . . default: #f00 (red)
4 = Percentage Text Color . . . default: #fff (white)
+
4 = Percentage Text Color . . . default: #000 (black)
 
5 = Full Bar Border Color . . . default: #000 (black)
 
5 = Full Bar Border Color . . . default: #000 (black)
 
6 = Full Bar Internal Color . . default: transparent
 
6 = Full Bar Internal Color . . default: transparent
7 = Full Bar Border Size . . . .default: 1
+
7 = Full Bar Border Size. . . . default: 1
 +
8 = Description Width . . . . . default: 30%
 +
9 = Full Bar Width. . . . . . . default: 70%
 +
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>
 
</pre>
  
Line 70: Line 73:
 
|-
 
|-
 
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{ProgressBar|Progress to next lvl|85|#ff0|#8772ff|#045|7=2}}</nowiki></code>
 
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{ProgressBar|Progress to next lvl|85|#ff0|#8772ff|#045|7=2}}</nowiki></code>
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Progress to next lvl|85|#ff0|#8772ff|#045|7=2}}
+
| width="50%" style="border:1px solid #aaa;" | {{ProgressBar|Progress to next lvl|85|#ff0|#8772ff|#045|7=2}}
 
|-
 
|-
 
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{ProgressBar|Progress to next lvl|85|4=#000|6=#0ff}}</nowiki></code>
 
| width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{ProgressBar|Progress to next lvl|85|4=#000|6=#0ff}}</nowiki></code>
| width="50%" style="border:1px solid #aaa;" | {{EnhancementBar|Progress to next lvl|85|4=#000|6=#0ff}}
+
| width="50%" style="border:1px solid #aaa;" | {{ProgressBar|Progress to next lvl|85|4=#000|6=#0ff}}
 
|}
 
|}
 
<br><br>
 
<br><br>
  
 
== Alternate Templates ==
 
== Alternate Templates ==
If you want to show your percentage for a specific enhancement you can also use the Template [[Template:EnhancementBar|Enhancement Bar]] which works the same way but will automatically create a link for the related Enhancement.
+
* [[Template:EnhancementBar]] - This template turns the description into a link.
<br><br>
+
* [[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.
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
+
__NOTOC__
 
</noinclude>
 
</noinclude>

Latest revision as of 22:02, 22 September 2008


DO NOT EDIT!

DO NOT edit this page. If you want to use the template just copy and paste it into your player's wiki. 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 progress. It is nearly the same as the Enhancement Bar Template. The difference is the text in front of the bar is now no link.

Level Progress

If you want to show your progress in lvl, just use

Code Output
{{ProgressBar|Progress to next lvl|45}}
Progress to next lvl:
45%

Medal Progress

You can also use it to show your progress in medals or whatever you want.

Code Output
{{ProgressBar|Progress to next Medal|88}}
Progress to next Medal:
88%



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: 30%
9 = Full Bar Width. . . . . . . default: 70%
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
{{ProgressBar|Progress to next lvl|85|#ff0|#8772ff|#045|7=2}}
Progress to next lvl:
85%
{{ProgressBar|Progress to next lvl|85|4=#000|6=#0ff}}
Progress to next lvl:
85%



Alternate Templates