imported>Born2bgratis Grays from the [https://design.wikimedia.org/style-guide/visual-style_colors.html Wikimedia palette] and a green that’s analogous to Green50 |
imported>TheGoodAndHolyLord Added condition to prevent bar from displaying more than 100% width |
||
| 13번째 줄: | 13번째 줄: | ||
}} | }} | ||
<p style="border:{{{border|1px solid #c8ccd1}}}; padding:{{{padding|1px}}}; overflow:hidden;"> | <p style="border:{{{border|1px solid #c8ccd1}}}; padding:{{{padding|1px}}}; overflow:hidden;"> | ||
<span style=" | <span style=" <!-- if percentage is higher than 100%, show all green bar --> | ||
width: {{#expr: {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%; | width: {{#ifexpr: {{#expr:{{{1|0}}}/{{{total|100}}}}}>1 | 100 | {{#expr: {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}}}%; | ||
height: {{{height|2}}}px; | height: {{{height|2}}}px; | ||
background:{{{color1|#00af32}}}; | background:{{{color1|#00af32}}}; | ||
float:left; | float:left; | ||
"> </span> | "> </span> | ||
<span style=" | <span style=" <!-- if percentage is higher than 100%, show no grey bar --> | ||
width:{{#expr: 100 - {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%; | width: {{#ifexpr: {{#expr:{{{1|0}}}/{{{total|100}}}}}>1 | 0 | {{#expr: 100 - {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}}}%; | ||
height:{{{height|2}}}px; | height: {{{height|2}}}px; | ||
background:{{{color2|#eaecf0}}}; | background:{{{color2|#eaecf0}}}; | ||
float:left; | float:left; | ||
2021년 5월 19일 (수) 02:14 기준 최신판
20% completed (estimate)
모듈:TNT 158번째 줄에서 Lua 오류: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.