Template:Wrldwzrd89/Item/Common

From A KoL Wiki
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.
__NOTOC__<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>'''{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Unrecognized Items]]}}}}<br />{{#if:{{{noid|}}}||{{

#if:{{{itemid|}}}|'''[[Items by number ({{#ifexpr:{{{itemid}}} < 0|negative|{{ #ifexpr:{{{itemid}}} < 100|1-99|{{#expr:({{{itemid}}} - 50) round -2}}-{{#expr:(({{{itemid}}} + 50) round -2) - 1}}}}}})|Item number]]:''' {{{itemid}}}|{{#if:{{{noid|}}}||Item ID not known!{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Incomplete]]}}}}}}<br />{{ #if:{{{descid|}}}|'''Description ID:''' {{{descid}}}<br />'''View in-game:''' {{ingame link|path=desc_item.php?whichitem={{{descid}}}}}|{{#if:{{{noid|}}}||Description ID not known!{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Incomplete]]}}}}}}<br />{{#if:{{{notrade|}}}{{{gift|}}}||{{#if:{{{itemid|}}}|'''[http://kol.coldfront.net/newmarket/itemgraph.php?itemid={{{itemid}}}&timespan=1&noanim=0 View market statistics]'''}}}}}}</div>{{#if:{{{haiku|}}}|<div style="text-align:center">}}<p style="text-align:center">[[File:{{Data|{{PAGENAME}}|image|nopic2.gif}}|{{Data|{{PAGENAME}}|name|Unknown item name}}]]<br />'''{{Data|{{PAGENAME}}|name|Unknown item name}}'''{{#if:{{{alsocombat|}}}|<br /> (can also be used in combat){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Combat Items]]}}}}{{#if:{{{notrade|}}}|<br /> Cannot be traded {{#ifeq:{{{autosell}}}|0|or discarded}}|{{#ifeq:{{{autosell}}}|0|<br /> Cannot be discarded}}}}{{#if:{{{hagnk|}}}|<br /> Free pull from Hagnk's{{#switch:{{{hagnk|}}}|aob|boris=&nbsp;(for Avatar of Boris only)|#default=}}{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Free Pulls]]}}}}{{#if:{{{quest|}}}|<br /> '''Quest Item'''{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Quest Items]]}}}}{{#if:{{{gift|}}}|<br /> '''Gift Item'''{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Gift Items]]}}}}{{#if:{{{enchantment|}}}|<p style="text-align:center">Enchantment:<br /><span style="color:blue;font-weight:bold">{{{enchantment|}}}{{#if:{{{enchclass|}}}|<br /><br />(Bonus for {{#switch:{{{enchclass|}}}|sc=Seal Clubbers|tt=Turtle Tamers|at=Accordion Thieves|db=Disco Bandits|pm=Pastamancers|s=Saucerors}} only)}}</span></p>}}{{#if:{{{grantskill|}}}|<br /> '''NOTE:''' This item grants a {{#switch:{{{grantskill|}}}|at=skill that can only be used by Accordion Thieves.|db=skill that can only be used by Disco Bandits.|s=skill that can only be used by Saucerors.|pm=skill that can only be used by Pastamancers.|sc=skill that can only be used by Seal Clubbers.|tt=skill that can only be used by Turtle Tamers.|skill.}}}}{{#if:{{{lounge|}}}|<br /> '''NOTE:''' When used, this item will be installed in your Clan Hall's VIP Lounge, and will be usable by anybody in your Clan with VIP Lounge access.}}{{#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:{{{class|}}}|<br /><br /><span style="color:blue;font-weight:bold">Only {{#switch:{{{class}}}|sc=Seal Clubbers|pm=Pastamancers|at=Accordion Thieves|db=Disco Bandits|tt=Turtle Tamers|s=Saucerors}} may use this item.</span>}}{{#if:{{{note1|}}}|<br /> '''NOTE:''' {{{note1|}}}}}{{#if:{{{note2|}}}|<br /> '''NOTE:''' {{{note2|}}}}}{{#if:{{{anote|}}}|<br /><nowiki>*</nowiki>{{{anote}}}}}{{#if:{{{bluenote|}}}|<br /><br /><span style="color: blue;font-weight:bold">{{{bluenote}}}</span>}}{{#if:{{{haiku|}}}|</div>}}<br /><br />{{

Item/plural|{{Data|{{PAGENAME}}|plural|UNKNOWN}}}}</div>

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
  • alsocombat=1 For items with the parenthetical "(can also be used in combat)" in their description.
  • notrade=1 for untradable items
  • autosell=value for autosellable items
    • autosell=0 for items that cannot be discarded
  • quest=1 for quest items
  • gift=1 for gift items
  • 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.
  • class=class abbreviation for items that can only be used by a particular class.
    • pm=Pastamancers
    • s=Saucerors
    • db=Disco Bandits
    • at=Accordion Thieves
    • sc=Seal Clubbers
    • tt=Turtle Tamers
  • hagnk=1 for items that can be pulled from Hagnk's Ancestral Mini-Storage during Hardcore or Ronin without counting as an item pull
  • autocat=no to prevent this template from performing various automatic categorizations, such as for examples. This may not prevent other templates used within this one (such as {{Item/plural}}) from categorizing the page, however.
  • grantskill=1 for those skills that indicate that they grant a skill in their description, such as Rainbow's Gravity, and unlike Manual of Transcendent Olfaction. If the skill can only be used by a specific class, pass in the class abbreviation (as above) instead of 1 for this value.
  • lounge=1 for items that add a furnishing to the Clan VIP Lounge when used, such as the Clan pool table.
  • note1=note for adding a note to the description which isn't handled by one of the previous parameters. Template will automatically put "NOTE: " before the passed-in value.
  • note2=note, same as note1
  • anote=note for adding a note to the description with a single asterisk * before the passed-in value.
  • bluenote=note for items with a bold, blue, left-justified note in their description, such as the Clan VIP Lounge key. This will not add any extra text to the value passed in.

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.