Template:Item: Difference between revisions
From Medivia Online Wiki
mNo edit summary |
No edit summary |
||
| (163 intermediate revisions by 11 users not shown) | |||
| Line 1: | Line 1: | ||
<table class="wikitable"><tr><th style="text-align: center">{{{image|}}}</th> | <table class="wikitable"> | ||
<th><div style="font-family: Tahoma; font-size: 9pt; color: # | <tr> | ||
-->You see {{{article|a}}} <!-- | <th style="text-align:center; width:17%;">{{{image|}}}</th> | ||
<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}}}}}}} <!-- | |||
--><span style="text-transform:lowercase">{{{name}}}</span><!-- | --><span style="text-transform:lowercase">{{{name}}}</span><!-- | ||
-->{{#if: {{{arm|{{{atk|{{{def|}}}}}}}}}| (<!-- | -->{{#if: {{{arm|{{{atk|{{{def|}}}}}}}}} | (<!-- | ||
-->{{#if: {{{arm|}}}|Arm:{{{arm}}}}}<!-- | -->{{#if: {{{arm|}}}|Arm:{{{arm}}}}}<!-- | ||
-->{{#if: {{{atk|}}}|Atk:{{{atk}}} | -->{{#if: {{{atk|}}}|Atk:{{{atk}}} }}<!-- | ||
-->{{#if: {{{def|}}}|Def:{{{def}}}}}<!-- | -->{{#if: {{{def|}}}|Def:{{{def}}}}}<!-- | ||
-->)}} | -->) }}{{#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.}}<!-- | -->{{#if: {{{description|}}} |{{{description}}} }}'''</div></th> | ||
-->{{#if: {{{description|}}}| | |||
</tr> | </tr> | ||
{{#if: {{{pattributes|}}}|<tr><th>'''Possible<br>Attributes:'''</th><td>{{{pattributes}}}</td></tr>}}<!-- | <!-- ================== STATYSTYKI ================== --> | ||
-->{{#if: {{{enchantable|}}}|<tr><th>'''Enchantable:'''</th><td>{{#ifeq: {{{enchantable}}}|y|✔️}}{{#ifeq: {{{enchantable}}}|n|❌}}{{#ifeq: {{{enchantable}}}|?|?}}</td></tr>}}<!-- | {{#if: {{{item_rank|}}} |<tr><th>'''[[Item Rank]]:'''</th><td>{{{item_rank}}}</td></tr>}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{properties|}}} |<tr><th>'''[[Properties]]:'''</th><td>{{{properties}}}</td></tr>}}<!-- | ||
-->{{#if: {{{arm|}}}|<tr><th>'''Arm:'''</th><td>{{{arm}}}</td></tr>}}<!-- | -->{{#if: {{{pattributes|}}} |<tr><th>'''Possible<br>[[Attributes]]:'''</th><td>{{{pattributes}}}</td></tr>}}<!-- | ||
-->{{#if: {{{weapontype|}}}|<tr><th>'''Weapon Type:'''</th><td>{{{weapontype}}}</td></tr>}}<!-- | -->{{#if: {{{enchantable|}}} |<tr><th>'''Enchantable:'''</th><td>{{#ifeq: {{{enchantable}}}|y|✔️}}{{#ifeq: {{{enchantable}}}|n|❌}}{{#ifeq: {{{enchantable}}}|?|?}}</td></tr>}}<!-- | ||
-->{{#if: {{{atk|}}}|<tr><th>'''Atk:'''</th><td>{{{atk}}}</td></tr>}}<!-- | -->{{#if: {{{effect|}}} |<tr><th>'''Effect:'''</th><td>{{{effect}}}</td></tr>}}<!-- | ||
-->{{#if: {{{def|}}}|<tr><th>'''Def:'''</th><td>{{{def}}}</td></tr>}}<!-- | -->{{#if: {{{requirement|}}} |<tr><th>'''Requirement:'''</th><td>{{{requirement|}}}</td></tr>}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{arm|}}} |<tr><th>'''Arm:'''</th><td>{{{arm}}}</td></tr>}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{weapontype|}}} |<tr><th>'''Weapon Type:'''</th><td>{{{weapontype}}}</td></tr>}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{atk|}}} |<tr><th>'''Atk:'''</th><td>{{{atk}}}</td></tr>}}<!-- | ||
--><tr><th>''' | -->{{#if: {{{atk1|}}} |<tr><th>'''Atk:'''</th><td>{{{atk1}}}</td></tr>}}<!-- | ||
--><tr><th>''' | -->{{#if: {{{def|}}} |<tr><th>'''Def:'''</th><td>{{{def}}}</td></tr>}}<!-- | ||
-->{{#if: {{{ | -->{{#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=, | |||
|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> | <tr><th>'''Buy from:'''</th><td> | ||
<table class="wikitable"><!-- | <table class="wikitable"><!-- | ||
--> {{#if: {{{ | -->{{#if: {{{buy_from_abukir|}}} |<tr><th style="width:150px">'''[[Abukir]]'''</th><td>{{{buy_from_abukir}}}</td></tr>}}<!-- | ||
--> {{#if: {{{ | -->{{#if: {{{buy_from_arak|}}} |<tr><th style="width:150px">'''[[Arak]]'''</th><td>{{{buy_from_arak}}}</td></tr>}}<!-- | ||
--> {{#if: {{{ | -->{{#if: {{{buy_from_belvez|}}} |<tr><th style="width:150px">'''[[Belvez]]'''</th><td>{{{buy_from_belvez}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_cirone|}}}|<tr><th>'''[[Cirone]]'''</th><td>{{{buy_from_cirone}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_cirone|}}} |<tr><th style="width:150px">'''[[Cirone]]'''</th><td>{{{buy_from_cirone}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_garrogat|}}}|<tr><th>'''[[Garrogat]]'''</th><td>{{{buy_from_garrogat}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_dynahall|}}} |<tr><th style="width:150px">'''[[Dynahall]]'''</th><td>{{{buy_from_dynahall}}}</td></tr>}}<!-- | ||
--> {{#if: {{{ | -->{{#if: {{{buy_from_eschen|}}} |<tr><th style="width:150px">'''[[Eschen]]'''</th><td>{{{buy_from_eschen}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_icenhaal|}}}|<tr><th>'''[[Icenhaal]]'''</th><td>{{{buy_from_icenhaal}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_falcon|}}} |<tr><th style="width:150px">'''[[Falcon]]'''</th><td>{{{buy_from_falcon}}}</td></tr>}}<!-- | ||
--> {{#if: {{{ | -->{{#if: {{{buy_from_garrogat|}}} |<tr><th style="width:150px">'''[[Garrogat]]'''</th><td>{{{buy_from_garrogat}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_medivia|}}}|<tr><th>'''[[Medivia Store]]'''</th><td>{{{buy_from_medivia}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_holdangraff|}}} |<tr><th style="width:150px">'''[[Holdangraff]]'''</th><td>{{{buy_from_holdangraff}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_medivia_page|}}}|<tr><th>'''[https://medivia.online/premium Medivia Page]'''</th><td>{{{buy_from_medivia_page}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_icenhaal|}}} |<tr><th style="width:150px">'''[[Icenhaal]]'''</th><td>{{{buy_from_icenhaal}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_nordag|}}}|<tr><th>'''[[Nordag's Isle]]'''</th><td>{{{buy_from_nordag}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_louserett|}}} |<tr><th style="width:150px">'''[[Louserett]]'''</th><td>{{{buy_from_louserett}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_novus|}}}|<tr><th>'''[[Novus]]'''</th><td>{{{buy_from_novus}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_lucindel|}}} |<tr><th style="width:150px">'''[[Lucindel]]'''</th><td>{{{buy_from_lucindel}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_osaris|}}}|<tr><th>'''[[Osaris]]'''</th><td>{{{buy_from_osaris}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_luana|}}} |<tr><th style="width:150px">'''[[Luana]]'''</th><td>{{{buy_from_luana}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_outlawcamp|}}}|<tr><th>'''[[Outlaw Camp]]'''</th><td>{{{buy_from_outlawcamp}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_medivia|}}} |<tr><th style="width:150px">'''[[Medivia Store]]'''</th><td>{{{buy_from_medivia}}}</td></tr>}}<!-- | ||
--> {{#if: {{{ | -->{{#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: {{{ | -->{{#if: {{{buy_from_mittenhoff|}}} |<tr><th style="width:150px">'''[[Mittenhoff]]'''</th><td>{{{buy_from_mittenhoff}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_vilias|}}}|<tr><th>'''[[Vilias]]'''</th><td>{{{buy_from_vilias}}}</td></tr>}} <!-- | -->{{#if: {{{buy_from_nordag|}}} |<tr><th style="width:150px">'''[[Nordag's Isle]]'''</th><td>{{{buy_from_nordag}}}</td></tr>}}<!-- | ||
--> {{#if: {{{buy_from_yehsha|}}}|<tr><th>'''[[Yehsha]]'''</th><td>{{{buy_from_yehsha}}}</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> | --></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>}} | |||
<!-- ================== SELL TO (CARGO) ================== --> | |||
<tr><th>'''Sell to:'''</th><td> | <tr><th>'''Sell to:'''</th><td> | ||
{{#cargo_query: | |||
|tables=NpcBuying, NpcData | |||
--> {{#if: {{ | |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 | |||
--> {{#if: {{ | |template=Item/SellRow | ||
|named args=yes | |||
|intro=<table class="wikitable" style="width: 100%;"> | |||
|outro=</table> | |||
|order by=NpcBuying.Price DESC | |||
|default=Players only. | |||
}} | |||
</td></tr> | |||
<!-- ================== CRAFTING ================== --> | |||
{{#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}}}}}" | ||
-->{{#if: {{{note|}}}|<tr><th>'''Note:'''</th><td>{{{note}}}</td></tr>}} | |format=template | ||
|template=Item/CraftingRow | |||
{{#if: {{{category|}}}|Go back to | |named args=yes | ||
--> | |intro=<table class="wikitable" style="width: 100%;"> | ||
|outro=</table> | |||
|default= | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#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=}} | | |||
<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= | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#if: {{{note|}}} |<tr><th>'''Note:'''</th><td>{{{note}}}</td></tr>}} | |||
</table> | |||
{{#if: {{{category|}}} |[[{{{category}}}|Go back to {{{category}}}.]]}} | |||
[[Category:Items]] | |||
<noinclude>===Usage=== | |||
<pre>{{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= | |||
}}</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=
}}
