Difference between revisions of "Template:Infobox/Kerbonaut/bar"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<div style="height:20px; background: #252525; border-radius: 2px; padding: 2px"><span style="width:{{#expr: {{{1<noinclude>|0.25</noinclude>}}}{{#if: {{{2|}}}|/{{{2}}}}}*100 r...")
 
m (*make it a bit smaller; +cat;)
Line 1: Line 1:
<div style="height:20px; background: #252525; border-radius: 2px; padding: 2px"><span style="width:{{#expr: {{{1<noinclude>|0.25</noinclude>}}}{{#if: {{{2|}}}|/{{{2}}}}}*100 round 0}}%; height: 100%; overflow: hidden; display: block; background: #b1b1b1; border-radius: 2px;"></span></div><noinclude>
+
<div style="height:16px; background: #252525; border-radius: 2px; padding: 2px"><span style="width:{{#expr: {{{1<noinclude>|0.25</noinclude>}}}{{#if: {{{2|}}}|/{{{2}}}}}*100 round 0}}%; height: 100%; overflow: hidden; display: block; background: #b1b1b1; border-radius: 2px;"></span></div><noinclude>
 
----
 
----
 
Draws a bar with the specified length.
 
Draws a bar with the specified length.
Line 6: Line 6:
 
{{Parameter Row|1|Filled percentage with a value between 0 and the second parameter|}}
 
{{Parameter Row|1|Filled percentage with a value between 0 and the second parameter|}}
 
{{Parameter Row|2|Maximum value.|1}}
 
{{Parameter Row|2|Maximum value.|1}}
}}</noinclude>
+
}}
 +
 
 +
[[Category:Metatemplates]]</noinclude>

Revision as of 13:40, 15 December 2013


Draws a bar with the specified length.

Template:Parameter Table