From Dark and Darker Wiki

(Using arrays instead of the replace parser function to avoid the 1000 character limit.)
(Updated template to handle empty lists.)
 
Line 1: Line 1:
<includeonly><!--
<includeonly><!--


-->{{#arraydefine:list|{{{1|}}}}}<!--
-->{{#arraydefine:list|{{{1| }}}}}<!--
 
--><div {{#ifeq:{{#arraysize:list}}|0|style="display:none"}}><!--
-->[[<!--
-->[[<!--
-->{{#loop:i|0|{{#arraysize:list}}<!--
-->{{#loop:i|0|{{#arraysize:list}}<!--
Line 8: Line 10:
-->||{{))!}}{{{2|,}}}{{!((}} }}<!--
-->||{{))!}}{{{2|,}}}{{!((}} }}<!--
-->{{#vaR:current}} }}<!--
-->{{#vaR:current}} }}<!--
-->]]<!--
-->]]</div><!--


--></includeonly><noinclude>
--></includeonly><noinclude>
Variables:
Variables:
*1 = list
*1 = list
Line 16: Line 19:
==Example==
==Example==
<pre style="white-space:pre">{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword|&nbsp;•&nbsp;}}</pre>
<pre style="white-space:pre">{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword|&nbsp;•&nbsp;}}</pre>
{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword|&nbsp;•&nbsp;}}<noinclude>
{{HyperlinkListElements|Arming Sword,Kuma's Claw,Golden Viking Sword|&nbsp;•&nbsp;}}
==Example==
==Example==
<pre style="white-space:pre">{{HyperlinkListElements|{{Misc Data|AllLists|Types|Misc|Uncraftable|HuntingLoot}}|&nbsp;•&nbsp;}}</pre>
<pre style="white-space:pre">{{HyperlinkListElements|{{Misc Data|AllLists|Types|Misc|Uncraftable|HuntingLoot}}|&nbsp;•&nbsp;}}</pre>
{{HyperlinkListElements|{{Misc Data|AllLists|Types|Misc|Uncraftable|HuntingLoot}}|&nbsp;•&nbsp;}}<noinclude>
{{HyperlinkListElements|{{Misc Data|AllLists|Types|Misc|Uncraftable|HuntingLoot}}|&nbsp;•&nbsp;}}
==Example==
<pre style="white-space:pre">{{HyperlinkListElements||&nbsp;•&nbsp;}}</pre>
{{HyperlinkListElements||&nbsp;•&nbsp;}}
 
</noinclude>

Latest revision as of 15:51, 9 June 2024


Variables:

  • 1 = list
  • 2 = separator

Example

{{HyperlinkListElements|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

Example

{{HyperlinkListElements|| • }}
[[]]