Vorlage:Infobox: Unterschied zwischen den Versionen

Aus VGKB
Zur Navigation springen Zur Suche springen
K (Fix: Kommentar)
(Zeilenvorlage)
Zeile 8: Zeile 8:
 
|-
 
|-
 
<!-- Zeile 1 -->
 
<!-- Zeile 1 -->
{{#if: {{{Feldname1|}}} | {{!}} style="background-color: #e8e8e8; border-top: 1px solid grey; border-right: 1px solid grey; text-align: center; font-weight: 800; padding: 3px; width: 50%;" {{!}} {{{Feldname1|}}}
+
{{Infobox/+|Label={{{Feldname1|}}}|Text={{{Daten1|}}}}}
{{!}} style="border-top: 1px solid grey; padding: 3px; width: 50%;" {{!}} {{{Daten1}}}  
 
{{!}}- | }}
 
 
<!-- Zeile 2 -->
 
<!-- Zeile 2 -->
{{#if: {{{Feldname2|}}} | {{!}} style="background-color: #e8e8e8; border-top: 1px solid grey; border-right: 1px solid grey; text-align: center; font-weight: 800; padding: 3px; width: 50%;" {{!}} {{{Feldname2|}}}
+
{{Infobox/+|Label={{{Feldname2|}}}|Text={{{Daten2}}}}}
{{!}} style="border-top: 1px solid grey; padding: 3px; width: 50%;" {{!}} {{{Daten2}}}  
 
{{!}}- | }}
 
 
<!-- Zeile 3 -->
 
<!-- Zeile 3 -->
{{#if: {{{Feldname3|}}} | {{!}} style="background-color: #e8e8e8; border-top: 1px solid grey; border-right: 1px solid grey; text-align: center; font-weight: 800; padding: 3px; width: 50%;" {{!}} {{{Feldname3|}}}
+
{{Infobox/+|Label={{{Feldname3|}}}|Text={{{Daten3|}}}}}
{{!}} style="border-top: 1px solid grey; padding: 3px; width: 50%;" {{!}} {{{Daten3}}}  
+
<!-- Zeile 4 -->
 +
{{Infobox/+|Label={{{Feldname4|}}}|Text={{{Daten4|}}}}}
 +
<!-- Zeile 5 -->
 +
{{Infobox/+|Label={{{Feldname5|}}}|Text={{{Daten5|}}}}}
 +
<!-- Zeile 6 -->
 +
{{Infobox/+|Label={{{Feldname6|}}}|Text={{{Daten6|}}}}}
 +
<!-- Zeile 7 -->
 +
{{Infobox/+|Label={{{Feldname7|}}}|Text={{{Daten7|}}}}}
 +
<!-- Zeile 8 -->
 +
{{Infobox/+|Label={{{Feldname8|}}}|Text={{{Daten8|}}}}}
 
<!-- Ende -->
 
<!-- Ende -->
 
{{!}}- | }}
 
{{!}}- | }}

Version vom 16. August 2019, 10:21 Uhr

Diese Vorlage generiert Infoboxen.

Beipsiel:

{{Infobox|Titel=Test|Feldname1=Foo|Daten1=Bar|Feldname2=Foo|Daten2=Bar}}

erzeugt:

Test
Foo Bar
Foo Bar