Vorlage:Buchbox: Unterschied zwischen den Versionen

Aus WikiToYes
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Keine Bearbeitungszusammenfassung
 
(63 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>{{Dokumentation}}</noinclude>
<noinclude>{{Dokumentation}}</noinclude>
<includeonly>
<includeonly>
{{#set: Beschreibung={{{Beschreibung|}}} }}
{{{Beschreibung|Keine Beschreibung angegeben.}}}
<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=Buch:{{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch|link=none}}]]
         [[Datei:Home-Fachbuch.jpg|frameless|500px|link= Mediatorenkoffer]]
       </div>
       </div>
     </div>
     </div>
      
      
     <!-- Rechte Spalte: Navigation + TOC -->
     <!-- Rechte Spalte: Navigation -->
     <div class="col-md-8">
     <div class="col-md-8">
       <div class="ps-3">
       <div class="ps-3">
       
         <!-- Buchnavigation -->
         <!-- Buchnavigation -->
         <div style="background:#f8f9fa; border-radius:8px; padding:12px; margin-bottom:15px">
         <div style="background:#f8f9fa; border-radius:8px; padding:12px; margin-bottom:15px">
           <div style="display:flex; gap:15px; flex-wrap:wrap">
           <div style="display:flex; gap:15px; flex-wrap:wrap">
           
             <!-- Buchhierarchie -->
             <!-- Buchhierarchie -->
             <div style="flex:1; min-width:200px">
             <div style="flex:1; min-width:200px">
               <h4 style="margin-top:0">Buchposition</h4>
               <h4 style="margin-top:0">Position im Fachbuch</h4>
               <div style="font-size:0.95em">
               <div style="font-size:0.95em">
                 <div>Buch: [[{{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}]]</div>
                 <div>Buch: {{#show:{{FULLPAGENAME}}|?Gehört_zu_Buch}}</div>
                 {{#if:{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite|link=none}}|
                 {{#if:{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite|link=none}}|
                 <div>Kapitel: [[{{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite}}]]</div>
                 <div>Kapitel: {{#show:{{FULLPAGENAME}}|?Übergeordnete_Seite}}</div>
                 }}
                 }}
                 <div style="margin-top:5px"><strong>{{PAGENAME}}</strong></div>
                 <div>Dieser Beitrag: <strong>{{FULLPAGENAME}}</strong></div>
              </div>
                {{#if:{{#show:{{FULLPAGENAME}}|?Weiterlesen|link=none}}|
                <div>Weiter: {{#show:{{FULLPAGENAME}}|?Weiterlesen}}</div>
                }}
            </div>
             </div>
             </div>
           
 
             <!-- Unterkapitel -->
             <!-- Unterkapitel -->
             <div style="flex:1; min-width:200px">
             <div style="flex:1; min-width:200px">
               <h4 style="margin-top:0">Unterkapitel</h4>
               <h4 style="margin-top:0">Unterkapitel</h4>
               {{#ask:[[Übergeordnete_Seite::{{FULLPAGENAME}}]]
               {{#ask:[[Übergeordnete_Seite::{{FULLPAGENAME}}]]
              |sort=Title
              |order=asc
               |format=ul
               |format=ul
               |link=all
               |sort= Sortierwert
               |default=<small style="color:#666">Keine Unterkapitel</small>
               |default=<small style="color:#666">Keine Unterkapitel</small>
               }}
               }}
Zeile 48: Zeile 44:
           </div>
           </div>
         </div>
         </div>
       
        <!-- Inhaltsverzeichnis -->
        <div id="fade-toc" class="toc-fade" style="max-height: 400px; overflow-y: auto;">
          __TOC__
        </div>
       
       </div>
       </div>
     </div>
     </div>
Zeile 59: Zeile 49:
   </div>
   </div>
</div>
</div>
<hr style="margin: 0;">
nur zum test
__TOC__
<!-- CSS für responsive Anpassungen -->
<style>
@media (max-width: 768px) {
  .col-md-4, .col-md-8 {
    width: 100%;
    padding-right: 0;
  }
  .toc-fade {
    max-height: 200px !important;
  }
}
</style>
</includeonly>
</includeonly>

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