Difference between revisions of "Template:Item"
From Medivia Online Wiki
| Line 24: | Line 24: | ||
{{{pattributes}}} | {{{pattributes}}} | ||
| <!-- NEW FORMAT --> | | <!-- NEW FORMAT (auto detection: if no {{Attributes}} is inside) --> | ||
{{#if: {{#pos: {{{pattributes|}}} | {{Attributes}} }} | |||
| {{{pattributes}}} | |||
| | |||
{{#vardefine:arow|1}} | {{#vardefine:arow|1}} | ||
{{#arraymap: {{{pattributes|}}} | ; | x | | {{#arraymap: {{{pattributes|}}} | ; | x | | ||
{{AttributeRow | |||
{{#if: {{{x|}}} | | |||
{{AttributeRow | |||
| {{#explode: x | :: | 0}} | |||
| {{#explode: x | :: | 1}} | |||
| {{#explode: x | :: | 2}} | |||
| {{#explode: x | :: | 3}} | |||
| row={{#var:arow}} | |||
}} | |||
{{#vardefine:arow|{{#expr: {{#var:arow}} + 1}}}} | |||
}} | }} | ||
}} | }} | ||
{{Attributes | {{Attributes | ||
| name_1 = {{{name_1|}}} | | name_1 = {{{name_1|}}} | large_1 = {{{large_1|}}} | small_1 = {{{small_1|}}} | shard_1 = {{{shard_1|}}} | ||
| name_2 = {{{name_2|}}} | large_2 = {{{large_2|}}} | small_2 = {{{small_2|}}} | shard_2 = {{{shard_2|}}} | |||
| name_3 = {{{name_3|}}} | large_3 = {{{large_3|}}} | small_3 = {{{small_3|}}} | shard_3 = {{{shard_3|}}} | |||
| name_4 = {{{name_4|}}} | large_4 = {{{large_4|}}} | small_4 = {{{small_4|}}} | shard_4 = {{{shard_4|}}} | |||
| name_5 = {{{name_5|}}} | large_5 = {{{large_5|}}} | small_5 = {{{small_5|}}} | shard_5 = {{{shard_5|}}} | |||
| name_2 = {{{name_2|}}} | | name_6 = {{{name_6|}}} | large_6 = {{{large_6|}}} | small_6 = {{{small_6|}}} | shard_6 = {{{shard_6|}}} | ||
| name_7 = {{{name_7|}}} | large_7 = {{{large_7|}}} | small_7 = {{{small_7|}}} | shard_7 = {{{shard_7|}}} | |||
| name_8 = {{{name_8|}}} | large_8 = {{{large_8|}}} | small_8 = {{{small_8|}}} | shard_8 = {{{shard_8|}}} | |||
| name_3 = {{{name_3|}}} | |||
| name_4 = {{{name_4|}}} | |||
| name_5 = {{{name_5|}}} | |||
| name_6 = {{{name_6|}}} | |||
| name_7 = {{{name_7|}}} | |||
| name_8 = {{{name_8|}}} | |||
}} | }} | ||
}} | }} | ||
Revision as of 21:34, 22 November 2025
{{#if: |
You see a {{{name}}}. |
|
|---|---|
| Possible Attributes: |
{{#vardefine:arow|1}}
|
| 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=
}}