Vorlage:Buchbox: Unterschied zwischen den Versionen

Aus WikiToYes
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Keine Bearbeitungszusammenfassung
 
(61 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>{{Dokumentation}}</noinclude>
<noinclude>{{Dokumentation}}</noinclude>
<includeonly>
<includeonly>
<hr style="margin: 0;">
<div class="container-fluid px-0">
<div class="container-fluid px-0">
  <div class="row align-items-center g-0">
      <div class="row align-items-center g-0"
   
    style="background:#f8f9fa; border:1px solid #0000FF; border-radius:8px; padding:1px; margin:0 0 15px 0;">
     <!-- Linke Spalte: Buchcover -->
     <!-- Linke Spalte: Buchcover -->
     <div class="col-md-4">
     <div class="col-md-4">
       <div class="p-0 m-0">
       <div class="p-0 m-0">
         [[Datei:Home-fachbuch.png|frameless|500px|link=Fachbuch]]
         [[Datei:Home-Fachbuch.jpg|frameless|500px|link= Mediatorenkoffer]]
       </div>
       </div>
     </div>
     </div>
      
      
     <!-- Rechte Spalte: Navigation -->
     <!-- Rechte Spalte: Navigation -->
     <div class="col-md-8">
     <div class="col-md-8">
       <div class="ps-3">
       <div class="ps-3">
       
         <!-- Buchnavigation -->
         <!-- Aktuelle Position -->
         <div style="background:#f8f9fa; border-radius:8px; padding:12px; margin-bottom:15px">
         <div style="background:#f8f9fa; padding:12px; border-radius:8px; margin-bottom:15px">
           <div style="display:flex; gap:15px; flex-wrap:wrap">
           <h4 style="margin-top:0">Buchnavigation</h4>
            <!-- Buchhierarchie -->
         
            <div style="flex:1; min-width:200px">
          <!-- Hierarchie-Pfad -->
              <h4 style="margin-top:0">Position im Fachbuch</h4>
          <div style="margin-bottom:10px">
              <div style="font-size:0.95em">
            {{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}
                <div>Buch: {{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}</div>
            {{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite}}
                {{#if:{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite|link=none}}|
            <strong>{{PAGENAME}}</strong>
                <div>Kapitel: {{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite}}</div>
          </div>
                }}
         
                <div>Dieser Beitrag: <strong>{{FULLPAGENAME}}</strong></div>
          <!-- Vorheriges/Nächstes Kapitel -->
                {{#if:{{#show:{{FULLPAGENAME}}|?Weiterlesen|link=none}}|
          <div style="display:flex; gap:15px; font-size:0.9em">
                <div>Weiter: {{#show:{{FULLPAGENAME}}|?Weiterlesen}}</div>
            <div style="flex:1">
                 }}
              {{#set_previous:prev|book={{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}}}
            </div>
              {{#if:{{#var:prev}}|
                 ◄ [[{{#var:prev}}|Vorheriges]]
              }}
             </div>
             </div>
             <div style="flex:1; text-align:right">
 
               {{#set_next:next|book={{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}}}
            <!-- Unterkapitel -->
               {{#if:{{#var:next}}|
             <div style="flex:1; min-width:200px">
                [[{{#var:next}}|Nächstes]]
               <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>
       
        <!-- Unterkapitel -->
        <div style="margin-bottom:15px">
          <h5>Unterkapitel:</h5>
          {{#ask:[[Übergeordnete_Seite::{{FULLPAGENAME}}]]
          |sort=Title
          |order=asc
          |format=ul
          |link=all
          |default=<small>Keine Unterkapitel</small>
          }}
        </div>
       
        <!-- TOC -->
        <div id="fade-toc" style="max-height:300px; overflow-y:auto">
          __TOC__
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>
   
   </div>
   </div>
</div>
</div>
<hr style="margin: 0;">
<!-- Notwendige Vorlagen -->
{{#set_previous:
|var=prev
|book={{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}
|within category=Buchseiten
}}
{{#set_next:
|var=next
|book={{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}
|within category=Buchseiten
}}
</includeonly>
</includeonly>

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