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> | ||
{{#if: {{# | |||
| {{{pattributes}}} | <!-- DUAL MODE: OLD FORMAT OR NEW FORMAT --> | ||
{{#if: {{#strpos: {{{pattributes|}}} | {{Attributes}} }} | |||
| | |||
<!-- OLD FORMAT — use as-is --> | |||
{{{pattributes}}} | |||
| | | | ||
<!-- NEW FORMAT --> | |||
{{#vardefine:arow|1}} | {{#vardefine:arow|1}} | ||
{{#arraymap: {{{pattributes|}}} | ; | x | | {{#arraymap: {{{pattributes|}}} | ; | x | | ||
{{#if: {{ | <!-- Skip empty rows --> | ||
{{#if: {{trim: x}} | | |||
{{AttributeRow | {{AttributeRow | ||
| {{#explode: x | :: | 0}} | | {{#explode: {{trim: x}} | :: | 0}} | ||
| {{#explode: x | :: | 1}} | | {{#explode: {{trim: x}} | :: | 1}} | ||
| {{#explode: x | :: | 2}} | | {{#explode: {{trim: x}} | :: | 2}} | ||
| {{#explode: x | :: | 3}} | | {{#explode: {{trim: x}} | :: | 3}} | ||
| row={{#var:arow}} | | row={{#var:arow}} | ||
}} | }} | ||
{{#vardefine:arow|{{#expr: {{#var:arow}} + 1}}}} | {{#vardefine:arow|{{#expr: {{#var:arow}} + 1}}}} | ||
}} | }} | ||
}} | }} | ||
<!-- 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 47: | Line 59: | ||
</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>}}<!-- | ||
-->{{#if: {{{effect|}}}|<tr><th>'''Effect:'''</th><td>{{{effect}}}</td></tr>}}<!-- | -->{{#if: {{{effect|}}}|<tr><th>'''Effect:'''</th><td>{{{effect}}}</td></tr>}}<!-- | ||
Revision as of 21:37, 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=
}}