Difference between revisions of "Template:Item"

From Medivia Online Wiki
Line 15: Line 15:
-->{{#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>
-->{{#if: {{{pattributes|}}}|<tr><th>'''Possible<br>[[Attributes]]:'''</th><td>
<!-- =========================================
    DUAL MODE ATTRIBUTE PROCESSOR
    ========================================= -->
<!-- If pattributes contains an Attributes template, show old format unchanged -->
{{#if: {{#pos: {{{pattributes|}}} | {{Attributes}} }}
| <!-- OLD FORMAT -->
  {{{pattributes}}}
| <!-- NEW FORMAT (auto detection: if no {{Attributes}} is inside) -->
{{#if: {{#pos: {{{pattributes|}}} | {{Attributes}} }}
{{#if: {{#pos: {{{pattributes|}}} | {{Attributes}} }}
  | {{{pattributes}}}
  | {{{pattributes}}}

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