From Dark and Darker Wiki

(added tabid)
(Moved the example here, made it inline block)
Line 1: Line 1:
<includeonly><div class="{{#ifeq:{{{active|}}}|yes|selected-tab}} tab-toggle tab" data-tabid="{{{tabid}}}" data-tab="{{#replace:{{{1}}}| |}}" title="{{{1}}}">{{{2|}}}</div><!--
<includeonly><div style="display:inline-block" class="{{#ifeq:{{{active|}}}|yes|selected-tab}} tab-toggle tab" data-tabid="{{{tabid}}}" data-tab="{{#replace:{{{1}}}| |}}" title="{{{1}}}">{{{2|}}}</div><!--


--></includeonly>
--></includeonly><noinclude>
{{TabToggle|Alchemist|[[File:Alchemist.png|link=|x150px]]|active=yes|tabid=0}}
{{TabToggle|Weaponsmith|[[File:Weaponsmith.png|link=|x150px]]|tabid=0}}
{{TabToggle|The Collector|[[File:The Collector.png|link=|x150px]]|tabid=0}}
<div class="Alchemist-data">This is test</div>
<div class="Weaponsmith-data" style="display:none">This is test2</div>
<div class="TheCollector-data" style="display:none">This is test3</div>
 
 
{{TabToggle|Alchemist1|Alchemist|active=yes|tabid=1}}
{{TabToggle|Weaponsmith1|Weaponsmith|tabid=1}}
{{TabToggle|Leathersmith1|Leathersmith|tabid=1}}
<div class="Alchemist1-data" >This is text1</div>
<div class="Weaponsmith1-data" style="display:none">This is text2</div>
<div class="Leathersmith1-data" style="display:none">This is text3</div>
 
</noinclude>

Revision as of 23:41, 1 December 2023

Alchemist.png
Weaponsmith.png
The Collector.png
This is test


Alchemist
Weaponsmith
Leathersmith
This is text1