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

Материал из Куклопедии
(Новая страница: «<noinclude> <pre> {{Progressbar |progress-color= |text-align= |caption= |progress= |title= |width= |clear= |float= |background= |border-color= }} </pre> Внеш…»)
 
Нет описания правки
Строка 1: Строка 1:
<noinclude>
<includeonly>{{#vardefine: %
<pre>
| {{#ifexpr: {{{1|0}}} >= {{{2|0}}} | 100 | {{#expr: 100 * {{{1|0}}} / {{{2|0}}} round 2 }} }}%
{{Progressbar
}}<div style="margin: 0 auto; width: {{#if: {{{width|}}} | {{{width}}} | 50% }}; text-align: center; {{{style|}}}">
|progress-color=
{{#if: {{{notext|}}}
|text-align=
|
|caption=
| <p style="margin: 0; {{{textstyle|}}}">{{
|progress=
  #if: {{{text|}}}
|title=
  | {{#replace: {{#replace: {{#replace: {{{text}}} | $1 | {{{1|0}}} }} | $2 | {{{2|0}}} }} | $% | {{#var: % }} }}
|width=
  | {{{1|0}}} of {{{2|0}}} {{#if: {{{type|}}} | {{{type}}} | pages }} have been completed
|clear=
  }}</p>
|float=
|background=
|border-color=
}}
}}
</pre>
<div style="border: 1px solid #808080; background-color: #E2E2E2; padding: 1px; {{{barstyle|}}}" title="{{#var: % }}">
Внешний вид: {{Progressbar}}
<div style="background-color: #5FDB00; height: 6px; width: {{#var: % }}; {{{completedstyle|}}}"><br></div>
 
</div>
</noinclude>
</div></includeonly><noinclude>
<includeonly><div title="{{{title|}}}" style="position: relative; width:{{{width|200px}}}; clear:{{{clear|none}}}; float:{{{float|none}}};"><!--
{{documentation}}
--><div style="background: {{{background|white}}}; border: {{{border-width|1px}}} solid {{{border-color|#669900}}}; position: absolute; height: 90%; top: 5%; width:100%">&nbsp;</div><!--
<!-- Put categories/interwiki on the documentation page -->
--><div style="background:{{{progress-color|#c2c2c2}}}; width:{{{progress|50%}}}; position: absolute; height:90%; top:5%; border: {{{border-width|1px}}} solid {{{border-color|#669900}}}; border-right-width:0px;">&nbsp;</div><!--
--><div style="width:{{{width|200px}}}; text-align: {{{text-align|center}}}; position: absolute; top:5%; white-space:nowrap; padding-left: 3px; padding-right: 3px; text-overflow:ellipsis;">{{{caption|Caption}}}</div>&nbsp;<span style="position: absolute; top:5%; right: 0; color: #669900;">'''{{{progress|50%}}}'''</span><!--
--></div></includeonly>

Версия от 08:58, 1 марта 2020