From Dark and Darker Wiki
m (Added Demon's Glee example.) |
m (Changed to not display tabs above the iconbox if only a single rarity exists.) |
||
Line 1: | Line 1: | ||
<includeonly>{{Tabs | <includeonly>{{#vardefine:rarities|{{Item Data|Weapon|{{{1}}}|rarities}}}}<!-- | ||
-->{{#if:{{#pos:{{#var:rarities}}|,}}<!-- | |||
-->|{{Tabs | |||
|firstShownTier={{#expr:{{#explode:{{Item Data|Weapon|{{{1}}}|rarities}}|,|0|2}}+1}} | |firstShownTier={{#expr:{{#explode:{{Item Data|Weapon|{{{1}}}|rarities}}|,|0|2}}+1}} | ||
|content1 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|0}}<!-- | |content1 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|0}}<!-- | ||
Line 19: | Line 21: | ||
-->{{#if:{{Item Data|Weapon|{{{1}}}|artifactname}}<!-- | -->{{#if:{{Item Data|Weapon|{{{1}}}|artifactname}}<!-- | ||
-->|{{GenerateWeaponInfobox|{{Item Data|Weapon|{{{1}}}|artifactname}}|7}}}} | -->|{{GenerateWeaponInfobox|{{Item Data|Weapon|{{{1}}}|artifactname}}|7}}}} | ||
}}</includeonly><noinclude> | }}<!-- | ||
-->|<div class="cardtabs" data-cardtabs>{{GenerateWeaponInfobox|{{{1}}}|{{#var:rarities}}}}</div>}}</includeonly><noinclude> | |||
<table class="wikitable"> | <table class="wikitable"> | ||
<tr> | <tr> |
Revision as of 08:48, 17 March 2024
Code | Preview |
---|---|
{{GenerateWeaponTabs|Arming Sword}} |
|
{{GenerateWeaponTabs|Longsword}} |
|
{{GenerateWeaponTabs|Demon's Glee}} |
|