Powered by MediaWiki

  Template  Discussion  View source  History 

Template:Item

From TheKolWiki

Image:Chest.gif This high-use template has been protected from editing to prevent inaccurate edits and/or vandalism. Please use the talk page to discuss changes, and/or to ask an administrator to make an edit for you.
{{Item}}
<includeonly>{{#switch:{{{verify}}}|

1=<table align="center" cellspacing="2" style="border: solid 1px #000000"><tr align="center"> <td style="border: solid 1px">[[image:Question.gif|60px]]</td> <td>Data on this page needs [[:Category:Needs Confirm|confirmation]].<br /> '''Item description needs to be verified against current in-game data.<br />Once it has been verified, remove the "verify=1|" line.'''</td> </tr></table>[[Category:Needs Confirm| {{PAGENAME}}]]| 2=<table align="center" cellspacing="2" style="border: solid 1px #000000"><tr align="center"> <td style="border: solid 1px">[[image:Question.gif|60px]]</td> <td>This item's description cannot be verified, as it no longer exists within the game.</td> </tr></table>| 3=<table align="center" cellspacing="2" style="border: solid 1px #000000"><tr align="center"> <td style="border: solid 1px">[[image:nopic.gif|60px]]</td> <td>This item does not exist in the game - it is merely a figment of some user's imagination</td> </tr></table>}}<div style="position:relative"><div style="font-size:80%;text-align:right;position:absolute;top:0px;right:15px;">{{#ifexist:Data:{{PAGENAME}}|[[Data:{{PAGENAME}}|View metadata]]|'''<span class="plainlinks">[{{fullurle:Data:{{PAGENAME}}|action=edit&preload=Template:Item/data}} Create metadata]</span>'''[[Category:Unrecognized Items]]}}<br />{{#if:{{{noid|}}}||{{

 #if:{{{itemid|}}}|'''[[Items by number ({{
   #ifexpr:{{{itemid}}} < 100|1-99|{{#expr:({{{itemid}}} - 50) round -2}}-{{#expr:(({{{itemid}}} + 50) round -2) - 1}}}})|Item number]]:''' {{{itemid}}}|{{#ifexpr:{{{noid|0}}}!=1 and {{{verify|0}}}<2|Item ID not known![[Category:Incomplete]]}}}}<br />{{
  1. if:{{{descid|}}}|'''Description ID:''' {{{descid}}}<br />'''View in-game:''' {{ingame link|path=desc_item.php?whichitem={{{descid}}}}}|{{#ifexpr:{{{noid|0}}}!=1 and {{{verify|0}}}<2|Description ID not known![[Category:Incomplete]]}}}}<br />{{#if:{{{notrade|}}}||{{#if:{{{itemid|}}}|'''[http://kol.coldfront.net/index.php/content/view/624/49?itemid={{{itemid}}} View market statistics]'''}}}}}}</div><p style="text-align:center;">[[image:{{Data1|{{PAGENAME}}|image|nopic2.gif}}|{{Data1|{{PAGENAME}}|name|Unknown item name}}]]<br />{{#if:{{{haiku|}}}||'''{{Data1|{{PAGENAME}}|name|Unknown item name}}'''}}</p>

{{#if:{{{haiku|}}}|'''{{Data1|{{PAGENAME}}|name|Unknown item name}}'''<br />}}{{{desc|}}}<br />{{#if:{{{paste|}}}|<br /> ([[Meat Pasting]] component){{#ifeq:{{{verify}}}|3||[[Category:Meat Pasting Components]]}}}}{{#if:{{{smith|}}}|<br /> ([[Meatsmithing]] component){{#ifeq:{{{verify}}}|3||[[Category:Meatsmithing Components]]}}}}{{#if:{{{cook|}}}|<br /> ([[Cooking]] ingredient){{#ifeq:{{{verify}}}|3||[[Category:Cooking Ingredients]]}}}}{{#if:{{{cocktail|}}}|<br /> ([[Cocktailcrafting]] ingredient){{#ifeq:{{{verify}}}|3||[[Category:Cocktailcrafting Ingredients]]}}}}{{#if:{{{jewelry|}}}|<br /> ([[Jewelrymaking]] component){{#ifeq:{{{verify}}}|3||[[Category:Jewelrymaking Components]]}}}}{{#if:{{{type|}}}|<br /> Type: '''{{{type}}}'''}}{{#if:{{{power|}}}|<br /> {{{powertype|Power}}}: '''{{{power}}}'''}}{{#if:{{{stat|}}}|<br /> [[{{{stat}}}]] Required: '''{{{statreq}}}'''}}{{#if:{{{level|}}}|{{#ifexpr:{{{level}}} > 1|<br /> Level required: '''{{{level}}}'''}}[[Category:{{#switch:{{{type}}}|food|beverage=Food|booze=Booze|usable=Spleentacular Items|ERROR}} (By Level Requirement)|{{#switch:{{{level}}}|1|2|3|4|5|6|7|8|9={{{level}}}|10=A|11=B|12=C|13=D|14=E|15=F|*}}, {{PAGENAME}}]]}}{{#if:{{{outfit|}}}|<br /> Outfit: '''[[{{{outfit}}}]]'''.}}{{#ifexpr:{{{autosell|0}}}>0|<br /> Selling Price: '''{{{autosell}}} Meat.'''}}{{#if:{{{cost|}}}|<br /> Cost: '''{{{cost}}} Meat'''}}{{#if:{{{notrade|}}}|<br /> Cannot be traded}}{{#ifeq:{{{autosell}}}|0|<br /> Cannot be discarded}}{{#if:{{{hagnk|}}}|<br /> Free pull from Hagnk's[[Category:Free Pulls]]}}{{#if:{{{quest|}}}|<br /> '''Quest Item'''[[Category:Quest Items]]}}{{#if:{{{gift|}}}|<br /> '''Gift Item'''}} {{#if:{{{enchantment|}}}|<p style="text-align:center;">Enchantment:<br /><span style="color:blue; font-weight:bold;">{{{enchantment|}}}</span></p>}}{{#if:{{{critical|}}}|<br /> '''NOTE:''' If you wear multiple items that increase Critical Hit chances, only the highest multiplier applies.}}{{#if:{{{mpreduce|}}}|<br /> '''NOTE:''' Items that reduce the MP cost of skills will not do so by more than 3 points, in total.}}{{#if:{{{nohardcore|}}}|<br /> '''NOTE:''' This item cannot be equipped while in Hardcore.}}{{#if:{{{spelltype|}}}|<br /> '''NOTE:''' This item only works for {{{spelltype|}}} Spells.}}{{#if:{{{limit|}}}|<br /> '''NOTE:''' You may not equip more than one of this item at a time.[[Category:Equipment With Quantity Limitations]]}}{{#if:{{{pastaonly|}}}|<br /> <span style="color:blue; font-weight:bold;">Only Pastamancers may use this item.</span>}}<br /> <br />{{#ifeq:{{{verify|0}}}|3||{{Item/plural|{{Data1|{{PAGENAME}}|plural|UNKNOWN}}}}}}</div></includeonly><noinclude> {{prot_high-use}} {{Code2}}

==Usage==

&#123;{item|
  itemid=''<span style="font-family: sans-serif">item number</span>''|
  descid=''<span style="font-family: sans-serif">description id</span>''|
  desc=''<span style="font-family: sans-serif">in-game description</span>''|
  ''<span style="font-family: sans-serif">other option</span>''=''<span style="font-family: sans-serif">value</span>''|
  ''<span style="font-family: sans-serif">etc.</span>''}}

Other options can be:

  • <code>noid=1</code> to suppress warnings of missing item/description IDs
  • <code>paste=1</code> for [[meat paste|meat pasting]] components
  • <code>smith=1</code> for [[meatsmithing]] components
  • <code>cook=1</code> for [[cooking]] ingredients
  • <code>cocktail=1</code> for [[cocktailcrafting]] ingredients
  • <code>jewelry=1</code> for [[jewelrymaking]] components
  • <code>type=</code>''type'' for items with a "Type: " line, like [[pants]], [[food]], etc.
  • <code>power=</code>''power'' for weapons and armor
    • You can also add <code>powertype=</code>''type'' to change what type of power, like "Damage Reduction" for shields.
  • <code>stat=</code>''Muscle, Mysticality or Moxie''<code>|statreq=</code>''requirement'' for equipment with a stat requirement
  • <code>level=</code>''level'' for food/beverage/booze/spleen items (specify '1' if there is no level requirement visible)
  • <code>outfit=</code>''outfit name'' for equipment in [[outfit]]s
  • <code>notrade=1</code> for untradable items
  • <code>cost=</code>''value'' for automatically-consumed-upon-purchase-only items
  • <code>autosell=</code>''value'' for [[autosell]]able items
    • <code>autosell=0</code> for items that cannot be discarded
  • <code>quest=1</code> for [[quest items]]
  • <code>gift=1</code> for [[gift items]]
  • <code>enchantment=</code>''enchantment'' for enchanted equipment
  • <code>critical=1</code> for items that increase critical hit chance.
  • <code>mpreduce=1</code> for items that reduce MP cost of skills.
  • <code>nohardcore=1</code> for items that cannot be equipped in Hardcore.
  • <code>spelltype=</code>''classes'' for items which only affect spells for specific classes.
  • <code>limit=1</code> for items that you can only equip one at a time
  • <code>pastaonly=1</code> for [[Pastamancer combat ghosts]]
  • <code>hagnk=1</code> for items that can be pulled from [[Hagnk's Ancestral Mini-Storage]] during Hardcore or Ronin without counting as an item pull
  • <code>verify=1</code> if anything needs to be verified
  • <code>verify=2</code> if the item no longer exists and cannot possibly be verified
  • <code>verify=3</code> for custom items placed on user pages and such
  • <code>haiku=1</code> for items whose item name is displayed left-justified

==Usage Notes==

  • Item numbers can be found by following the instructions for one of the approaches discussed in [[Items by number]] (usually involves viewing the frame source).
  • Description IDs are found in links to or the location of an item's description page and can again be read using the same view frame source technique used above.
  • Any page which uses this template must also incorporate a metadata page to hold the item's name, plural, and image.

[[Category:Standardization Templates|{{PAGENAME}}]]

</noinclude>

Usage

{{item|
  itemid=item number|
  descid=description id|
  desc=in-game description|
  other option=value|
  etc.}}

Other options can be:

  • noid=1 to suppress warnings of missing item/description IDs
  • paste=1 for meat pasting components
  • smith=1 for meatsmithing components
  • cook=1 for cooking ingredients
  • cocktail=1 for cocktailcrafting ingredients
  • jewelry=1 for jewelrymaking components
  • type=type for items with a "Type: " line, like pants, food, etc.
  • power=power for weapons and armor
    • You can also add powertype=type to change what type of power, like "Damage Reduction" for shields.
  • stat=Muscle, Mysticality or Moxie|statreq=requirement for equipment with a stat requirement
  • level=level for food/beverage/booze/spleen items (specify '1' if there is no level requirement visible)
  • outfit=outfit name for equipment in outfits
  • notrade=1 for untradable items
  • cost=value for automatically-consumed-upon-purchase-only items
  • autosell=value for autosellable items
    • autosell=0 for items that cannot be discarded
  • quest=1 for quest items
  • gift=1 for gift items
  • enchantment=enchantment for enchanted equipment
  • critical=1 for items that increase critical hit chance.
  • mpreduce=1 for items that reduce MP cost of skills.
  • nohardcore=1 for items that cannot be equipped in Hardcore.
  • spelltype=classes for items which only affect spells for specific classes.
  • limit=1 for items that you can only equip one at a time
  • pastaonly=1 for Pastamancer combat ghosts
  • hagnk=1 for items that can be pulled from Hagnk's Ancestral Mini-Storage during Hardcore or Ronin without counting as an item pull
  • verify=1 if anything needs to be verified
  • verify=2 if the item no longer exists and cannot possibly be verified
  • verify=3 for custom items placed on user pages and such
  • haiku=1 for items whose item name is displayed left-justified

Usage Notes

  • Item numbers can be found by following the instructions for one of the approaches discussed in Items by number (usually involves viewing the frame source).
  • Description IDs are found in links to or the location of an item's description page and can again be read using the same view frame source technique used above.
  • Any page which uses this template must also incorporate a metadata page to hold the item's name, plural, and image.
This page was last modified on 2 November 2008, at 06:10.
This page has been accessed 2,770 times.
About TheKolWiki  Disclaimers
 
© 2005 - 2008 Coldfront L.L.C.
About Coldfront | Privacy Policy | Advertising