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}}| • }}
Bat Claw • Beetle Wings • Blue Eyeballs • Bone • Bowstring • Broken Skull • Bug Shell • Captured Mana Flakes • Centaur Hoof • Centaur Horn • Centaur Tail • Cockatrice's Lucky Feather • Cursed Crown • Cyclops Eye • Cyclops Rags • Cyclops's Club • Dark Matter • Demon Blood • Demon Dog Thorn • Dog Collar • Enchanted Dark Fabric • Extra Thick Pelts • Firefly's Abdomen • Frost Wyvern Egg • Frost Wyvern's Claws • Frozen Heart • Ghostly Essence • Giant Toe • Glowing Blue Ice Eyes • Goblin Ear • Golden Teeth • Grave Essence • Infected Flesh • Intact Skull • Kobold's Ear • Maggots • Mimic Tongue • Mimic Tooth • Moldy Bread • Old Cloth • Primitive Bracelet • Rotten Fluids • Rusty Broken Sword • Spider Silk • Token of Honor • Torn Bat Wing • Troll Pelt • Troll's Club • Volcanic Ash • Warlord's Broken Sword Blade • Wendigo's Hoof • Wendigo's Sharp Claws • Wolf Claw • Wolf Fang • Wolf Pelt • Yeti's Teeth