From Dark and Darker Wiki

mNo edit summary
(Temporary changing the template to simply display the squire offer lists without iconboxes.)
Line 1: Line 1:
<includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers}} }}
<includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers|all}} }}
<tr>
<tr>
<td>{{Iconbox|<!--
<td><!--
            -->{{#if:{{#pos:{{{2}}}|Potion}}<!--
-->[[{{{1}}}]]</td>
-->|{{#explode:{{{2}}}| |1|2}}<!--
<td><!--
-->|{{{2}}}}}<!--
-->{{{2}}}</td>
          -->|image={{{2}}}<!--
<td><!--
        -->|size=x100px<!--
-->{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}}</td></tr><!--
-->|rarity={{Common}} }}
</td>


<td>{{
--></includeonly><noinclude>
#loop: i
|0
|{{#arraysize:3}}
|<nowiki/>{{#vardefine:squireoffers|{{#arrayindex:squireoffers|{{#var:i}} }} }}
        |{{Merchant Data|{{{1}}}|squireoffers|{{{3}}}|0}}}}
 
        </td>
 
<td>[[{{{1}}}]]</td>
</tr>
</includeonly>
<noinclude>
Auto creates Squire row
Auto creates Squire row
==Example==
==Example==
<pre>
<pre>
{{SquireTable|
{{SquireTable|
{{GenerateSquireRow|Weaponsmith|Dark Cuirass}}
{{GenerateSquireRow|Armourer|0}}
{{GenerateSquireRow|Weaponsmith|Arming Sword}}
{{GenerateSquireRow|Armourer|25}}
    {{GenerateSquireRow|Alchemist|Potion of Healing}}
{{GenerateSquireRow|Armourer|50}}
{{GenerateSquireRow|Armourer|Bandage}}
{{GenerateSquireRow|Armourer|75}}
{{GenerateSquireRow|Armourer|125}}
}}</pre>
}}</pre>
{{SquireTable|
{{SquireTable|
{{GenerateSquireRow|Weaponsmith|Dark Cuirass}}
{{GenerateSquireRow|Armourer|0}}
{{GenerateSquireRow|Weaponsmith|Arming Sword}}
{{GenerateSquireRow|Armourer|25}}
    {{GenerateSquireRow|Alchemist|Potion of Healing}}
{{GenerateSquireRow|Armourer|50}}
{{GenerateSquireRow|Armourer|Bandage}}
{{GenerateSquireRow|Armourer|75}}
{{GenerateSquireRow|Armourer|125}}
}}
}}
</noinclude>
</noinclude>

Revision as of 04:14, 11 April 2024

Auto creates Squire row

Example

{{SquireTable|
	{{GenerateSquireRow|Armourer|0}}
	{{GenerateSquireRow|Armourer|25}}
	{{GenerateSquireRow|Armourer|50}}
	{{GenerateSquireRow|Armourer|75}}
	{{GenerateSquireRow|Armourer|125}}
}}


Affinity Items Offered by the Squire
Armourer 0
Armourer 25
Armourer 50
Armourer 75
Armourer 125