Vorlage:Buchbox: Unterschied zwischen den Versionen

Aus WikiToYes
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(78 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<accordion>
<noinclude>{{Dokumentation}}</noinclude>
  <panel heading="Inhaltsverzeichnis anzeigen / ausblenden">
<includeonly>
    __TOC__
<div class="container-fluid px-0">
  </panel>
      <div class="row align-items-center g-0"
</accordion>
    style="background:#f8f9fa; border:1px solid #0000FF; border-radius:8px; padding:1px; margin:0 0 15px 0;">
 
     <!-- Linke Spalte: Buchcover -->
 
    <div class="col-md-4">
 
      <div class="p-0 m-0">
<!-- Horizontale Linie oben -->
        [[Datei:Home-Fachbuch.jpg|frameless|500px|link= Mediatorenkoffer]]
<hr style="margin:3px 0; height:1px; background:#ddd; border:none;">
      </div>
 
<!-- Flex-Container: Bild links, Text + TOC rechts -->
<div style="display: flex; align-items: stretch; gap: 1rem;">
 
  <!-- Buchcover (400px), ohne Rand oder Hintergrund -->
  <div style="flex: 0 0 auto; margin: 0; padding: 0; background: none;">
     [[Datei:Home-fachbuch.png|frameless|400px]]
  </div>
 
  <!-- Rechte Spalte: Standort oben, TOC unten -->
  <div style="flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; background: none; padding: 0; margin: 0;">
 
    <!-- Standort (oben), ohne Hintergrund -->
    <div style="background: none; margin: 0 0 0.5em 0; padding: 0; font-size: 0.9em;">
      '''Standort:''' [[Kategorie:Technik]] • [[Buch::Handbuch]] • '''Version:''' 2.3
     </div>
     </div>
   
    <!-- Rechte Spalte: Navigation  -->
    <div class="col-md-8">
      <div class="ps-3">
        <!-- Buchnavigation -->
        <div style="background:#f8f9fa; border-radius:8px; padding:12px; margin-bottom:15px">
          <div style="display:flex; gap:15px; flex-wrap:wrap">
            <!-- Buchhierarchie -->
            <div style="flex:1; min-width:200px">
              <h4 style="margin-top:0">Position im Fachbuch</h4>
              <div style="font-size:0.95em">
                <div>Buch: {{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}</div>
                {{#if:{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite|link=none}}|
                <div>Kapitel: {{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite}}</div>
                }}
                <div>Dieser Beitrag: <strong>{{FULLPAGENAME}}</strong></div>
                {{#if:{{#show:{{FULLPAGENAME}}|?Weiterlesen|link=none}}|
                <div>Weiter: {{#show:{{FULLPAGENAME}}|?Weiterlesen}}</div>
                }}
            </div>
            </div>


    <!-- TOC (unten), mit Fade -->
            <!-- Unterkapitel -->
    <div id="fade-toc" class="toc-fade" style="max-height: 400px; overflow-y: auto;">
            <div style="flex:1; min-width:200px">
       __TOC__
              <h4 style="margin-top:0">Unterkapitel</h4>
              {{#ask:[[Übergeordnete_Seite::{{FULLPAGENAME}}]]
              |format=ul
              |sort= Sortierwert
              |default=<small style="color:#666">Keine Unterkapitel</small>
              }}
            </div>
           
          </div>
        </div>
       </div>
     </div>
     </div>
 
   
   </div>
   </div>
</div>
</div>
 
</includeonly>
<!-- Horizontale Linie unten -->
<hr style="margin:3px 0; height:1px; background:#ddd; border:none;">

Aktuelle Version vom 23. Juli 2025, 16:28 Uhr