Vorlage:Tabelle: Unterschied zwischen den Versionen

[gesichtete Version][gesichtete Version]
(Die Seite wurde neu angelegt: „<includeonly> {| {{Prettytable| {{#if: {{{width|}}} | width:{{{width}}}}}}} |- {{Hl3}} align="center" {{#forargs: Head | key | value | {{#ifexpr: {{#var: key}}…“)
 
Zeile 1: Zeile 1:
<includeonly>
+
<includeonly>{{#vardefine: i | 1}}
 
{| {{Prettytable| {{#if: {{{width|}}} | width:{{{width}}}}}}}
 
{| {{Prettytable| {{#if: {{{width|}}} | width:{{{width}}}}}}}
 
|- {{Hl3}} align="center"
 
|- {{Hl3}} align="center"
{{#forargs: Head | key | value | {{#ifexpr: {{#var: key}} > 1 | ! }}!{{#var: value }} }}
+
{{#while:
{{#forargs: Zeile | key | value | {{#ifexpr: {{#var: key}} > 1 | {{!}} }}{{#var: value }} }}
+
| {{#if: {{{ {{#var: i}}| }}} | true }}
 +
| test
 +
{{{ {{#var: i}} }}}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}  
 +
}}
 
|}
 
|}
</includeonly>
+
</includeonly><noinclude>
<noinclude>
 
 
{{Tabelle
 
{{Tabelle
 
|width=50%
 
|width=50%
|Head1=Test
+
|{{Tabelle/Row|Head=True|Test1|Test2|Test3}}
|Head2=Test2
+
|{{Tabelle/Row|Center=True|Wert1|Wert2|Wert3}}
|Head3=Test3
 
|Zeile1= {{Tabelle/Row|Format = align="center"|Wert1  = 1|Wert2  = 2|Wert3  = 3}}
 
|Zeile2= {{Tabelle/Row|Format = align="center"|Wert1 = 1|Wert2 = 2|Wert3 = 3}}
 
 
}}
 
}}
{{Tabelle/Row|Format = align="center"|Wert1  = 1|Wert2  = 2|Wert3  = 3}}
 
 
</noinclude>
 
</noinclude>
 +
<!--
 +
{{#forargs: Head | key | value | {{#ifexpr: {{#var: key}} > 1 | ! }}!{{#var: value }} }}
 +
{{#forargs: Zeile | key | value | {{#ifexpr: {{#var: key}} > 1 | {{!}} }}{{#var: value }} }} -->

Version vom 17. Februar 2023, 09:55 Uhr