Vorlage:Progressbar: Unterschied zwischen den Versionen

Aus OGD Cockpit
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „<noinclude>{#ifexpr:{{{1|}}}<3|<div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:red; height:{{{2|}}}px; margin-top: 0px;"></div>|…“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<noinclude>{#ifexpr:{{{1|}}}<3|<div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:red; height:{{{2|}}}px; margin-top: 0px;"></div>|<div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:blue; height:{{{2|}}}px; margin-top: 0px;"></div>}}</includeonly></noinclude>
<includeonly>{{#switch: {{{1|}}}
<noinclude></noinclude><includeonly>{{#switch: {{{1|}}}
| 0 = <div class="progress"><div class="progress-bar progress-bar-danger" style="width: 10%"> <span class="sr-only">0 - Achtung!</span> </div>
| 0 = <div style="display:inline-block; margin-top: 0px;">[[Bild:Achtung.png|12px|link=|Achtung!]]</div>
  | 1   
  | 1   
  | 2 = <div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:red; height:{{{2|}}}px; margin-top: 0px;"></div>
  | 2 = <div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:red; height:{{{2|}}}px; margin-top: 0px;"></div>
  | 3 = <div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:yellow; height:{{{2|}}}px; margin-top: 0px;"></div>
  | 3 = <div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:yellow; height:{{{2|}}}px; margin-top: 0px;"></div>
  | 4  
  | 4  
  | 5 = <div style="display:inline-block; width:{{#expr: 10 * {{{1|}}}}}px; background:green; height:{{{2|}}}px; margin-top: 0px;"></div>
  | 5 = <div class="progress"><div class="progress-bar progress-bar-danger" style="width: 10%"></div>
<div class="progress-bar progress-bar-warning progress-bar-striped" style="width: 40%"></div>
<div class="progress-bar progress-bar-success" style="width: 50%"><span class="sr-only">5 Punkte</span> </div></div>
  | #default = -
  | #default = -
}}
}}

Version vom 18. November 2015, 20:58 Uhr