From Dark and Darker Wiki
(no more uses pagename so it can be called for specific weapon) |
(Changing Template to use structure that works with the new Item Data.) |
||
Line 1: | Line 1: | ||
{{Tabs | <includeonly>{{Tabs | ||
|firstShownTier=1 | |firstShownTier={{#expr:{{#explode:{{Item Data|Weapon|{{{1}}}|rarities}}|,|0|2}}+1}} | ||
|content1 ={{GenerateWeaponInfobox|{{{1}}}|0}} | |content1 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|0}}<!-- | ||
|content2 ={{GenerateWeaponInfobox|{{{1}}}|1}} | -->|{{GenerateWeaponInfobox|{{{1}}}|0}}}} | ||
|content3 ={{GenerateWeaponInfobox|{{{1}}}|2}} | |content2 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|1}}<!-- | ||
|content4 ={{GenerateWeaponInfobox|{{{1}}}|3}} | -->|{{GenerateWeaponInfobox|{{{1}}}|1}}}} | ||
|content5 ={{GenerateWeaponInfobox|{{{1}}}|4}} | |content3 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|2}}<!-- | ||
|content6 ={{GenerateWeaponInfobox|{{{1}}}|5}} | -->|{{GenerateWeaponInfobox|{{{1}}}|2}}}} | ||
|content7 ={{GenerateWeaponInfobox|{{{1}}}|6}} | |content4 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|3}}<!-- | ||
|content8 ={{GenerateWeaponInfobox|{{{1}}}|7}} | -->|{{GenerateWeaponInfobox|{{{1}}}|3}}}} | ||
}} | |content5 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|4}}<!-- | ||
-->|{{GenerateWeaponInfobox|{{{1}}}|4}}}} | |||
|content6 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|5}}<!-- | |||
-->|{{GenerateWeaponInfobox|{{{1}}}|5}}}} | |||
|content7 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|6}}<!-- | |||
-->|{{GenerateWeaponInfobox|{{{1}}}|6}}}} | |||
|content8 ={{#if:{{#pos:{{Item Data|Weapon|{{{1}}}|rarities}}|7}}<!-- | |||
-->|{{GenerateWeaponInfobox|{{{1}}}|7}}}}<!-- | |||
-->{{#if:{{Item Data|Weapon|{{{1}}}|artifactname}}<!-- | |||
-->|{{GenerateWeaponInfobox|{{Item Data|Weapon|{{{1}}}|artifactname}}|7}}}} | |||
}}</includeonly><noinclude> | |||
<table class="wikitable"> | |||
<tr> | |||
<th>Code</th> | |||
<th>Preview</th> | |||
</tr> | |||
<tr> | |||
<td style="padding: 20px 30px;"> | |||
<pre>{{GenerateWeaponTabs|Arming Sword}}</pre> | |||
</td> | |||
<td style="padding: 20px 30px;"> | |||
{{GenerateWeaponTabs|Arming Sword}} | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="padding: 20px 30px;"> | |||
<pre>{{GenerateWeaponTabs|Longsword}}</pre> | |||
</td> | |||
<td style="padding: 20px 30px;"> | |||
{{GenerateWeaponTabs|Longsword}} | |||
</td> | |||
</tr> | |||
</table></noinclude> |
Revision as of 03:48, 15 March 2024
Code | Preview |
---|---|
{{GenerateWeaponTabs|Arming Sword}} |
|
{{GenerateWeaponTabs|Longsword}} |
|