imported>R'n'B Add optional "total" parameter to calculate percentage on the fly |
imported>R'n'B m simplify, fix bar coloring |
||
| 1번째 줄: | 1번째 줄: | ||
<div style="width:{{{width|75%}}}; margin:auto; text-align:center;"> | <div style="width:{{{width|75%}}}; margin:auto; text-align:center;"> | ||
<p><big>''' | <p><big>'''{{#expr:( {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} ) * 100 round 1}}%'''</big> {{{text|completed <small>(estimate)</small>}}}</p> | ||
<p style="border:1px solid black; padding:1px; overflow:hidden;"><span style="width:{{{1|<noinclude>2</noinclude>0}}}%; height:{{{height|2}}}px; background:#7fff00; float:left;"> </span><span style="width:{{#expr: 100 - ({{{1|<noinclude>2</noinclude>0}}}/{{{total|100}}}) * 100}}%; height:{{{height|2}}}px; background:#ff7f50; float:left;"> </span></p> | |||
<p style="border:1px solid black; padding:1px; overflow:hidden;"><span style="width:{{{1|<noinclude>2</noinclude>0}}}%; height:{{{height|2}}}px; background:#7fff00; float:left;"> </span><span style="width:{{#expr: 100-{{{1|<noinclude>2</noinclude>0}}}}}%; height:{{{height|2}}}px; background:#ff7f50; float:left;"> </span></p> | |||
</div><noinclude>{{Documentation}}</noinclude> | </div><noinclude>{{Documentation}}</noinclude> | ||
2009년 9월 1일 (화) 05:11 판
20% completed (estimate)
모듈:TNT 158번째 줄에서 Lua 오류: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.