Vorlage:Infobox: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Andyg (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Andyg (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 2: | Zeile 2: | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | ||
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} | <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} | ||
<table> | <table>{{#if:{{{param1|}}}|<tr> | ||
<th>Parameter 1</th> | |||
<td>{{{param1}}}</td> | |||
<tr> | </tr>}}{{#if:{{{param2|}}}|<tr> | ||
<th> | |||
<td>{{{ | |||
</tr>}} | |||
{{#if:{{{param2|}}}| | |||
<tr> | |||
<th>Parameter 2</th> | <th>Parameter 2</th> | ||
<td>{{{param2}}}</td> | <td>{{{param2}}}</td> | ||
</tr>}} | </tr>}}{{#if:{{{param3|}}}|<tr> | ||
{{#if:{{{param3|}}}| | |||
<tr> | |||
<th>Parameter 3</th> | <th>Parameter 3</th> | ||
<td>{{{param3}}}</td> | <td>{{{param3}}}</td> | ||
Zeile 35: | Zeile 28: | ||
}, | }, | ||
"image": { | "image": { | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | |||
"param1": { | |||
"type": "wiki-page-name" | |||
" | |||
}, | }, | ||
"param2": { | "param2": { | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"param3": {}, | "param3": {}, | ||
"param4": {}, | "param4": {}, | ||
"param5": { | "param5": {} | ||
} | |||
} | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Version vom 5. Dezember 2019, 13:03 Uhr
Infobox
{{#if:|
[[File:{{{image}}}|300px]]
}}
{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}Parameter 1 | {{{param1}}} |
---|---|
Parameter 2 | {{{param2}}} |
Parameter 3 | {{{param3}}} |
Parameter 4 | {{{param4}}} |
Parameter 5 | {{{param5}}} |
<templatedata> { "params": { "title": { "type": "wiki-template-name", "autovalue": "Vorlage:Infobox" }, "image": { "type": "wiki-file-name" }, "param1": { "type": "wiki-page-name" }, "param2": { "type": "string" }, "param3": {}, "param4": {}, "param5": {} } } </templatedata>