Difference between revisions of "Template:Item"
From Medivia Online Wiki
| (5 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
-->{{#if: {{{def|}}}|Def:{{{def}}}}}<!-- | -->{{#if: {{{def|}}}|Def:{{{def}}}}}<!-- | ||
-->)}}{{#if: {{{aftername|}}}|{{{aftername}}}<br>|. {{#ifeq: {{{holds_liquids|}}}|y|It is empty.}}<br>}}<!-- | -->)}}{{#if: {{{aftername|}}}|{{{aftername}}}<br>|. {{#ifeq: {{{holds_liquids|}}}|y|It is empty.}}<br>}}<!-- | ||
-->{{#if: {{{weight|}}}|It weighs {{{weight}}} oz.<br>}}<!-- | -->{{#if: {{{weight|}}}|It weighs {{{weight}}} oz.<br>}}<!-- | ||
-->{{#if: {{{description|}}}|{{{description}}}}}'''</div></th> | -->{{#if: {{{description|}}}|{{{description}}}}}'''</div></th> | ||
| Line 66: | Line 66: | ||
--></table> | --></table> | ||
</td></tr>| | </td></tr>| | ||
<tr><th>'''Buy from:'''</th><td>Players only.</td></tr>}} | <tr><th>'''Buy from:'''</th><td>Players only.</td></tr>}}<!-- | ||
{{#if: {{{sell_to_luana| {{{sell_to_lucindel| {{{sell_to_abukir| {{{sell_to_thoris| {{{sell_to_cirone| {{{sell_to_garrogat| {{{sell_to_holdangraff| {{{sell_to_dynahall| {{{sell_to_icenhaal| {{{sell_to_mittenhoff| {{{sell_to_medivia| {{{sell_to_nordag| {{{sell_to_novus| {{{sell_to_osaris| {{{sell_to_outlawcamp| {{{sell_to_eschen| {{{sell_to_arak| {{{sell_to_vilias| {{{sell_to_yehsha| {{{sell_to_winterbay| {{{sell_to_belvez| {{{sell_to_stonehome| {{{sell_to_sheol| {{{sell_to_sanctum|{{{sell_to_lady| {{{sell_to_falcon| {{{sell_to_mauren| }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}| | --><tr><th>'''Sell to:'''</th><td> | ||
<tr><th>'''Sell to:'''</th><td> | {{#cargo_query: | ||
|tables=NpcBuying, NpcData | |||
|join on=NpcBuying.Npc_Name=NpcData.Name | |||
|fields=NpcData.City=City, NpcBuying.Npc_Name=Npc_Name, NpcBuying.Price=Price | |||
|where=NpcBuying.Item_Name='{{{name|}}}' | |||
|format=template | |||
|template=Item/SellRow | |||
|named args=yes | |||
|intro=<table class="wikitable"> | |||
|outro=</table> | |||
|order by=NpcBuying.Price DESC | |||
|default=Players only. | |||
}} | |||
</td></tr><!-- | |||
-->{{#if: {{{sell_to_luana| {{{sell_to_lucindel| {{{sell_to_abukir| {{{sell_to_thoris| {{{sell_to_cirone| {{{sell_to_garrogat| {{{sell_to_holdangraff| {{{sell_to_dynahall| {{{sell_to_icenhaal| {{{sell_to_mittenhoff| {{{sell_to_medivia| {{{sell_to_nordag| {{{sell_to_novus| {{{sell_to_osaris| {{{sell_to_outlawcamp| {{{sell_to_eschen| {{{sell_to_arak| {{{sell_to_vilias| {{{sell_to_yehsha| {{{sell_to_winterbay| {{{sell_to_belvez| {{{sell_to_stonehome| {{{sell_to_sheol| {{{sell_to_sanctum|{{{sell_to_lady| {{{sell_to_falcon| {{{sell_to_mauren| }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}| | |||
<tr><th>'''Sell to <br><small>(Old Data)</small>:'''</th><td> | |||
<table class="wikitable"><!-- | <table class="wikitable"><!-- | ||
--> {{#if: {{{sell_to_abukir|}}}|<tr><th style="width:150px">'''[[Abukir]]'''</th><td>{{{sell_to_abukir}}}</td></tr>}} <!-- | --> {{#if: {{{sell_to_abukir|}}}|<tr><th style="width:150px">'''[[Abukir]]'''</th><td>{{{sell_to_abukir}}}</td></tr>}} <!-- | ||
| Line 98: | Line 113: | ||
--> {{#if: {{{sell_to_mauren|}}}|<tr><th style="width:150px">'''[[Mauren]]'''</th><td>{{{sell_to_mauren}}}</td></tr>}} <!-- | --> {{#if: {{{sell_to_mauren|}}}|<tr><th style="width:150px">'''[[Mauren]]'''</th><td>{{{sell_to_mauren}}}</td></tr>}} <!-- | ||
--> </table> | --> </table> | ||
</td></tr>| | </td></tr>|}}<!-- | ||
-->{{#if: {{{exchange_at_serena| {{{exchange_at_andre| {{{exchange_at_aphotis| {{{exchange_at_ruppelheldmann| {{{exchange_at_hasain| {{{exchange_at_morgan| {{{exchange_at_valeryn| {{{exchange_at_tristan| }}} }}} }}} }}} }}} }}} }}} }}}| | -->{{#if: {{{exchange_at_serena| {{{exchange_at_andre| {{{exchange_at_aphotis| {{{exchange_at_ruppelheldmann| {{{exchange_at_hasain| {{{exchange_at_morgan| {{{exchange_at_valeryn| {{{exchange_at_tristan| }}} }}} }}} }}} }}} }}} }}} }}}| | ||
<tr><th>'''Exchange at:'''</th><td> | <tr><th>'''Exchange at:'''</th><td> | ||
| Line 110: | Line 124: | ||
--> {{#if: {{{exchange_at_morgan|}}}|<tr><th style="width:150px">'''[[Captain Morgan]]'''</th><td>{{{exchange_at_morgan}}}</td></tr>}} | --> {{#if: {{{exchange_at_morgan|}}}|<tr><th style="width:150px">'''[[Captain Morgan]]'''</th><td>{{{exchange_at_morgan}}}</td></tr>}} | ||
<!-- | <!-- | ||
--> {{#if: {{{exchange_at_valeryn|}}}|<tr><th style="width:150px">'''[[Valeryn]]'''</th><td>{{{exchange_at_valeryn}}}</td></tr>}} | --> {{#if: {{{exchange_at_valeryn|}}}|<tr><th style="width:150px">'''[[Valeryn]]'''</th><td>{{{exchange_at_valeryn}}}</td></tr>}} | ||
<!-- | <!-- | ||
--> {{#if: {{{exchange_at_tristan|}}}|<tr><th style="width:150px">'''[[Tristan]]'''</th><td>{{{exchange_at_tristan}}}</td></tr>}} | --> {{#if: {{{exchange_at_tristan|}}}|<tr><th style="width:150px">'''[[Tristan]]'''</th><td>{{{exchange_at_tristan}}}</td></tr>}} | ||
<!-- | <!-- | ||
--></table> | --></table> | ||
Latest revision as of 10:04, 16 August 2026
You see a {{{name}}}. |
|
|---|---|
| Dropped by: | None. |
| Buy from: |
|
| Sell to: |
Error: Table NpcData not found.
|
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=
}}