From Dark and Darker Wiki
m (Added existence check to avoid empty braces.) |
(Using arrays instead of the replace parser function to avoid the 1000 character limit.) |
||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly><!-- | ||
-->{{#arraydefine:list|{{{1|}}}}}<!-- | |||
-->[[<!-- | |||
-->{{#loop:i|0|{{#arraysize:list}}<!-- | |||
-->|{{#vardefine:current|{{#arrayindex:list|{{#var:i}} }} }}<!-- | |||
-->{{#ifeq:{{#var:i}}|0<!-- | |||
-->||{{))!}}{{{2|,}}}{{!((}} }}<!-- | |||
-->{{#vaR:current}} }}<!-- | |||
-->]]<!-- | |||
--></includeonly><noinclude> | |||
Variables: | Variables: | ||
*1 = list | *1 = list | ||
*2 = separator | *2 = separator | ||
==Example== | |||
<pre style="white-space:pre">{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword| • }}</pre> | <pre style="white-space:pre">{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword| • }}</pre> | ||
{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword| • }}<noinclude> | {{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword| • }}<noinclude> | ||
==Example== | |||
<pre style="white-space:pre">{{HyperlinkListElements|{{Misc Data|AllLists|Types|Misc|Uncraftable|HuntingLoot}}| • }}</pre> | |||
{{HyperlinkListElements|{{Misc Data|AllLists|Types|Misc|Uncraftable|HuntingLoot}}| • }}<noinclude> |
Revision as of 15:06, 2 June 2024
Variables:
- 1 = list
- 2 = separator
Example
{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword| • }}
Arming Sword • Kuma's Claw • Golden Viking Sword
Example
{{HyperlinkListElements|{{Misc Data|AllLists|Types|Misc|Uncraftable|HuntingLoot}}| • }}
Armor Scrap • Banshee Sonnet • Bat Claw • Bat Wing • Beetle Wings • Blue Eyeballs • Bone • Bowstring • Broken Skull • Bug Shell • Captured Mana Flakes • Centaur Hoof • Centaur Horn • Centaur Tail • Chocolate Chip Muffin • Chronicles of the Cursed Crown • Cockatrice's Lucky Feather • Cursed Crown • Cyclops Eye • Cyclops Rags • Cyclops's Club • Dark Matter • Demon Blood • Demon Dog Thorn • Diary of the Toz • Dog Collar • Ectoplasm • Enchanted Dark Fabric • Extra Thick Pelt • Firefly's Abdomen • Frost Wyvern Egg • Frost Wyvern's Claws • Frost Wyvern's Hide • Frosted Feather • Frozen Heart • Ghostly Essence • Giant Bat Ear • Giant Bat Hide • Giant Toe • Glowing Blue Ice Eyes • Goblin Ear • Golden Teeth • Grave Essence • Honeybliss Pear • Infected Flesh • Intact Skull • Kobold's Ear • Maggots • Manuscripts of the Warlord • Mimic Tongue • Mimic Tooth • Moldy Bread • Old Bloody Bandage • Old Cloth • Primitive Bracelet • Rotten Fluids • Rusty Broken Sword • Spectral Fabric • Spectral Hilt • Spider Silk • Token of Honor • Torn Bat Wing • Troll Pelt • Troll's Club • Volcanic Ash • Warlord's Armor Shard • Warlord's Broken Sword Blade • Wendigo's Antler Fragment • Wendigo's Entrails • Wendigo's Hoof • Wendigo's Sharp Claws • Wolf Claw • Wolf Fang • Wolf Pelt • Yeti's Teeth