Difference between revisions of "Template:ProgressBar"
From Fallen Sword Wiki
(New page: <includeonly> {| width="80%" style="background:transparent" | style="text-align:left" valign="middle" width="34%" | {{{1}}}: | valign="middle" width="66%" | {| style="border:1px solid #000...) |
(→How to Use: typo) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {| width=" | + | {| width="100%" style="background:transparent;" |
− | | style="text-align: | + | | style="text-align:right;font-size:{{{14|10pt}}};font-family:{{{15|Arial}}};" valign="middle" width="{{{8|30%}}}" | {{{1}}}: |
− | | valign="middle" width=" | + | | valign="middle" width="{{{9|70%}}}" | |
− | {| style="border: | + | {| 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;" | |
− | { | + | <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> |
− | + | ||
− | </includeonly> | + | |
<noinclude> | <noinclude> | ||
+ | {| style="width:600px; border: solid 2px #8A0808; padding:2px" align="center" cellspacing=0 | ||
+ | | style="background:#FA5858;text-align:center"| '''DO NOT EDIT!''' | ||
+ | |- | ||
+ | | style="background:#FFFFFF;padding:3px" | | ||
+ | '''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. | ||
+ | |} | ||
+ | <br><br> | ||
+ | |||
+ | |||
== 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 [[EnhancementBar]]. The | + | 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==== | |
− | + | ||
+ | If you want to show your progress in lvl, just use | ||
+ | |||
+ | {| width="100%" | ||
+ | ! ''Code'' | ||
+ | ! ''Output'' | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{ProgressBar|Progress to next lvl|45}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{ProgressBar|Progress to next lvl|45}} | ||
+ | |} | ||
+ | |||
+ | ====Medal Progress==== | ||
+ | |||
You can also use it to show your progress in medals or whatever you want. | You can also use it to show your progress in medals or whatever you want. | ||
− | + | {| width="100%" | |
+ | ! ''Code'' | ||
+ | ! ''Output'' | ||
+ | |- | ||
+ | | width="50%" style="border:1px solid #aaa;" | <code><nowiki>{{ProgressBar|Progress to next Medal|88}}</nowiki></code> | ||
+ | | width="50%" style="border:1px solid #aaa;" | {{ProgressBar|Progress to next Medal|88}} | ||
+ | |} | ||
+ | <br><br> | ||
+ | == 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: 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> | ||
+ | |||
+ | {| width="100%" | ||
+ | ! ''Code'' | ||
+ | ! ''Output'' | ||
+ | |- | ||
+ | | 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;" | {{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;" | {{ProgressBar|Progress to next lvl|85|4=#000|6=#0ff}} | ||
+ | |} | ||
+ | <br><br> | ||
+ | |||
+ | == Alternate Templates == | ||
+ | * [[Template:EnhancementBar]] - This template turns the description into a link. | ||
+ | * [[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}}]] | ||
+ | __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}}
|
|
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}}
|
|
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}}
|
| |||
{{ProgressBar|Progress to next lvl|85|4=#000|6=#0ff}}
|
|
Alternate Templates
- Template:EnhancementBar - This template turns the description into a link.
- 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.