Difference between revisions of "User:Wookipan/Percentage bar"

From Team Fortress Wiki
Jump to: navigation, search
m (fix'ed)
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div style="display:none">{{#expr: {{formatnum:{{{1|0}}}|R}} / {{formatnum:{{{total|100}}}|R}}}}</div><!-- Sort key
 
<div style="display:none">{{#expr: {{formatnum:{{{1|0}}}|R}} / {{formatnum:{{{total|100}}}|R}}}}</div><!-- Sort key
--><div style="border:{{{border|1px solid #000000}}}; padding:{{{padding|1px}}}; overflow:hidden; width:{{{width|50%}}}; margin: none; font-size:xx-small; text-align:right; {{{style|}}}"><!--  
+
--><div style="border:{{{border|1px solid #fff}}}; padding:{{{padding|1px}}}; overflow:hidden; width:{{{width|50%}}}; margin: none; font-size:xx-small; text-align:right; {{{style|}}}"><!--  
 
   --><span style="
 
   --><span style="
 
     width: {{#expr: {{formatnum:{{{1|<noinclude>3</noinclude>0}}}|R}} / {{formatnum:{{{total|100}}}|R}} * 100}}%;
 
     width: {{#expr: {{formatnum:{{{1|<noinclude>3</noinclude>0}}}|R}} / {{formatnum:{{{total|100}}}|R}} * 100}}%;
 
     height: {{{height|12px}}};
 
     height: {{{height|12px}}};
     background:{{{color1|#B34952}}};
+
     background:{{{color1|#70B04A}}};
 
     float:left;
 
     float:left;
 
     line-height:{{{height|12px}}};
 
     line-height:{{{height|12px}}};
Line 15: Line 15:
 
     }}
 
     }}
 
     height:{{{height|12px}}};
 
     height:{{{height|12px}}};
    background:{{{color2|#FFFFFF}}};
 
 
     float:left;
 
     float:left;
 
     {{{style2|}}}
 
     {{{style2|}}}
 
     ">&nbsp;</span><!--  
 
     ">&nbsp;</span><!--  
 
   --></div><noinclude>
 
   --></div><noinclude>

Latest revision as of 21:28, 12 April 2019

0
30%