Difference between revisions of "Template:Item"

From Medivia Online Wiki
Line 14: Line 14:
{{#if: {{{item_rank|}}}|<tr><th>'''[[Item Rank]]:'''</th><td>{{{item_rank}}}</td></tr>}}<!--
{{#if: {{{item_rank|}}}|<tr><th>'''[[Item Rank]]:'''</th><td>{{{item_rank}}}</td></tr>}}<!--
-->{{#if: {{{properties|}}}|<tr><th>'''[[Properties]]:'''</th><td>{{{properties}}}</td></tr>}}<!--
-->{{#if: {{{properties|}}}|<tr><th>'''[[Properties]]:'''</th><td>{{{properties}}}</td></tr>}}<!--
-->{{#if: {{{pattributes|}}}|<tr><th>'''Possible<br>[[Attributes]]:'''</th><td>{{{pattributes}}}</td></tr>}}<!--
-->{{#if: {{{pattributes|}}}|<tr><th>'''Possible<br>[[Attributes]]:'''</th><td>{{#vardefine:arow|1}}
{{#arraymap: {{{pattributes|}}} | ; | x |
  {{AttributeRow
    | {{#explode: x | | | 0}}
    | {{#explode: x | | | 1}}
    | {{#explode: x | | | 2}}
    | {{#explode: x | | | 3}}
    | row={{#var:arow}}
  }}
  {{#vardefine:arow|{{#expr: {{#var:arow}} + 1}}}}
}}
</td></tr>}}<!--
-->{{#if: {{{enchantable|}}}|<tr><th>'''Enchantable:'''</th><td>{{#ifeq: {{{enchantable}}}|y|✔️}}{{#ifeq: {{{enchantable}}}|n|❌}}{{#ifeq: {{{enchantable}}}|?|?}}</td></tr>}}<!--
-->{{#if: {{{enchantable|}}}|<tr><th>'''Enchantable:'''</th><td>{{#ifeq: {{{enchantable}}}|y|✔️}}{{#ifeq: {{{enchantable}}}|n|❌}}{{#ifeq: {{{enchantable}}}|?|?}}</td></tr>}}<!--
-->{{#if: {{{effect|}}}|<tr><th>'''Effect:'''</th><td>{{{effect}}}</td></tr>}}<!--
-->{{#if: {{{effect|}}}|<tr><th>'''Effect:'''</th><td>{{{effect}}}</td></tr>}}<!--

Revision as of 21:26, 22 November 2025

You see a {{{name}}}
Dropped by:None.
Buy from:
Sell to:Players only.

Usage

{{Item
|name=
|article=
|aftername=
|description=
|image<!--[[File:.gif OR .png|48px]]-->=
|item_rank=
|properties=
|pattributes=
|effect=
|requirement=
|arm=
|atk=
|def=
|hit=
|mlreq=
|charges=
|usecharges=
|vol=
|weight<!--00.0, include one decimal-->=
|hands=
|dropped_by=
|buy_from_city=
|sell_to_city=
|exchange_in_city=
|craft_at_npc=
|coll_task=
|note=
|category=
}}