Спорт-вики — википедия научного бодибилдинга

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

Материал из SportWiki энциклопедии
Перейти к: навигация, поиск
Строка 1: Строка 1:
<includeonly><div               style="background: {{{box-background|}}};
+
<includeonly><div title="{{{title|{{{progression|<!--
 +
  -->{{#ifeq:{{{mode|}}}|value|{{{current|0}}}|<!--
 +
      -->{{#ifexpr:({{{current|0}}}-{{{min|0}}}&gt;=0) and ({{{max|100}}}-{{{min|0}}}&gt;0)|<!--
 +
        -->{{#expr:(({{{current|0}}}-{{{min|0}}})/({{{max|100}}}-{{{min|0}}}))*100 round 1}}%|0%}}}}}}} {{{desc|}}}}}}"
 +
                        style="background: {{{box-background|}}};
 
                                 border: {{{box-border|0px solid black}}};
 
                                 border: {{{box-border|0px solid black}}};
 
                                 margin: {{{box-margin|1px}}};
 
                                 margin: {{{box-margin|1px}}};
Строка 26: Строка 30:
 
                                 -moz-border-radius: 5px;
 
                                 -moz-border-radius: 5px;
 
                                 text-align: center;"><!--
 
                                 text-align: center;"><!--
                 -->{{{progression-text|{{{progression|}}}}}}</div><!--
+
                 -->{{{progression-text|{{{progression|<!--
 +
                    -->{{#ifeq:{{{mode|}}}|value|{{{current|0}}}|<!--
 +
                    -->{{#ifexpr:({{{current|0}}}-{{{min|0}}}&gt;=0) and ({{{max|100}}}-{{{min|0}}}&gt;0)|<!--
 +
                      -->{{#expr:(({{{current|0}}}-{{{min|0}}})/({{{max|100}}}-{{{min|0}}}))*100 round 1}}%|0%}}}}}}} <!--
 +
                          -->{{{desc|}}}}}}</div><!--
 
                 --><div style="margin: 0;
 
                 --><div style="margin: 0;
 
                                 padding: 0;
 
                                 padding: 0;

Версия 12:11, 22 января 2017