Vorlage:Infobox: Unterschied zwischen den Versionen

Aus Eduwiki
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
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>
    {{#if:{{{thema|}}}|
     <th>Parameter 1</th>
<hline>
     <td>{{{param1}}}</td>
<tr>
</tr>}}{{#if:{{{param2|}}}|<tr>
     <th>Themenfeld</th>
     <td>{{{thema}}}</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"
"autovalue": "",
},
"suggested": true,
"param1": {
"description": "optionales Bild",
"type": "wiki-page-name"
"default": "Datei:Roadmap",
"required": true
},
},
"param2": {
"param2": {
"type": "string",
"type": "string"
"required": true,
"suggested": true
},
},
"param3": {},
"param3": {},
"param4": {},
"param4": {},
"param5": {},
"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>
</templatedata>
</noinclude>
</noinclude>

Version vom 5. Dezember 2019, 12: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>