Šablona:BAR/hunger: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Přidaný obsah Smazaný obsah
Bez shrnutí editace |
Bez shrnutí editace |
||
Řádek 52: | Řádek 52: | ||
</div></div> |
</div></div> |
||
}} |
}} |
||
|#default={{ |
|#default={{ERROR|Nesprávný vstup.}} |
||
|{{#ifexpr: <includeonly>{{{1}}}>{{{2}}}</includeonly> | {{ERROR|Hodnota přesahuje 100%.}} | {{#ifeq: {{{reverse}}} | y |
|||
|<div style="text-align: center;"><div style="display: inline-block; line-height: 1;"> |
|||
<div style="line-height: 1.25em;">{{#switch: {{{4}}} | %={{#expr: floor(100*{{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}) }}% | n={{BLANK}} | v={{{1}}} | v%={{{1}}}% | {{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}}}</div> |
|||
<div style="{{#ifeq:{{{border}}}|n||border: 1px solid #A2A9B1;}} display: inline-block; width: 1.1em; vertical-align: text-bottom; height: 100px;"> |
|||
<div style="background: {{#if: {{{3|}}} | {{{3}}} | #A2A9B1}}; width: 100%; height: {{#expr: (floor(100*{{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}})) }}%;"></div> |
|||
</div> |
|||
</div></div> |
|||
|<div style="text-align: center;"><div style="display: inline-block; line-height: 1;"> |
|||
<div style="{{#ifeq:{{{border}}}|n||border: 1px solid #A2A9B1;}} display: inline-block; width: 1.1em; vertical-align: text-bottom; height: 100px;"> |
|||
<div style="background: inherit; width: 100%; height: {{#expr: (100-floor(100*{{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}})) }}%;"></div> |
|||
<div style="background: {{#if: {{{3|}}} | {{{3}}} | #A2A9B1}}; width: 100%; height: {{#expr: floor(100*{{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}) }}%;"></div> |
|||
</div> |
|||
<div style="line-height: 1.25em;">{{#switch: {{{4}}} | %={{#expr: floor(100*{{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}) }}% | n={{BLANK}} | v={{{1}}} | v%={{{1}}}% | {{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}}}</div> |
|||
</div></div>}} |
|||
}} |
|||
|{{#ifexpr: <includeonly>{{{1}}}>{{{2}}}</includeonly> | {{ERROR|Hodnota přesahuje 100%.}} | <div style="display: inline-block; line-height: 1;"> |
|||
<div style="{{#ifeq:{{{border}}}|n||border: 1px solid #A2A9B1;}} display: inline-block; height: 1.1em; vertical-align: text-bottom; width: 100px;"> |
|||
<div style="background: {{#if: {{{3|}}} | {{{3}}} | #A2A9B1}}; height: 100%; width: {{#expr: floor(100*{{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}) }}%;"></div> |
|||
</div> {{#switch: {{{4}}} | %={{#expr: floor(100*{{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}) }}% | n={{BLANK}} | v={{{1}}} | v%={{{1}}}% | {{#if:{{{1|}}}|{{{1}}}|50}}/{{#if:{{{2|}}}|{{{2}}}|100}}}} |
|||
</div>}} |
|||
}} |
|||
}}<noinclude><div class="documentation"> |
}}<noinclude><div class="documentation"> |
||
== Dokumentace == |
== Dokumentace == |