Vorlage:Buchbox: Unterschied zwischen den Versionen

Aus WikiToYes
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Keine Bearbeitungszusammenfassung
 
(86 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<html>
<noinclude>{{Dokumentation}}</noinclude>
<!-- Obere Trennlinie -->
<includeonly>
<hr style="margin:3px 0; height:1px; background:#ddd; border:none;">
<div class="container-fluid px-0">
 
      <div class="row align-items-center g-0"
<!-- Zwei-Spalten-Layout -->
    style="background:#f8f9fa; border:1px solid #0000FF; border-radius:8px; padding:1px; margin:0 0 15px 0;">
<div style="display:flex; margin:0; padding:0; border:none; line-height:1; background:none;">
    <!-- Linke Spalte: Buchcover -->
 
    <div class="col-md-4">
  <!-- Linke Spalte: Bild -->
      <div class="p-0 m-0">
  <div style="flex:0 0 400px; margin:0; padding:0;">
        [[Datei:Home-Fachbuch.jpg|frameless|500px|link= Mediatorenkoffer]]
    <img src="{{filepath:Home-fachbuch.png}}" alt="Buchcover" style="width:100%; height:auto; display:block;" />
      </div>
  </div>
    </div>
 
  <!-- Rechte Spalte: Standort + TOC -->
  <div style="flex:1; margin-left:10px; padding:0;">
      
      
     <!-- Standortanzeige -->
     <!-- Rechte Spalte: Navigation  -->
     <div style="font-size:0.9em; line-height:1.2;">
     <div class="col-md-8">
      '''Standort:''' [[Kategorie:Technik]] • [[Buch::Handbuch]] • '''Version:''' 2.3
      <div class="ps-3">
    </div>
        <!-- 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-Schalter -->
            <!-- Unterkapitel -->
    <button class="btn btn-sm btn-outline-secondary my-2" type="button"
            <div style="flex:1; min-width:200px">
            data-bs-toggle="collapse" data-bs-target="#toc-box">
              <h4 style="margin-top:0">Unterkapitel</h4>
      Inhaltsverzeichnis anzeigen / ausblenden
              {{#ask:[[Übergeordnete_Seite::{{FULLPAGENAME}}]]
    </button>
              |format=ul
 
              |sort= Sortierwert
    <!-- TOC-Inhalt -->
              |default=<small style="color:#666">Keine Unterkapitel</small>
    <div id="toc-box" class="collapse show" style="max-height:400px; overflow-y:auto;">
              }}
      <div class="small">
            </div>
         __TOC__
           
          </div>
         </div>
       </div>
       </div>
     </div>
     </div>
 
   
   </div>
   </div>
</div>
</div>
 
</includeonly>
<!-- Untere Trennlinie -->
<hr style="margin:3px 0; height:1px; background:#ddd; border:none;">
</html>

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