Template:Conference: Difference between revisions

From Decoding the Disciplines
Jump to navigation Jump to search
[checked revision][checked revision]
mNo edit summary
mNo edit summary
Line 1: Line 1:
<div class="mw-tabs" style="margin: 1em 0;">
<div class="mw-tabs" style="margin: 1em 0;">
   <!-- Reiter-Navigation -->
   <!-- Tab-Navigation -->
   <ul class="mw-tabs-nav" style="list-style: none; margin: 0; padding: 0; display: flex; border-bottom: 2px solid #a2a9b1;">
   <ul class="mw-tabs-nav" style="list-style: none; margin: 0; padding: 0; display: flex; border-bottom: 2px solid #a2a9b1;">
     <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;">
       {{{reiter1|Reiter 1}}}
       {{{tab1|Reiter 1}}}
     </li>
     </li>
     {{#if:{{{reiter2|}}}|
     {{#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;">
       {{{reiter2}}}
       {{tab2}}}
     </li>
     </li>
     }}
     }}
     {{#if:{{{reiter3|}}}|
     {{#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;">
       {{{reiter3}}}
       {{{tab3}}}
     </li>
     </li>
     }}
     }}
Line 20: Line 20:
   <div class="mw-tabs-content" style="border: 1px solid #a2a9b1; border-top: none; padding: 1em; background: #fff;">
   <div class="mw-tabs-content" style="border: 1px solid #a2a9b1; border-top: none; padding: 1em; background: #fff;">
     <div class="tab-pane">
     <div class="tab-pane">
       {{{inhalt1|Kein Inhalt für Reiter 1 hinterlegt.}}}
       {{{content1|Kein Inhalt für Reiter 1 hinterlegt.}}}
     </div>
     </div>
     {{#if:{{{reiter2|}}}|
     {{#if:{{{reiter2|}}}|
     <div class="tab-pane" style="display:none;">
     <div class="tab-pane" style="display:none;">
       {{{inhalt2|Kein Inhalt für Reiter 2 hinterlegt.}}}
       {{{content2|Kein Inhalt für Reiter 2 hinterlegt.}}}
     </div>
     </div>
     }}
     }}
     {{#if:{{{reiter3|}}}|
     {{#if:{{{reiter3|}}}|
     <div class="tab-pane" style="display:none;">
     <div class="tab-pane" style="display:none;">
       {{{inhalt3|Kein Inhalt für Reiter 3 hinterlegt.}}}
       {{{content3|Kein Inhalt für Reiter 3 hinterlegt.}}}
     </div>
     </div>
     }}
     }}
Line 36: Line 36:


<noinclude>
<noinclude>
== Dokumentation ==
== Documentation ==
Dynamische Reiter-Vorlage. Benötigt das entsprechende JavaScript in [[MediaWiki:Common.js]].
Dynamic tab template. Requires the corresponding JavaScript code in [[MediaWiki:Common.js]].


=== Nutzung ===
=== Nutzung ===
<pre>
<pre>
{{Tabs
{{Tabs
| reiter1 = Übersicht
| tab1 = Tab title text
| inhalt1 = Text für Reiter 1...
| content1 = Text for Tab 1  
| reiter2 = Details
| tab2 = Tab title text
| inhalt2 = Text für Reiter 2...
| content2 = Text for Tab 2
| reiter3 = Kontakt
| tab3 = Tab title text
| inhalt3 = Text für Reiter 3...
| content3 = Text for Tab 2
}}
}}
</pre>
</pre>
[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 16:30, 4 November 2026

     Kein Inhalt für Reiter 1 hinterlegt.
   {{#if:|
   }}
   {{#if:|
   }}


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
}}