Vorlage:InfoCard/doc: Unterschied zwischen den Versionen
Aus HITGuard User Guide
Weitere Optionen
Die Seite wurde neu angelegt: „{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> {{Uses TemplateStyles|Template:InfoCard/styles.css}} <templatedata> { "description": { "en": "This template creates a styled information card.", "cs": "Tato šablona vytvoří stylizovanou informační kartu.", "tr": "Bu şablon, tasarlanmış bir bilgi kartı oluşturur." }, "params": { "heading": { "label": { "en": "Heading", "cs": "Nadpis", "tr":…“ |
Keine Bearbeitungszusammenfassung |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | |||
{{Vorlage:InfoCard/styles.css}} | |||
<templatedata> | |||
{ | |||
"description": { | |||
"en": "This template creates a styled information card.", | |||
"cs": "Tato šablona vytvoří stylizovanou informační kartu.", | |||
"tr": "Bu şablon, tasarlanmış bir bilgi kartı oluşturur." | |||
}, | |||
"params": { | |||
"heading": { | |||
"label": { | |||
"en": "Heading", | |||
"cs": "Nadpis", | |||
"tr": "Başlık" | |||
}, | |||
"description": { | |||
"en": "The card's title.", | |||
"cs": "Název karty.", | |||
"tr": "Kartın başlığı." | |||
}, | |||
"type": "content", | |||
"required": true | |||
}, | |||
"content": { | |||
"label": { | |||
"en": "Content", | |||
"cs": "Obsah", | |||
"tr": "İçerik" | |||
}, | |||
"description": { | |||
"en": "The card's content.", | |||
"cs": "Obsah karty.", | |||
"tr": "Kartın içeriği" | |||
}, | |||
"type": "content", | |||
"required": true | |||
}, | |||
"class": { | |||
"label": { | |||
"en": "Class(es)", | |||
"cs": "Třída/y", | |||
"tr": "Sınıf(lar)" | |||
}, | |||
"description": { | |||
"en": "Additional CSS class(es) for the whole box.", | |||
"cs": "Další třída/y CSS pro celý box.", | |||
"tr": "Tüm kutu için ek CSS sınıf(lar)ı." | |||
}, | |||
"type": "line" | |||
}, | |||
"footer": { | |||
"label": "Footer", | |||
"description": "Optional footer area.", | |||
"type": "content" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"heading", | |||
"content", | |||
"footer", | |||
"class" | |||
] | |||
} | |||
</templatedata> | |||
Aktuelle Version vom 17. Februar 2023, 14:52 Uhr
.wiki-template-infocard {
border: 1px solid #ccc; box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15 ); border-radius: 2px; padding: 1em; display: flex; flex-direction: column; justify-content: space-between; align-content: stretch;
}
.wiki-template-infocard-title {
padding: 0 0 0.5625em 0; margin: 0;
}
.wiki-template-infocard-content {
clear: both; flex: 1 1 auto;
}
.wiki-template-infocard-footer {
padding-top: 1.5em;
}
This template creates a styled information card.
| Parameter | Beschreibung | Typ | Status | |
|---|---|---|---|---|
| Heading | heading | The card's title. | Wikitext | erforderlich |
| Content | content | The card's content. | Wikitext | erforderlich |
| Footer | footer | Optional footer area. | Wikitext | optional |
| Class(es) | class | Additional CSS class(es) for the whole box. | Einzeiliger Text | optional |