Шаблон:Percentage bar: различия между версиями
Перейти к навигации
Перейти к поиску
Содержимое удалено Содержимое добавлено
Platel (обсуждение | вклад) Нет описания правки |
Platel (обсуждение | вклад) Нет описания правки |
||
Строка 1: | Строка 1: | ||
<div style="position:relative; border: {{{border-width|1px}}} solid {{{border-color|#000}}}; background-color: {{{background-color|#fff}}}; width: {{digits|{{{width|100}}}}}{{#if:{{str endswith|{{{width}}}|%}}|%|px}}; max-width: 100%; height: 1.5em;"><div style="position: absolute; background-color:{{{c|#{{{hex|{{{3|DBDBDB}}}}}}}}}; width: {{#expr:floor({{#invoke:String|replace|source={{{1|50}}}|pattern=[a-zA-Z]+|plain=false}})}}%; height: 1. |
<div style="position:relative; border: {{{border-width|1px}}} solid {{{border-color|#000}}}; background-color: {{{background-color|#fff}}}; width: {{digits|{{{width|100}}}}}{{#if:{{str endswith|{{{width}}}|%}}|%|px}}; max-width: 100%; height: 1.5em;"><div style="position: absolute; background-color:{{{c|#{{{hex|{{{3|DBDBDB}}}}}}}}}; width: {{#expr:floor({{#invoke:String|replace|source={{{1|50}}}|pattern=[a-zA-Z]+|plain=false}})}}%; height: 1.4em;"></div><div style="position: absolute; font-weight: {{{weight|normal}}}; width:100%; height: 1.5em; text-align: {{{align|center}}}; color: {{{color|#000}}};">{{{2|{{formatnum:{{{1|50}}}}}%}}}</div></div> |
Версия от 10:05, 11 февраля 2023
50%