Template:Item: Difference between revisions

From Medivia Online Wiki
Evohunz (talk | contribs)
No edit summary
Vezter (talk | contribs)
No edit summary
 
(325 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{| class="wiki_table"
<table class="wikitable">
|-
<tr>
| style="text-align: center" | {{{category|}}}
<th style="text-align:center; width:17%;">{{{image|}}}</th>
| &nbsp;
<th><div style="font-family: Tahoma; font-size: 9pt; color: #04ec7c; text-align: center; font-weight: bold; text-shadow: #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px, #000 0px 0px 1px;"><!--
|-
-->You see {{#ifeq:{{{category|}}}|Legs|{{{article|}}}|{{#ifeq:{{{category|}}}|Boots|{{{article|}}}|{{{article|a}}}}}}} <!--
| style="text-align: center" | {{{image|}}}
--><span style="text-transform:lowercase">{{{name}}}</span><!--
| '''{{{name|}}}'''
-->{{#if: {{{arm|{{{atk|{{{def|}}}}}}}}} |&nbsp;(<!--
{{#if: {{{arm|}}}|
-->{{#if: {{{arm|}}}|Arm:{{{arm}}}}}<!--
{{!}}-
-->{{#if: {{{atk|}}}|Atk:{{{atk}}}&nbsp;}}<!--
{{!}} '''Arm:'''
-->{{#if: {{{def|}}}|Def:{{{def}}}}}<!--
{{!}} {{{arm|}}}
-->) }}{{#if: {{{aftername|}}} |{{{aftername}}}<br>|.&nbsp;{{#ifeq: {{{holds_liquids|}}}|y|It is empty.}}<br>}}<!--
-->{{#if: {{{weight|}}} |It weighs {{{weight}}} oz.<br>}}<!--
-->{{#if: {{{description|}}} |{{{description}}} }}'''</div></th>
</tr>
<!-- ================== STATYSTYKI ================== -->
{{#if: {{{item_rank|}}}  |<tr><th>'''[[Item Rank]]:'''</th><td>{{{item_rank}}}</td></tr>}}<!--
-->{{#if: {{{properties|}}}  |<tr><th>'''[[Properties]]:'''</th><td>{{{properties}}}</td></tr>}}<!--
-->{{#if: {{{pattributes|}}} |<tr><th>'''Possible<br>[[Attributes]]:'''</th><td>{{{pattributes}}}</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: {{{requirement|}}} |<tr><th>'''Requirement:'''</th><td>{{{requirement|}}}</td></tr>}}<!--
-->{{#if: {{{arm|}}}        |<tr><th>'''Arm:'''</th><td>{{{arm}}}</td></tr>}}<!--
-->{{#if: {{{weapontype|}}}  |<tr><th>'''Weapon Type:'''</th><td>{{{weapontype}}}</td></tr>}}<!--
-->{{#if: {{{atk|}}}        |<tr><th>'''Atk:'''</th><td>{{{atk}}}</td></tr>}}<!--
-->{{#if: {{{atk1|}}}        |<tr><th>'''Atk:'''</th><td>{{{atk1}}}</td></tr>}}<!--
-->{{#if: {{{def|}}}        |<tr><th>'''Def:'''</th><td>{{{def}}}</td></tr>}}<!--
-->{{#if: {{{mlreq|}}}      |<tr><th>'''Magic Level<br>required:'''</th><td>{{{mlreq}}}</td></tr>}}<!--
-->{{#if: {{{charges|}}}    |<tr><th>'''Charges:'''</th><td>{{{charges}}}</td></tr>}}<!--
-->{{#if: {{{usecharges|}}}  |<tr><th>'''Charges<br>per hit:'''</th><td>{{{usecharges}}}</td></tr>}}<!--
-->{{#if: {{{hit|}}}        |<tr><th>'''Hit% +:'''</th><td>{{{hit}}}</td></tr>}}<!--
-->{{#if: {{{vol|}}}        |<tr><th>'''Volume:'''</th><td>{{{vol}}}</td></tr>}}<!--
-->{{#if: {{{description|}}} |<tr><th>'''Description:'''</th><td>{{{description}}}</td></tr>}}<!--
-->{{#if: {{{weight|}}}      |<tr><th>'''Weight:'''</th><td>{{{weight}}} oz</td></tr>}}<!--
-->{{#if: {{{hands|}}}      |<tr><th>'''Hands:'''</th><td>{{#ifeq: {{{hands}}}|1|One-handed.}}{{#ifeq: {{{hands}}}|2|Two-handed.}}{{#ifeq: {{{hands}}}|3|One/two-handed.*}}</td></tr>}}<!--
--><tr><th>'''Dropped by:'''</th><td>{{#if:{{{dropped_by|}}}|{{{dropped_by}}}|{{#cargo_query:
|tables=LootDrops
|fields=Monster
|where=Item="{{PAGENAME}}" OR Item="{{{name|}}}" OR Item="{{ucfirst:{{{name|}}}}}"
|group by=Monster
|order by=Monster
|format=list
|delimiter=,&nbsp;
|default=None.
}}}}</td></tr>
 
<!-- ================== BUY FROM (OLD DATA) ================== -->
{{#if: {{{buy_from_abukir|}}}{{{buy_from_arak|}}}{{{buy_from_belvez|}}}{{{buy_from_cirone|}}}{{{buy_from_dynahall|}}}{{{buy_from_eschen|}}}{{{buy_from_falcon|}}}{{{buy_from_garrogat|}}}{{{buy_from_holdangraff|}}}{{{buy_from_icenhaal|}}}{{{buy_from_louserett|}}}{{{buy_from_lucindel|}}}{{{buy_from_luana|}}}{{{buy_from_medivia|}}}{{{buy_from_medivia_page|}}}{{{buy_from_mittenhoff|}}}{{{buy_from_nordag|}}}{{{buy_from_novus|}}}{{{buy_from_osaris|}}}{{{buy_from_outlawcamp|}}}{{{buy_from_stonehome|}}}{{{buy_from_thoris|}}}{{{buy_from_vilias|}}}{{{buy_from_yehsha|}}}{{{buy_from_winterbay|}}}{{{buy_from_sheol|}}}{{{buy_from_sanctum|}}}{{{buy_from_lady|}}}{{{buy_from_mauren|}}} |
<tr><th>'''Buy from:'''</th><td>
<table class="wikitable"><!--
-->{{#if: {{{buy_from_abukir|}}}      |<tr><th style="width:150px">'''[[Abukir]]'''</th><td>{{{buy_from_abukir}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_arak|}}}        |<tr><th style="width:150px">'''[[Arak]]'''</th><td>{{{buy_from_arak}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_belvez|}}}      |<tr><th style="width:150px">'''[[Belvez]]'''</th><td>{{{buy_from_belvez}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_cirone|}}}      |<tr><th style="width:150px">'''[[Cirone]]'''</th><td>{{{buy_from_cirone}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_dynahall|}}}    |<tr><th style="width:150px">'''[[Dynahall]]'''</th><td>{{{buy_from_dynahall}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_eschen|}}}      |<tr><th style="width:150px">'''[[Eschen]]'''</th><td>{{{buy_from_eschen}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_falcon|}}}      |<tr><th style="width:150px">'''[[Falcon]]'''</th><td>{{{buy_from_falcon}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_garrogat|}}}    |<tr><th style="width:150px">'''[[Garrogat]]'''</th><td>{{{buy_from_garrogat}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_holdangraff|}}}  |<tr><th style="width:150px">'''[[Holdangraff]]'''</th><td>{{{buy_from_holdangraff}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_icenhaal|}}}    |<tr><th style="width:150px">'''[[Icenhaal]]'''</th><td>{{{buy_from_icenhaal}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_louserett|}}}    |<tr><th style="width:150px">'''[[Louserett]]'''</th><td>{{{buy_from_louserett}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_lucindel|}}}    |<tr><th style="width:150px">'''[[Lucindel]]'''</th><td>{{{buy_from_lucindel}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_luana|}}}        |<tr><th style="width:150px">'''[[Luana]]'''</th><td>{{{buy_from_luana}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_medivia|}}}      |<tr><th style="width:150px">'''[[Medivia Store]]'''</th><td>{{{buy_from_medivia}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_medivia_page|}}} |<tr><th style="width:150px">'''[https://medivia.online/premium Medivia Page]'''</th><td>{{{buy_from_medivia_page}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_mittenhoff|}}}  |<tr><th style="width:150px">'''[[Mittenhoff]]'''</th><td>{{{buy_from_mittenhoff}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_nordag|}}}      |<tr><th style="width:150px">'''[[Nordag's Isle]]'''</th><td>{{{buy_from_nordag}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_novus|}}}        |<tr><th style="width:150px">'''[[Novus]]'''</th><td>{{{buy_from_novus}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_osaris|}}}      |<tr><th style="width:150px">'''[[Osaris]]'''</th><td>{{{buy_from_osaris}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_outlawcamp|}}}  |<tr><th style="width:150px">'''[[Outlaw Camp]]'''</th><td>{{{buy_from_outlawcamp}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_stonehome|}}}   |<tr><th style="width:150px">'''[[Stonehome]]'''</th><td>{{{buy_from_stonehome}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_thoris|}}}       |<tr><th style="width:150px">'''[[Thoris]]'''</th><td>{{{buy_from_thoris}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_vilias|}}}      |<tr><th style="width:150px">'''[[Vilias]]'''</th><td>{{{buy_from_vilias}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_yehsha|}}}      |<tr><th style="width:150px">'''[[Yehsha]]'''</th><td>{{{buy_from_yehsha}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_winterbay|}}}    |<tr><th style="width:150px">'''[[Winterbay]]'''</th><td>{{{buy_from_winterbay}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_sheol|}}}       |<tr><th style="width:150px">'''[[Sheol]]'''</th><td>{{{buy_from_sheol}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_sanctum|}}}      |<tr><th style="width:150px">'''[[Sanctum]]'''</th><td>{{{buy_from_sanctum}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_lady|}}}        |<tr><th style="width:150px">'''[[White Lady]]'''</th><td>{{{buy_from_lady}}}</td></tr>}}<!--
-->{{#if: {{{buy_from_mauren|}}}      |<tr><th style="width:150px">'''[[Mauren]]'''</th><td>{{{buy_from_mauren}}}</td></tr>}}<!--
--></table>
</td></tr>|<tr><th>'''Buy from:'''</th><td>Players only.</td></tr>}}
 
<!-- ================== SELL TO (CARGO) ================== -->
<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|{{PAGENAME}}}}}"
|format=template
|template=Item/SellRow
|named args=yes
|intro=<table class="wikitable" style="width: 100%;">
|outro=</table>
|order by=NpcBuying.Price DESC
|default=Players only.
}}
}}
{{#if: {{{atk|}}}|
</td></tr>
{{!}}-
 
{{!}} '''Atk:'''
<!-- ================== CRAFTING ================== -->
{{!}} {{{atk|}}}
{{#if: {{#cargo_query:tables=CraftingRecipes|fields=Npc|where=Result_Item="{{{name|{{PAGENAME}}}}}"|limit=1|default=}} |
<tr><th>'''Obtainable via<br><small>(Crafting/Exchange)</small>:'''</th><td>
{{#cargo_query:
|tables=CraftingRecipes
|fields=Npc, Result_Item, Result_Amount, Reagent1_Item, Reagent1_Amount, Reagent2_Item, Reagent2_Amount, Reagent3_Item, Reagent3_Amount, Reagent4_Item, Reagent4_Amount, Reagent5_Item, Reagent5_Amount, Reagent6_Item, Reagent6_Amount
|where=Result_Item="{{{name|{{PAGENAME}}}}}"
|format=template
|template=Item/CraftingRow
|named args=yes
|intro=<table class="wikitable" style="width: 100%;">
|outro=</table>
|default=
}}
}}
{{#if: {{{def|}}}|
</td></tr>
{{!}}-
}}<!--
{{!}} '''Def:'''
-->{{#if: {{#cargo_query:tables=CraftingRecipes|fields=Npc|where=Reagent1_Item="{{{name|{{PAGENAME}}}}}" OR Reagent2_Item="{{{name|{{PAGENAME}}}}}" OR Reagent3_Item="{{{name|{{PAGENAME}}}}}" OR Reagent4_Item="{{{name|{{PAGENAME}}}}}" OR Reagent5_Item="{{{name|{{PAGENAME}}}}}" OR Reagent6_Item="{{{name|{{PAGENAME}}}}}"|limit=1|default=}} |
{{!}} {{{def|}}}
<tr><th>'''Used in<br><small>(Crafting/Exchange)</small>:'''</th><td>
{{#cargo_query:
|tables=CraftingRecipes
|fields=Npc, Result_Item, Result_Amount, Reagent1_Item, Reagent1_Amount, Reagent2_Item, Reagent2_Amount, Reagent3_Item, Reagent3_Amount, Reagent4_Item, Reagent4_Amount, Reagent5_Item, Reagent5_Amount, Reagent6_Item, Reagent6_Amount
|where=Reagent1_Item="{{{name|{{PAGENAME}}}}}" OR Reagent2_Item="{{{name|{{PAGENAME}}}}}" OR Reagent3_Item="{{{name|{{PAGENAME}}}}}" OR Reagent4_Item="{{{name|{{PAGENAME}}}}}" OR Reagent5_Item="{{{name|{{PAGENAME}}}}}" OR Reagent6_Item="{{{name|{{PAGENAME}}}}}"
|format=template
|template=Item/CraftingRow
|named args=yes
|intro=<table class="wikitable" style="width: 100%;">
|outro=</table>
|default=
}}
}}
{{#if: {{{weight|}}}|
</td></tr>
{{!}}-
}}<!--
{{!}} '''Weight:'''
-->{{#if: {{{note|}}} |<tr><th>'''Note:'''</th><td>{{{note}}}</td></tr>}}
{{!}} {{{weight|}}} oz.
</table>
}}
{{#if: {{{category|}}} |[[{{{category}}}|Go back to {{{category}}}.]]}}
|-
[[Category:Items]]
| '''Loot Value:'''
<noinclude>===Usage===
| {{{loot_value|Unknown.}}}
<pre>{{Item
|-
|name=
| '''Dropped by:'''
|article=
| {{{dropped_by|None.}}}
|aftername=
|-
|description=
| '''Buy from:'''
|image<!--[[File:Item.png|48px]]-->=
| {{{buy_from|Players only.}}}
|item_rank=
|-
|properties=
| '''Sell to:'''
|pattributes=
| {{{sell_to|Players only.}}}
|effect=
{{#if: {{{note|}}}|<tr><td>'''Note:'''</td><td>{{{note|}}}</td></tr>}}
|requirement=
|}
|arm=
 
|atk=
{{#if: {{{category|}}}|[[{{{category}}}|{{{category}}}]]}}
|def=
|hit=
|mlreq=
|charges=
|usecharges=
|vol=
|weight<!--00.0, include one decimal-->=
|hands=
|dropped_by=
|buy_from_city=
|coll_task=
|note=
|category=
}}</pre></noinclude>

Latest revision as of 12:33, 29 August 2026

You see a {{{name}}}
Dropped by:None.
Buy from:Players only.
Sell to:

Players only.

Usage

{{Item
|name=
|article=
|aftername=
|description=
|image<!--[[File:Item.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=
|coll_task=
|note=
|category=
}}