Difference between revisions of "Template:Item"

From Medivia Online Wiki
Line 17: Line 17:


<!-- DUAL MODE: OLD FORMAT OR NEW FORMAT -->
<!-- DUAL MODE: OLD FORMAT OR NEW FORMAT -->
{{#if: {{#strpos: {{{pattributes|}}} | {{Attributes}} }}
{{#if: {{#strpos: {{{pattributes|}}} | {{!}}{{!}}Attributes }}
  |  
  |
   <!-- OLD FORMAT — use as-is -->
   <!-- OLD FORMAT: show unchanged -->
   {{{pattributes}}}
   {{{pattributes}}}


Line 28: Line 28:
   {{#arraymap: {{{pattributes|}}} | ; | x |
   {{#arraymap: {{{pattributes|}}} | ; | x |


    <!-- Skip empty rows -->
     {{#if: {{trim: x}} |
     {{#if: {{trim: x}} |


Line 45: Line 44:
   }}
   }}


  <!-- FEED VALUES INTO ATTRIBUTES TABLE -->
   {{Attributes
   {{Attributes
     | name_1 = {{{name_1|}}} | large_1 = {{{large_1|}}} | small_1 = {{{small_1|}}} | shard_1 = {{{shard_1|}}}
     | name_1 = {{{name_1|}}} | large_1 = {{{large_1|}}} | small_1 = {{{small_1|}}} | shard_1 = {{{shard_1|}}}
Line 59: Line 57:


</td></tr>}}<!--
</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>}}<!--

Revision as of 21:38, 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=
}}