Vorlage:Infobox Veranstaltung: Unterschied zwischen den Versionen
Aus Hist. Verein Herne / Wanne-Eickel
Inhalt gelöscht Inhalt hinzugefügt
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<includeonly><templatestyles src="Vorlage:Infobox Veranstaltung/styles.css" /> |
|||
{| align=right cellspacing="5" cellpadding="5" style="border: 1px solid #CCC;background: #ffffff; font-size: 85%; margin-left: 20px; margin-right: 20px; margin-bottom: 20px; width: 450;box-shadow: 2px 4px 10px 4px grey;" |
|||
<div class="ibvst"> |
|||
| |
|||
{| border="0" cellspacing=0 cellpadding=0 width="100%" style="vertical-align: top;" |
|||
<div class="ibvst__header">{{{Name|{{PAGENAME}}}}}</div> |
|||
! colspan="2" align=center style="height: 50px; text-align: center; font-size: larger; background: #ffd700" | {{#if: {{{Name|}}} | {{{Name}}} | Überblick }} |
|||
|- |
|||
{{#if:{{{Bild|}}} |
<div class="ibvst__hero">{{#if: {{{Bild|}}} |
||
| {{{Bild}}} |
|||
{{!}}colspan="2" style="vertical-align: top; border: none;margin-top: 20px; margin-left: 20px; margin-right: 20px; margin-bottom: 20px" {{!}} {{{Bild}}} |[[Datei:Nochkeinbild.png|400px|center]] |
|||
| [[Datei:Nochkeinbild.png|400px|center]] |
|||
| ⚫ | |||
| <div class="ibvst__caption">{{{Bildinfo}}}</div> |
|||
}} |
}} |
||
|- |
|||
{{#if: {{{ |
<div class="ibvst__body">{{#if: {{{Text|}}} |
||
| <div class="ibvst__lead">{{{Text}}}</div> |
|||
{{!}} style="vertical-align: top;padding-left: 2em;padding-top: 0.5em;" {{!}} '''Ort:''' |
|||
{{!}} style="text-align: left;padding-top: 0.5em;" {{!}} {{{Ort}}} |
|||
}} |
}} |
||
|- |
|||
| ⚫ | |||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Zeitraum:''' |
|||
{{!}} style="text-align: left;" {{!}} {{{Zeitraum}}} |
|||
}} |
|||
|- |
|||
{{#if: {{{Art|}}}| |
|||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Art:''' |
|||
{{!}} style="text-align: left;" {{!}} {{{Art}}} |
|||
}} |
|||
|- |
|||
{{#if: {{{Genre|}}}| |
|||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Genre:''' |
|||
{{!}} style="text-align: left;" {{!}} {{{Genre}}} |
|||
}} |
|||
|- |
|||
{{#if: {{{Besucher|}}}| |
|||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Besucher:''' |
|||
{{!}} style="text-align: left;" {{!}} {{{Besucher}}} |
|||
}} |
|||
|- |
|||
{{#if: {{{Veranstalter|}}}| |
|||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Veranstalter:''' |
|||
{{!}} style="text-align: left;" {{!}} {{{Veranstalter}}} |
|||
}} |
|||
|- |
|||
{{#if: {{{Webseite|}}}| |
|||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Webseite:''' |
|||
{{!}} style="text-align: left;" {{!}} {{{Webseite}}} |
|||
}} |
|||
|- |
|||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Letze Änderung:''' |
|||
{{!}} style="text-align: left;" {{!}}{{REVISIONDAY2}}.{{REVISIONMONTH}}.{{REVISIONYEAR}} |
|||
|- |
|||
{{!}} style="vertical-align: top;padding-left: 2em;" {{!}} '''Geändert von:''' |
|||
{{!}} style="text-align: left;" {{!}}[[Benutzer:{{REVISIONUSER}}|{{REVISIONUSER}}]] |
|||
|} |
|||
|} |
|||
| ⚫ | |||
Diese Vorlage dient zur Darstellung von Veranstaltungsinformationen. |
|||
Kopiere den folgenden Code in den Artikel und fülle die Parameter aus. |
|||
| ⚫ | |||
<div class="ibvst__data">{{#if: {{{Zeitraum|}}}| |
|||
| ⚫ | |||
<div class="ibvst__row"><div class="ibvst__icon">📅</div><div class="ibvst__field"><span class="ibvst__label">Zeitraum</span><span class="ibvst__value">{{{Zeitraum}}}</span></div></div>}}{{#if: {{{Ort|}}}| |
|||
<div class="ibvst__row"><div class="ibvst__icon">📍</div><div class="ibvst__field"><span class="ibvst__label">Ort</span><span class="ibvst__value">{{{Ort}}}</span></div></div>}}{{#if: {{{Art|}}}| |
|||
<div class="ibvst__row"><div class="ibvst__icon">🎪</div><div class="ibvst__field"><span class="ibvst__label">Art</span><span class="ibvst__value">{{{Art}}}</span></div></div>}}{{#if: {{{Genre|}}}| |
|||
<div class="ibvst__row"><div class="ibvst__icon">🎵</div><div class="ibvst__field"><span class="ibvst__label">Genre</span><span class="ibvst__value">{{{Genre}}}</span></div></div>}}{{#if: {{{Besucher|}}}| |
|||
<div class="ibvst__row"><div class="ibvst__icon">👥</div><div class="ibvst__field"><span class="ibvst__label">Besucher</span><span class="ibvst__value">{{{Besucher}}}</span></div></div>}}{{#if: {{{Veranstalter|}}}| |
|||
<div class="ibvst__row"><div class="ibvst__icon">🏢</div><div class="ibvst__field"><span class="ibvst__label">Veranstalter</span><span class="ibvst__value">{{{Veranstalter}}}</span></div></div>}}{{#if: {{{Webseite|}}}| |
|||
<div class="ibvst__row"><div class="ibvst__icon">🌐</div><div class="ibvst__field"><span class="ibvst__label">Webseite</span><span class="ibvst__value">{{{Webseite}}}</span></div></div>}} |
|||
| ⚫ | |||
<div class="ibvst__footer"><span>aktualisiert {{REVISIONDAY2}}.{{REVISIONMONTH}}.{{REVISIONYEAR}}</span><span>[[Benutzer:{{REVISIONUSER}}|{{REVISIONUSER}}]]</span></div> |
|||
</div> |
|||
</div> |
|||
| ⚫ | |||
Vorlage für eine '''einheitliche Infobox für Veranstaltungen''' (überarbeitete Version mit Goldenrod als Markenfarbe, eigenen Icons für Event-typische Felder). |
|||
| ⚫ | |||
| ⚫ | |||
<pre> |
<pre> |
||
__NOTOC__ |
__NOTOC__ |
||
{{Infobox Veranstaltung |
{{Infobox Veranstaltung |
||
| |
|Name = |
||
| |
|Bild = |
||
| |
|Bildinfo = [optional] |
||
| |
|Text = [optional] |
||
| |
|Zeitraum = |
||
| |
|Ort = |
||
| |
|Art = |
||
| |
|Genre = [optional] |
||
|Besucher = [optional] |
|||
}} |
|||
|Veranstalter = |
|||
| ⚫ | |||
|Webseite = [optional] |
|||
}}</pre> |
|||
== Hinweise zur Migration == |
|||
* Bugs der alten Vorlage wurden korrigiert: "Letze" → "Letzte", fehlender Default bei <code>Bildinfo</code>. |
|||
* Der Parameter <code>Webseite</code> war im Original-Code, aber nicht in der Doku – jetzt dokumentiert. |
|||
* Die Reihenfolge wurde leicht angepasst: Zeitraum und Ort kommen zuerst (die wichtigsten Fakten einer Veranstaltung), dann Art und Genre, dann Besucher und Veranstalter, zuletzt Webseite. |
|||
* Das Original-Gold <code>#ffd700</code> wurde gegen das elegantere '''Goldenrod''' <code>#c9a437</code> getauscht – weniger knallig, professioneller. |
|||
* Die Box ist responsiv und passt sich auf schmalen Bildschirmen automatisch an. |
|||
[[Kategorie:Vorlagen]] |
[[Kategorie:Vorlagen]] |
||
</noinclude> |
</noinclude> |
||
Aktuelle Version vom 17. Mai 2026, 06:47 Uhr
Vorlage für eine einheitliche Infobox für Veranstaltungen (überarbeitete Version mit Goldenrod als Markenfarbe, eigenen Icons für Event-typische Felder).
Einbau
Der Einbau erfolgt am Anfang einer Veranstaltungsseite mit dem folgenden Code:
__NOTOC__
{{Infobox Veranstaltung
|Name =
|Bild =
|Bildinfo = [optional]
|Text = [optional]
|Zeitraum =
|Ort =
|Art =
|Genre = [optional]
|Besucher = [optional]
|Veranstalter =
|Webseite = [optional]
}}
Hinweise zur Migration
- Bugs der alten Vorlage wurden korrigiert: "Letze" → "Letzte", fehlender Default bei
Bildinfo. - Der Parameter
Webseitewar im Original-Code, aber nicht in der Doku – jetzt dokumentiert. - Die Reihenfolge wurde leicht angepasst: Zeitraum und Ort kommen zuerst (die wichtigsten Fakten einer Veranstaltung), dann Art und Genre, dann Besucher und Veranstalter, zuletzt Webseite.
- Das Original-Gold
#ffd700wurde gegen das elegantere Goldenrod#c9a437getauscht – weniger knallig, professioneller. - Die Box ist responsiv und passt sich auf schmalen Bildschirmen automatisch an.
