Шаблон:Progression: различия между версиями

нет описания правки
Нет описания правки
Нет описания правки
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1: Строка 1:
<includeonly>
<div style="
 
  width:{{{width|75%}}};
{{#vardefine: % | {{#ifexpr: {{{1|0}}} >= {{{2|0}}} | 100 | {{#expr: 100 * {{{1|0}}} / {{{2|0}}} round 2 }} }}%
{{#ifeq: {{{center|yes}}} | yes |
}}<div style="margin: 0 auto; width: {{#if: {{{width|}}} | {{{width}}} | 50% }}; text-align: center; {{{style|}}}">
  margin:auto;
{{#if: {{{notext|}}}
  text-align:center;}}">
|
{{#ifeq: {{{header|yes}}} | yes
| <p style="margin: 0; {{{textstyle|}}}">{{
| <p>
   #if: {{{text|}}}
   '''{{#expr: ( {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}}) * 100 round 1}}%'''
  | {{#replace: {{#replace: {{#replace: {{{text}}} | $1 | {{{1|0}}} }} | $2 | {{{2|0}}} }} | $% | {{#var: % }} }}
  {{{text|завершено <small>}}}
  | {{{1|0}}} of {{{2|0}}} {{#if: {{{type|}}} | {{{type}}} | pages }} have been completed
   </p>
   }}</p>
}}
}}
<div style="border: 1px solid #808080; background-color: #E2E2E2; padding: 1px; {{{barstyle|}}}" title="{{#var: % }}">
<p style="border:{{{border|1px solid #c8ccd1}}}; padding:{{{padding|1px}}}; overflow:hidden;">
<div style="background-color: #5FDB00; height: 6px; width: {{#var: % }}; {{{completedstyle|}}}"><br></div>
  <span style="
</div>
    width: {{#expr: {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%;
</div></includeonly><noinclude>
    height: {{{height|2}}}px;
    background:{{{color1|#00af32}}};
    float:left;
    ">&nbsp;</span>
  <span style="
    width:{{#expr: 100 - {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} * 100}}%;
    height:{{{height|2}}}px;
    background:{{{color2|#eaecf0}}};
    float:left;
    ">&nbsp;</span>
12 472

правки