Vorlage:Prozentbalken/Doku
Erscheinungsbild
Vorlage:Dokumentation/Seitenhinweis
Erstellung eines prozentualen Balkens
| ⧼templatedata-doc-param-name⧽ | ⧼templatedata-doc-param-desc⧽ | ⧼templatedata-doc-param-type⧽ | ⧼templatedata-doc-param-status⧽ | |
|---|---|---|---|---|
| Prozentsatz | quote | prozentualer Anteil des Balkens, der hervorgehoben wird (Angabe ohne %) | ⧼templatedata-doc-param-type-number⧽ | ⧼templatedata-doc-param-status-suggested⧽ |
| Breite | breite | Gesamtbreite des Balkens in % oder px | ⧼templatedata-doc-param-type-string⧽ | ⧼templatedata-doc-param-status-optional⧽ |
| Höhe | hoehe | Höhe des Balkens in px (Angabe mit Einheit) | ⧼templatedata-doc-param-type-string⧽ | ⧼templatedata-doc-param-status-optional⧽ |
| Füllfarbe | fill | Farbe des gefüllten Bereichs | ⧼templatedata-doc-param-type-string⧽ | ⧼templatedata-doc-param-status-optional⧽ |
| Hintergrundfarbe | back | Farbe des leeren Bereichs
| ⧼templatedata-doc-param-type-string⧽ | ⧼templatedata-doc-param-status-optional⧽ |
| Rahmenfarbe | stroke | Farbe des Rahmens | ⧼templatedata-doc-param-type-string⧽ | ⧼templatedata-doc-param-status-optional⧽ |
Kopiervorlage
<syntaxhighlight lang="wikitext" copy>
</syntaxhighlight>
Beispiele
Feste Werte
<syntaxhighlight lang="wikitext">
</syntaxhighlight> ergibt:
Ohne Rahmen
<syntaxhighlight lang="wikitext">
</syntaxhighlight> ergibt:
Relative Breite und Nullwert
<syntaxhighlight lang="wikitext">
</syntaxhighlight> ergibt:
Relative Breite und Grenzüberschreitung
quote < 0
<syntaxhighlight lang="wikitext">
</syntaxhighlight> ergibt:
quote > 100
<syntaxhighlight lang="wikitext">
</syntaxhighlight> ergibt:
Eine Gruppe von Balken
| Kandidat | Stimmen | ||
|---|---|---|---|
| Meier |
| ||
| Müller |
| ||
| Michels |
| ||
| Sonstige |
|
<syntaxhighlight lang="wikitext">
| Kandidat | Stimmen | ||
|---|---|---|---|
| Meier |
| ||
| Müller |
| ||
| Michels |
| ||
| Sonstige |
|
</syntaxhighlight> Besser: Vorlage:Balkendiagramm verwenden