Difference between revisions of "Template:InfoBox UO Recipe"

m
m
Line 1: Line 1:
<includeonly>{{#arraydefine:graphic_is_wearable|{{UOGraphicList_wearable}}}}{{#arraydefine:ingreds| <!--The extra commas here are to allow clean newlines between different items. -->
+
<includeonly>{{#arraydefine:graphic_is_wearable|{{UOGraphicList_wearable}}}}{{#vardefine: wearSlot|{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|1}} }}{{#arraydefine:ingreds| <!--The extra commas here are to allow clean newlines between different items. -->
 
,Unabridged Atlas Of Eodon,
 
,Unabridged Atlas Of Eodon,
 
,Level 1 Treasure Map,
 
,Level 1 Treasure Map,
Line 269: Line 269:
 
|-
 
|-
 
| Wearable Slot
 
| Wearable Slot
| {{#arraydefine:graphic_is_wearable|{{UOGraphicList_wearable}}}}{{#ifeq:{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|0}}|{{{graphic}}}|{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|1}}|No}}
+
| {{#if: {{#var: wearSlot}} |{{#var: wearSlot}}[[Category:UO {{#var: wearSlot}}-Slot Items]]|None}}
 
|-
 
|-
 
| Wieldable
 
| Wieldable
Line 295: Line 295:
 
|style="white-space: nowrap;"|{{#arrayprint:ingreds| |@@@@|{{#if:{{{@@@@|}}}|{{{@@@@|}}} {{UO_Image|image|@@@@}}{{#ifeq:{{PAGEID}}|187693||[[Category:UO Craftable Items Using @@@@]]}}<br> }} }}
 
|style="white-space: nowrap;"|{{#arrayprint:ingreds| |@@@@|{{#if:{{{@@@@|}}}|{{{@@@@|}}} {{UO_Image|image|@@@@}}{{#ifeq:{{PAGEID}}|187693||[[Category:UO Craftable Items Using @@@@]]}}<br> }} }}
 
|}
 
|}
 
{{#vardefine: wearSlot|{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphic}}};\w?/|0}}|-1}}|;|1}} }}
 
{{#vardefine: wearSlotTest|{{#explode:{{#arrayindex:graphic_is_wearable|{{#arraysearch:graphic_is_wearable|/{{{graphicaaaa}}};\w?/|0}}|-1}}|;|1}} }}
 
 
{{#if: {{#var: wearSlot}}|Yes}}
 
{{#if: {{#var: wearSlotTest}}|Yes|No}}
 
 
 
</includeonly>
 
</includeonly>

Revision as of 14:04, 10 August 2017