From Dark and Darker Wiki

m (Updated example.)
(Updated template to handle empty lists.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{#replace:{{{1}}}|,|{{))!}}{{{2|,}}}{{!((}}}}]]</includeonly><noinclude>
<includeonly><!--
<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>
 
-->{{#arraydefine:list|{{{1| }}}}}<!--
 
--><div {{#ifeq:{{#arraysize:list}}|0|style="display:none"}}><!--
-->[[<!--
-->{{#loop:i|0|{{#arraysize:list}}<!--
-->|{{#vardefine:current|{{#arrayindex:list|{{#var:i}} }} }}<!--
-->{{#ifeq:{{#var:i}}|0<!--
-->||{{))!}}{{{2|,}}}{{!((}} }}<!--
-->{{#vaR:current}} }}<!--
-->]]</div><!--
 
--></includeonly><noinclude>
 
Variables:
*1 = list
*2 = separator
==Example==
<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;}}
==Example==
<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;}}
==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|| • }}
[[]]