Vorlage:Buchbox: Unterschied zwischen den Versionen

Aus WikiToYes
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(93 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<div class="row" style="margin:0 0 1em 0; padding:0; display:flex; align-items:flex-start;">
<noinclude>{{Dokumentation}}</noinclude>
  <!-- Bild-Spalte (links) -->
<includeonly>
  <div class="col-sm-6" style="flex:0 0 400px; padding:0 15px 0 0;">
<div class="container-fluid px-0">
     [[Datei:Beispielbild.jpg|400px|class=img-responsive]]
      <div class="row align-items-center g-0"
  </div>
    style="background:#f8f9fa; border:1px solid #0000FF; border-radius:8px; padding:1px; margin:0 0 15px 0;">
 
     <!-- Linke Spalte: Buchcover -->
  <!-- Text-Spalte (rechts) -->
    <div class="col-md-4">
  <div class="col-sm-6" style="flex:1; padding:0; display:flex; flex-direction:column; height:400px;">
      <div class="p-0 m-0">
    <div style="flex:0; font-size:0.9em; line-height:1.4; margin-bottom:10px;">
        [[Datei:Home-Fachbuch.jpg|frameless|500px|link= Mediatorenkoffer]]
      '''Standort:''' [[Kategorie:Hauptkapitel]] • [[Gehört zu Buch::Handbuch]]<br>
      </div>
      '''Version:''' 2.1 • '''Status:''' {{#ifexist:Review:{{PAGENAME}}|freigegeben|in Bearbeitung}}
     </div>
     </div>
      
      
     <div style="flex:1; overflow:hidden; position:relative;">
     <!-- Rechte Spalte: Navigation  -->
      <div style="position:absolute; top:0; bottom:0; right:0; left:0; overflow-y:auto; padding-right:5px;">
    <div class="col-md-8">
         __TOC__
      <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>
 
            <!-- Unterkapitel -->
            <div style="flex:1; min-width:200px">
              <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>
</div>
 
</includeonly>
<!-- Horizontale Trennlinie -->
<div style="border-top:1px solid #ddd; margin:5px 0;"></div>
 
 
 
 
xxxx
 
<hr />
    [[Datei:Home-fachbuch.png|frameless|left|400px]]
    <!-- ASK-Abfrage oben -->
    <strong>Standort im Buch:</strong>
    <div class="small mb-2">
      {{#ask:
        [[Gehört zu Buch::Buch:Fachbuch]]
        [[Kategorie:Buch-Kapitel]]
        |?Kapitelüberschrift
        |format=ul
        |limit=100
      }}
    </div>
 
    <!-- TOC darunter, begrenzt in Höhe -->
    <strong>Inhaltsverzeichnis</strong>
    <div class="small" style="max-height: 400px; overflow-y: auto;">
      __TOC__
    </div>
 
<hr />

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