Vorlage:Buchbox: Unterschied zwischen den Versionen

Aus WikiToYes
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(91 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<div style="display:flex; margin:0; padding:0; border:0; line-height:1; font-size:14px;">
<noinclude>{{Dokumentation}}</noinclude>
  <!-- Bild (400px, direkt am Rand) -->
<includeonly>
  <div style="flex:0 0 400px; margin:0; padding:0; background:none;">
<div class="container-fluid px-0">
        [[Datei:Home-fachbuch.png|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 -->
  <!-- Metadaten + TOC-Button -->
    <div class="col-md-4">
  <div style="flex:1; margin:0 0 0 10px; padding:0; display:flex; flex-direction:column;">
      <div class="p-0 m-0">
     <!-- Standortangaben (1-zeilig) -->
        [[Datei:Home-Fachbuch.jpg|frameless|500px|link= Mediatorenkoffer]]
    <div style="margin:0; padding:2px 0; font-size:0.9em;">
       </div>
      '''Standort:''' [[Kategorie:Technik]] • [[Buch::Handbuch]]
       '''Version:''' 2.3
     </div>
     </div>
      
      
     <!-- TOC als Popup-Button -->
     <!-- Rechte Spalte: Navigation  -->
     <div style="margin:0; padding:0;">
     <div class="col-md-8">
       <button
       <div class="ps-3">
        onclick="document.getElementById('toc-popup').style.display='block'"  
         <!-- Buchnavigation -->
         style="background:#f8f9fa; border:1px solid #a2a9b1; padding:3px 8px; cursor:pointer;"
        <div style="background:#f8f9fa; border-radius:8px; padding:12px; margin-bottom:15px">
      >
          <div style="display:flex; gap:15px; flex-wrap:wrap">
        Inhaltsverzeichnis anzeigen
            <!-- Buchhierarchie -->
      </button>
            <div style="flex:1; min-width:200px">
     
              <h4 style="margin-top:0">Position im Fachbuch</h4>
      <!-- Popup-Container (hidden by default) -->
              <div style="font-size:0.95em">
      <div id="toc-popup" style="display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:white; padding:20px; border:1px solid #aaa; z-index:1000; max-height:80vh; overflow:auto; box-shadow:0 0 10px rgba(0,0,0,0.3);">
                <div>Buch: {{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}</div>
        <div style="text-align:right;">
                {{#if:{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite|link=none}}|
          <button
                <div>Kapitel: {{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite}}</div>
            onclick="document.getElementById('toc-popup').style.display='none'"
                }}
            style="background:none; border:none; cursor:pointer; font-size:1.2em;"
                <div>Dieser Beitrag: <strong>{{FULLPAGENAME}}</strong></div>
           >✕</button>
                {{#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>
        __TOC__
       </div>
       </div>
     </div>
     </div>
   
   </div>
   </div>
</div>
</div>
 
</includeonly>
<!-- Horizontale Linie (1px) -->
<hr style="margin:3px 0; border-top:1px solid #ddd; border-bottom:none;">

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