Template:Conference: Difference between revisions

From Decoding the Disciplines
Jump to navigation Jump to search
[checked revision][checked revision]
mNo edit summary
removed #if
Line 5: Line 5:
       {{{tab1|Tab 1 name}}}
       {{{tab1|Tab 1 name}}}
     </li>
     </li>
     {{#if:{{{tab2|}}}|
      
     <li style="margin-right: 5px; padding: 0.5em 1em; background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 4px 4px 0 0; cursor: pointer; font-weight: bold; transition: background 0.2s;">
     <li style="margin-right: 5px; padding: 0.5em 1em; background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 4px 4px 0 0; cursor: pointer; font-weight: bold; transition: background 0.2s;">
       {{{tab2}}}
       {{{tab2}}}
     </li>
     </li>
    }}
 
     {{#if:{{{tab3|}}}|
      
     <li style="margin-right: 5px; padding: 0.5em 1em; background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 4px 4px 0 0; cursor: pointer; font-weight: bold; transition: background 0.2s;">
     <li style="margin-right: 5px; padding: 0.5em 1em; background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 4px 4px 0 0; cursor: pointer; font-weight: bold; transition: background 0.2s;">
       {{{tab3}}}
       {{{tab3}}}
     </li>
     </li>
    }}
 
   </ul>
   </ul>


Line 22: Line 22:
       {{{content1|Kein Inhalt für Reiter 1 hinterlegt.}}}
       {{{content1|Kein Inhalt für Reiter 1 hinterlegt.}}}
     </div>
     </div>
     {{#if:{{{tab2|}}}|
      
     <div class="tab-pane" style="display:none;">
     <div class="tab-pane" style="display:none;">
       {{{content2|Kein Inhalt für Reiter 2 hinterlegt.}}}
       {{{content2|Kein Inhalt für Reiter 2 hinterlegt.}}}
     </div>
     </div>
     }}
      
    {{#if:{{{tab3|}}}|
     <div class="tab-pane" style="display:none;">
     <div class="tab-pane" style="display:none;">
       {{{content3|Kein Inhalt für Reiter 3 hinterlegt.}}}
       {{{content3|Kein Inhalt für Reiter 3 hinterlegt.}}}
     </div>
     </div>
    }}
 
   </div>
   </div>
</div>
</div>

Revision as of 16:46, 4 November 2026

  • Tab 1 name
  • {{{tab2}}}
  • {{{tab3}}}
     Kein Inhalt für Reiter 1 hinterlegt.


Documentation

Dynamic tab template. Requires the corresponding JavaScript code in MediaWiki:Common.js.

Nutzung

{{Tabs
| tab1 = Tab title text
| content1 = Text for Tab 1 
| tab2 = Tab title text
| content2 = Text for Tab 2
| tab3 = Tab title text
| content3 = Text for Tab 2
}}