From Dark and Darker Wiki

(Temporary changing the template to simply display the squire offer lists without iconboxes.)
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#arraydefine:squireoffers|{{Merchant Data|{{{1}}}|squireoffers|all}} }}
<includeonly>{{#arraydefine:offers|{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}} }}
<tr>
<tr>
<td><!--
<td><!--
-->[[{{{1}}}]]</td>
-->{{Iconbox|{{{1}}}|size=x125px|caption=<span style="color:#eee8;">{{{1}}}<br>{{#explode:{{{2}}}|/|0}}&nbsp;Affinity</span>}}<br><!--
<td><!--
-->{{#vardefine:rarity|{{#explode:{{{2}}}|/|1}} }}<!--
-->{{{2}}}</td>
-->{{#switch:{{#var:rarity}}
<td><!--
|0=<span class="colorrarity0">Squire offers junk items</span>
-->{{Merchant Data|{{{1}}}|squireoffers|{{{2}}}}}</td></tr><!--
|1=<span class="colorrarity1">Squire offers poor items</span>
 
|2=<span class="colorrarity2">Squire offers common items</span>}}</td>
--></includeonly><noinclude>
<td><!--
Auto creates Squire row
-->{{#loop:i|0|{{#arraysize:offers}}<!--
==Example==
-->|{{#vardefine:item|{{#arrayindex:offers|{{#var:i}} }} }}<!--
<pre>
-->{{Iconbox<!--
{{SquireTable|
-->|{{#var:item}}<!--
{{GenerateSquireRow|Armourer|0}}
-->|rarity={{#var:rarity}}<!--
{{GenerateSquireRow|Armourer|25}}
-->|size=x100px<!--
{{GenerateSquireRow|Armourer|50}}
-->|caption=<span class="colorrarity{{#var:rarity}}">{{#var:item}}</span>}} }}</td></tr><!--
{{GenerateSquireRow|Armourer|75}}
{{GenerateSquireRow|Armourer|125}}
--></includeonly><noinclude>
}}</pre>
Auto creates Squire row
{{SquireTable|
==Example==
{{GenerateSquireRow|Armourer|0}}
<pre>
{{GenerateSquireRow|Armourer|25}}
{{SquireTable|
{{GenerateSquireRow|Armourer|50}}
{{GenerateSquireRow|Armourer|0}}
{{GenerateSquireRow|Armourer|75}}
{{GenerateSquireRow|Armourer|25}}
{{GenerateSquireRow|Armourer|125}}
{{GenerateSquireRow|Armourer|50}}
}}
{{GenerateSquireRow|Armourer|75}}
</noinclude>
{{GenerateSquireRow|Armourer|125}}
}}</pre>
{{SquireTable|
{{GenerateSquireRow|Armourer|0/0}}
{{GenerateSquireRow|Armourer|25/0}}
{{GenerateSquireRow|Armourer|50/1}}
{{GenerateSquireRow|Armourer|75/1}}
{{GenerateSquireRow|Armourer|125/2}}
}}
</noinclude>

Latest revision as of 04:46, 12 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

Squire offers junk items

Squire offers junk items

Squire offers poor items

Squire offers poor items

Squire offers common items