Vorlage:Infobox: Unterschied zwischen den Versionen
Aus Unterrichtsmaterial
Andyg (Diskussion | Beiträge) |
Andyg (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
<div class="infobox"> | <div class="infobox"> | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| | ||
− | <div class="infobox-image">[[ | + | <div class="infobox-image">[[{{{file}}}|300px]]</div>}} |
− | <table>{{#if:{{{ | + | <table> |
− | <th> | + | {{#if:{{{thema|}}}| |
− | <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>}}{{#if:{{{param3|}}}|<tr> | + | </tr>}} |
+ | {{#if:{{{param3|}}}| | ||
+ | <tr> | ||
<th>Parameter 3</th> | <th>Parameter 3</th> | ||
<td>{{{param3}}}</td> | <td>{{{param3}}}</td> | ||
Zeile 27: | Zeile 33: | ||
"autovalue": "{{FULLPAGENAME}}" | "autovalue": "{{FULLPAGENAME}}" | ||
}, | }, | ||
− | " | + | "file": { |
− | "type": "wiki- | + | "type": "wiki-page-name", |
− | + | "example": "Roadmap.JPG", | |
− | + | "required": true, | |
− | " | + | "suggested": true, |
+ | "description": "Hier wird ein Bild eingefügt", | ||
+ | "example": "Tippe Datei: Für Vorschläge", | ||
+ | "autovalue": "" | ||
}, | }, | ||
"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", | ||
+ | "autovalue": "" | ||
+ | } | ||
+ | }, | ||
+ | "paramOrder": [ | ||
+ | "title", | ||
+ | "file", | ||
+ | "thema", | ||
+ | "param2", | ||
+ | "param3", | ||
+ | "param4", | ||
+ | "param5" | ||
+ | ], | ||
+ | "description": "Die Vorlage für eine right-floating Infobox" | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Version vom 5. Dezember 2019, 14:03 Uhr
Infobox
Die Vorlage für eine right-floating Infobox
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Title | title | keine Beschreibung
| Vorlage | optional |
File | file | Hier wird ein Bild eingefügt
| Seite | erforderlich |
Thema | thema | Hier wird das Themfeld angegeben
| Seite | erforderlich |
Param2 | param2 | keine Beschreibung | Zeichenfolge | erforderlich |
Param3 | param3 | keine Beschreibung | Unbekannt | optional |
Param4 | param4 | keine Beschreibung | Unbekannt | optional |
Param5 | param5 | keine Beschreibung | Unbekannt | optional |