Vorlage:Video-Listeneintrag: Unterschied zwischen den Versionen

Aus WikiToYes
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>
<includeonly>
<div class="video-entry" style="display:flex; gap:20px; margin-bottom:2em; border:1px solid #ddd; border-radius:8px; padding:15px; background:#f9f9f9; flex-wrap:wrap">
<table style="width:100%; margin-bottom:2em; border:1px solid #ccc; border-radius:8px; background:#f9f9f9">
  <tr>
    <!-- Linke Spalte: Video -->
    <td style="width:50%; vertical-align:top; padding:15px">
      {{Video|id={{{ID}}}|width=100%}}
    </td>


  <!-- Vorschau-Bild -->
    <!-- Rechte Spalte: Infos -->
  <div style="flex:0 0 320px">
    <td style="width:50%; vertical-align:top; padding:15px">
    [[Datei:Video-play.png|link=https://www.youtube.com/watch?v={{{ID}}}|320px|center|class=video-thumb]]
      <h3 style="margin-top:0">{{{Titel}}}</h3>
   </div>
      <ul style="margin-top:0.5em; line-height:1.4">
        <li><strong>Episode:</strong> {{{Episode}}}</li>
        <li><strong>Kategorien:</strong> {{{Kategorien}}}</li>
        <li><strong>Beschreibung:</strong><br />{{{Beschreibung}}}</li>
        <li><strong>Sprecher:</strong> {{{Sprecher}}}</li>
      </ul>
    </td>
   </tr>
</table>


  <!-- Beschreibung -->
<!-- Semantisches Subobjekt -->
  <div style="flex:1">
{{#subobject:
    <div style="font-size:1.2em; font-weight:bold; margin-bottom:5px">
|Titel={{{Titel}}}
      {{{Titel}}}
|Video-ID={{{ID}}}
    </div>
|Episode={{{Episode}}}
    <div style="margin-bottom:5px"><strong>Episode:</strong> {{{Episode}}}</div>
|Kategorien={{{Kategorien}}}
    <div style="margin-bottom:5px"><strong>Kategorie:</strong> {{{Kategorien}}}</div>
|Beschreibung={{{Beschreibung}}}
    <div style="margin-bottom:10px"><strong>Beschreibung:</strong><br />{{{Beschreibung}}}</div>
|Sprecher={{{Sprecher}}}
    <div style="margin-top:10px">
|@type=VideoEintrag
      [https://www.youtube.com/watch?v={{{ID}}} ▶ Video ansehen auf YouTube]
}}
    </div>
  </div>
 
  <!-- Semantische Daten (unsichtbar) -->
  <div style="display:none">
    [[Video-ID::{{{ID}}}]]
    [[Kategorie::{{{Kategorien}}}]]
    [[Episode::{{{Episode}}}]]
  </div>
 
</div>
</includeonly>
</includeonly>

Aktuelle Version vom 20. Juli 2025, 08:00 Uhr