Vorlage:Infobox: Unterschied zwischen den Versionen

Aus Eduwiki
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>
<table>
     {{#if:{{{param1|}}}|
     {{#if:{{{thema|}}}|
<tr>
<tr>
     <th>Themenfeld</th>
     <th>Themenfeld</th>
Zeile 36: Zeile 36:
"type": "wiki-file-name",
"type": "wiki-file-name",
"autovalue": "",
"autovalue": "",
"suggested": true
"suggested": true,
"description": "optionales Bild"
},
},
"param2": {
"param2": {
Zeile 49: Zeile 50:
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true,
"required": true,
"suggested": true
"suggested": true,
"description": "Hier wird das Themfeld angegeben",
"example": "Data Science"
}
}
},
},

Version vom 25. November 2019, 16:24 Uhr

Infobox
{{#if:|
[[File:{{{image}}}|300px]]
}} {{#if:| }} {{#if:| }} {{#if:| }}{{#if:|}}{{#if:|}}
Themenfeld {{{thema}}}
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", "autovalue": "", "suggested": true, "description": "optionales Bild" }, "param2": { "type": "string", "required": true, "suggested": true }, "param3": {}, "param4": {}, "param5": {}, "thema": { "type": "wiki-page-name", "required": true, "suggested": true, "description": "Hier wird das Themfeld angegeben", "example": "Data Science" } }, "paramOrder": [ "title", "image", "thema", "param2", "param3", "param4", "param5" ] } </templatedata>