Difference between revisions of "Template:Acquired from test"

From Stoneshard wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><!-- Load item data into variables --><!--
<includeonly><!--
-->{{#vardefine:Material|{{lc:{{:Weapon_data|{{ROOTPAGENAME}}|Material}}}}}}<!--
--><!-- Check if item has data in Armor data or Weapon data, define appropriate data page as variable --><!--
-->{{#vardefine:Tags|{{lc:{{:Weapon_data|{{ROOTPAGENAME}}|Tags}}}}}}<!--
-->{{#vardefine:Datapage|{{#ifeq:{{:Weapon_data|{{ROOTPAGENAME}}|Slot}}|Data does not exist.|Armor_data|Weapon_data}}}}<!--
-->{{#vardefine:LVL|{{:Weapon_data|{{ROOTPAGENAME}}|LVL}}}}<!--
--><!-- Load item data into variables --><!--
--><!-- RINGS and AMULETS are only sold by JEWELERS and GENERAL MERCHANTS, create a variable to skip all others --><!--
-->{{#vardefine:Material|{{lc:{{:{{#var:Datapage}}|{{ROOTPAGENAME}}|Material}}}}}}<!--
-->{{#vardefine:Slot|{{#pos: ring|{{lc:{{:Weapon_data|{{ROOTPAGENAME}}|Slot}}}}}}{{#pos: amulet|{{lc:{{:Weapon_data|{{ROOTPAGENAME}}|Slot}}}}}}}}<!--
-->{{#vardefine:Tags|{{lc:{{:{{#var:Datapage}}|{{ROOTPAGENAME}}|Tags}}}}}}<!--
-->{{#vardefine:LVL|{{:{{#var:Datapage}}|{{ROOTPAGENAME}}|LVL}}}}<!--
--><!-- RINGS and AMULETS are only sold by JEWELERS, GENERAL MERCHANTS, PAWNSHOP and DOCK ELF, define a variable to easily skip others --><!--
-->{{#vardefine:Jewelry|{{#pos: ring|{{lc:{{:{{#var:Datapage}}|{{ROOTPAGENAME}}|Slot}}}}}}{{#pos: amulet|{{lc:{{:{{#var:Datapage}}|{{ROOTPAGENAME}}|Slot}}}}}}}}<!--
<!-- Define LVL adjustments at reputation levels into variables --><!--
<!-- Define LVL adjustments at reputation levels into variables --><!--
-->{{#vardefine:Hatred|-4}}<!--
-->{{#vardefine:Hatred|-4}}<!--
Line 14: Line 17:
--><!-- List all the merchants and remove lines based on variables. --><!--
--><!-- List all the merchants and remove lines based on variables. --><!--
--><!-- Check if item is JEWELRY --><!--
--><!-- Check if item is JEWELRY --><!--
-->{{#if: {{#var:Slot}}
-->{{#if: {{#var:Jewelry}}
||<!-- Using pos to check if item's material type is sold by the merchant. --><!--
||<!-- Using pos to check if item's material type is sold by the merchant. --><!--
--><!-- TAILORS only sell CLOTH and LEATHER --><!--
--><!-- TAILORS only sell CLOTH and LEATHER --><!--

Revision as of 17:41, 16 December 2022

This template has no documentation. If you know how to use this template, please add some.