Šablona:Infobox - Podíl mandátů: Porovnání verzí

Z Alyrpedia
Skočit na navigaci Skočit na vyhledávání
Bez shrnutí editace
Bez shrnutí editace
Řádek 1: Řádek 1:
<div style="{{#ifeq:{{{width|}}}|auto||width: {{#iferror:{{#expr:{{{width|}}}}}|{{{width}}}|{{{width|100}}}px}};}}"><span class="nowrap">{{formatnum:{{{1|50}}}}} / {{formatnum:{{{2|100}}}}}{{#if:{{{per|}}}|&emsp;({{#expr:(({{{1|50}}}/{{{2|100}}})*100) round (-1*{{min|0|{{Order of magnitude|{{#expr:({{{1|50}}}/{{{2|100}}})*100}}}}}}) }}%)}}{{{ref|}}}</span><div role="img" style="{{#ifeq:{{{border|{{{border-color|}}}}}}|none||box-sizing: border-box; border: 1px solid {{{border|{{{border-color|#aaa}}}}}};}} {{#if:{{{background-color|}}}|background-color: {{{background-color}}};}} height: 1.15em; position: relative;">
<div style="
<div style="background-color: {{#if:{{Both|{{{4|}}}|{{{5|}}}}}
  display: inline-block;
| rgb({{#expr:255*{{{3|255}}}}}, {{#expr:255*{{{4|0}}}}}, {{#expr:255*{{{5|0}}}}})
  line-height: {{#ifeq: {{{vertikálně|ne}}} | ne | 1 | 1.3 }};
| {{{hex|{{{3|#CCCCCC}}}}}}
" class="
}}; width: {{#expr:(({{{1|50}}}/{{{2|100}}})*100) round (-1*{{min|0|{{Order of magnitude|{{#expr:({{{1|50}}}/{{{2|100}}})*100}}}}}}) }}%; height: 100%;"></div></div></div><noinclude>
  nowrap
{{Documentation}}</noinclude>
">{{#ifeq: {{{vertikálně|ne}}} | ne || <span
  >{{Osekat|{{{1<noinclude>|50</noinclude>}}}}}</span><span style="
    margin-left: .25em;
  ">/</span><span style="
    margin-left: .25em;
  ">{{Osekat|{{{2<noinclude>|100</noinclude>}}}}}</span><br> }}<div style="
    border: 1px solid #aaa;
    display: inline-block;
    height: 1.1em;
    vertical-align: text-bottom;
    width: 100px;
  "><div style="
      background: {{#if: {{{hex|}}} | {{{hex}}} | rgb({{#expr: floor(255*{{{3|.75}}}) }}, {{#expr: floor(255*{{{4|.75}}}) }}, {{#expr: floor(255*{{{5|.75}}}) }}) }};
      height: 100%;
      width: {{#expr: floor(100*{{{1<noinclude>|50</noinclude>}}}/{{{2<noinclude>|100</noinclude>}}}) }}%;
    "></div></div>{{#ifeq: {{{vertikálně|ne}}} | ne | <span style="
    margin-left: .5em;
  ">{{Osekat|{{{1<noinclude>|50</noinclude>}}}}}</span><span style="
    margin-left: .25em;
  ">/</span><span style="
    margin-left: .25em;
  ">{{Osekat|{{{2<noinclude>|100</noinclude>}}}}}</span> }}
</div><noinclude>

Verze z 23. 11. 2023, 15:59

50/100