Открыть главное меню

SportWiki энциклопедия β

Изменения

Шаблон:Progress bar

955 байт убрано, 7 лет назад
Нет описания правки
<includeonly><div title="{{{#vardefine: lpbCurrent title| {{#ifexpr: {{{currentprogression|0}}} <!-- -- >{{#ifeq:{max|100}}} &gt; 0 | {{{maxmode|100}}} | value|{{{current|0}}} }}}}{{#vardefine: lpbProgression |<!-- {{{progression | -->{{#ifexpr: ({{#var:lpbCurrent{current|0}}} - {{{min|0}}} &gt;= 0) and ({{{max|100}}} - {{{min|0}}} &gt; 0) |<!-- -->{{#expr: (({{#var:lpbCurrent{current|0}}} - {{{min|0}}}) / ({{{max|100}}} - {{{min|0}}})) * 100 round 1}}% | 0% }} }}}}}{{#vardefine: lpbTooltipDisplayMode | {{{tooltip-display-mode desc| {{#if: {{#var:pb-tooltip-display-mode}} | {{#var:pb-tooltip-display-mode}} | percentage }}" }}}}}{{#vardefine style="background: lpbTooltipText | {{#switch: {{#var:lpbTooltipDisplayMode}} box-background| percentage = {{formatnum:{{#var:lpbProgression}}}}&nbsp; | current = {{formatnum border:{{{currentbox-border|0}1px solid black}}}}&nbsp; | remaining = {{formatnum:{{#expr margin: {{{max|100}}} box- {{{currentmargin|0}}}1px}}}}&nbsp; | ratio = {{formatnum padding:{{{currentbox-padding|01px}}}}} / {{formatnum; width:{{{maxbox-width|100%}}}}}&nbsp; | }} color: {{{tooltip-text | {{#if: {{#var:pb-tooltip-text}} color| {{#var:pb-tooltip-textffffff}} | }}; }}}}}{{ text-shadow: 1px 1px #vardefine: lpbBarDisplayMode |000000; {{{bar font-display-mode | {{#ifsize: {{#var:pb-bar-display-mode}} | {{#var:pbtext-bar-display-mode}} size| percentage }} small}}};}}{{#vardefine font-weight: lpbBarText | {{#switch: {{#var:lpbBarDisplayMode}} text-weight| percentage = {{formatnum:{{#var:lpbProgressionbold}}}}&nbsp; | current = {{formatnum line-height:1.25em; {{{currentbox-style|0}}}}}&nbsp; |"><!-- remaining --><div style= {{formatnum"margin:{{#expr: {{{max|0}}} - {{{current|0}}}}}}}&nbsp; | ratio = {{formatnum padding:{{{current|0}}}}} / {{formatnum:{{{max|100}}}}}&nbsp; | }}{{{bar-text | {{#if position: {{#var:pbrelative;"><!-bar-text}} | {{#var:pb -bar-text}} |><div style="margin: 0; }} padding: 0; }}} width: 100%;}}{{ position: absolute;#vardefine top: lpbBarBackground |0; {{{bar z-index: 1; background |: transparent; {{ -ms-linear-gradient(top, #if: {{4b4b4b 0%, #var:pb-bar-background}} | {{919191 45%, #var:pb-bar-background}} | aeaeae 50%, #AAD5FF }} }}}}}{{939393 55%, #vardefine: lpbBarCustomStyle |aaaaaa 100%); {{{bar linear-custom-style | {{gradient(to bottom, #4b4b4b 0%, #919191 45%, #aeaeae 50%, #if: {{939393 55%, #varaaaaaa 100%); border-radius:pb5px; -barwebkit-customborder-style}} |radius: 5px; {{#var:pb -barmoz-customborder-style}} | }} }}}}}{{#vardefineradius: lpbBoxBackground |5px; {{{box text-background | {{#ifalign: {{#var:pbcenter;"><!-box-background}} | {{#var:pb -box-background}} | white }} }}}}}>{{#vardefine: lpbBoxBorder | {{{boxprogression-border text| {{#if: {{#var:pbprogression|<!-box-border}} | {{#var:pb -box-border}} | 1px solid black }} }}}}}>{{#vardefineifeq: lpbBoxMargin | {{{box-margin mode| {{#if: {{#var:pb-box-margin}} }|value| {{#var:pb-box-margin}} {current| 1px }} }}0}}}{{#vardefine: lpbBoxPadding |<!-- {{{box --padding | >{{#ififexpr: ({{#var:pb-box-padding}} | {{#var:pb-box-padding}} current| 1px 0}} }}}}}-{{#vardefine: lpbBoxWidth | {{{box-width min| {{#if: {{#var:pb-box-width0}}} | &gt;=0) and ({{{#var:pb-box-width}} max| 100% }} }}-{{{min|0}}}{{#vardefine: lpbBoxCustomStyle &gt;0)|<!-- {{{box -custom-style | >{{#ifexpr: (({{#var:pb-box-custom-style{current|0}}} | -{{{#var:pb-box-custom-style}} min| 0}} })/({{{max|100}}}}{{#vardefine: lpbTextColor | -{{{text-color min| {{#if: {{#var:pb-text-color0}}} | {{#var:pb-text-color))*100 round 1}} %| black 0%}} }}}}}{{<!--#vardefine: lpbTextSize | {{{text --size | >{{#if: {{#var:pb-text-size}} desc| {{#var:pb-text-size}} | small }} }}}</div><!--}}{{ --><div style="margin: 0;#vardefine padding: lpbTextWeight |0; width: {{{textprogression|<!--weight | -->{{#ififexpr: ({{#var:pb-text-weight{current|0}}} | -{{{#var:pb-text-weight}} min| bold 0}} }&gt;=0) and ({{{max|100}}}}-{{#if: {{{titlemin|0}}} &gt;0)| <span style="font!-- -size:{{#var:lpbTextSize}};font-weight:>{{#varexpr:lpbTextWeight}}">(({{{titlecurrent|0}}}</span> |}}<div role="progressbar" aria-valuemin="{{{min|0}}}" aria-valuemax=")/({{{max|100}}}" aria-valuenow="{{{current|{{{progressionmin|0}}}))*100 round 1}}%|0%}" aria-valuetext="{{#var:lpbBarText}}" title="{{#var:lpbTooltipText}}" style="; background:{{#var:lpbBoxBackground}};border:{{#var:lpbBoxBorderbar-background|transparent}};margin:{{#var:lpbBoxMargin}};padding:{{#var border-radius:lpbBoxPadding}}5px;width -webkit-border-radius:{{#var:lpbBoxWidth}}5px;color:{{#var:lpbTextColor}};font -moz-size:{{#var:lpbTextSize}};fontborder-weight:{{#varradius:lpbTextWeight}}5px;line- height:1.25em; {{{#var:lpbBoxCustomStyle}}"><div bar-style="margin:0;padding:0;position:relative;"><div style="margin:0;padding:0;width:{{#var:lpbProgression}};background:{{#var:lpbBarBackground|}};height:1.25em;{{#var:lpbBarCustomStyle}}">&nbsp;</div><div style="margin:0;padding:0;width:100%;position:absolute;top:0;z-index:1;background-color:transparent;text-align:center;">{{#var:lpbBarText}}</div></div></div></includeonly><noinclude>

SportWiki энциклопедия

Партнёр магазин спортивного питания Спортфуд, где представлена сертифицированная продукция