From Dark and Darker Wiki

m (Changing Template to use calls that work with Misc Data.)
(Added Item Achieve section.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#vardefine:rarity|{{#explode:{{Misc Data|{{{1}}}|rarities}}|,|-1}}}}<!--
-->{{Infobox
-->{{Infobox
|name ={{{1}}}
|name ={{{1}}}
|image ={{{1}}}
|image ={{{1}}}
|rarity ={{{2|{{#explode:{{Misc Data|{{{1}}}|rarities}}|,|-1}}}}}
|rarity ={{{2|{{#var:rarity}}}}}
|type ={{Misc Data|{{{1}}}|types|all}}
|type ={{Misc Data|{{{1}}}|types|all}}
|description={{Misc Data|{{{1}}}|flavortext}}
|description={{Misc Data|{{{1}}}|flavortext}}
|invslots ={{Misc Data|{{{1}}}|invslots}}
|invslots ={{Misc Data|{{{1}}}|invslots}}
|stacksize ={{Misc Data|{{{1}}}|maxcount}}
|stacksize ={{Misc Data|{{{1}}}|maxcount}}
|itemachieve={{Misc Data|{{{1}}}|AP|{{{2|{{#var:rarity}}}}}}}
|treasure  ={{Misc Data|{{{1}}}|SellPrices|{{{2|{{#var:rarity}}}}}}}
|nomargin =1
|nomargin =1
|nofloat =1
|nofloat =1
Line 16: Line 19:
{{GenerateMiscInfobox|Gold Ore}}
{{GenerateMiscInfobox|Gold Ore}}
{{GenerateMiscInfobox|Candy Cane}}
{{GenerateMiscInfobox|Candy Cane}}
{{GenerateMiscInfobox|bolt}}</pre>
{{GenerateMiscInfobox|Diamond|6}}
{{GenerateMiscInfobox|Token of Honor}}
{{GenerateMiscInfobox|Bolt}}</pre>
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;">
<table cellspacing="0" class="wikitable sortable jquery-tablesorter" style="width:95%;color:#eee; background:transparent; text-align:center; vertical-align:middle;">
{{GenerateMiscInfobox|Gold Ore}}
{{GenerateMiscInfobox|Gold Ore}}
{{GenerateMiscInfobox|Candy Cane}}
{{GenerateMiscInfobox|Candy Cane}}
{{GenerateMiscInfobox|Diamond|6}}
{{GenerateMiscInfobox|Token of Honor}}
{{GenerateMiscInfobox|Bolt}}
{{GenerateMiscInfobox|Bolt}}
</table>
</table>
</noinclude>
</noinclude>

Revision as of 23:09, 13 May 2024

Auto creates Accessory infobox

Example

{{GenerateMiscInfobox|Gold Ore}}
{{GenerateMiscInfobox|Candy Cane}}
{{GenerateMiscInfobox|Diamond|6}}
{{GenerateMiscInfobox|Token of Honor}}
{{GenerateMiscInfobox|Bolt}}
Gold Ore.png
Type:
Ore
2x2InvSlot.jpg
Stack Size:
5
Item Achieve:
3
Treasure:
2
A dirty chunk of rock containing traces of gleaming gold.
Candy Cane.png
Type:
Currency
1x1InvSlot.jpg
Stack Size:
10
Item Achieve:
1
Treasure:
7
The magic of the season is wrapped within every peppermint twist of these candy canes. They're not just a treat for the taste buds but a treasure trove of winter delight and unexpected value.
Diamond.png
Type:
Gem
1x1InvSlot.jpg
Stack Size:
1
Item Achieve:
10
Treasure:
68
A beautiful rock that scatters light in a vibrant ray of dancing colors.
Token of Honor.png
Type:
HuntingLoot
1x1InvSlot.jpg
Stack Size:
1
Item Achieve:
6
Treasure:
48
A medal awarded to the courageous warriors who have demonstrated exceptional bravery in battle.
Bolt.png
Type:
Ammo,Bolt
1x2InvSlot.jpg
Stack Size:
15
Treasure:
0
A bolt dedicated to crossbows that is sharp enough to pierce opponents.