Template:Wrldwzrd89/FoodItem

From TheKolWiki
Jump to: navigation, search
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.
{{Wrldwzrd89/FoodItem}}
__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:{{{paste|}}}|<br /> ([[Meat Pasting]] component){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Meat Pasting Components]]}}}}{{#if:{{{smith|}}}|<br /> ([[Meatsmithing]] component){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Meatsmithing Components]]}}}}{{#if:{{{cook|}}}|<br /> {{#switch:{{{cook}}}|fancy|f=(Fancy [[Cooking]] ingredient){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Fancy Cooking Ingredients]]}}|#default=([[Cooking]] ingredient){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Cooking Ingredients]]}}}}}} Type: '''Food'''{{#switch:{{{quality|?}}}|quest=<b> (quest)</b>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Food]]}}|crappy=<b> <span style="color: #999999;">(crappy)</span></b>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Crappy Food]]}}|decent=<b> (decent)</b>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Decent Food]]}}|good=<b> <span style="color: green;">(good)</span></b>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Good Food]]}}|awesome=<b> <span style="color: blue;">(awesome)</span></b>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Awesome Food]]}}|epic|EPIC=<b> <span style="color: blueviolet;">(EPIC)</span></b>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Epic Food]]}}|random|???=<b> <span style="color: blue;">(</span><span style="color: green;">?</span><span style="color: red;">?</span><span style="color: gray;">?</span><span style="color: blue;">)</span></b>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Food]]}}|!={{#ifeq:{{{autocat|yes}}}|yes|[[Category:Food]]}}|#default='' (quality unspecified)''{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Incomplete]]}}}}}}{{#ifexpr:{{{autosell|0}}}>0|<br /> Selling Price: '''{{{autosell}}} Meat.'''}}{{#if:{{{cost|}}}|<br /> Cost: '''{{{cost}}} Meat'''}}{{#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{{#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:{{{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

{{Template:Wrldwzrd89/FoodItem|
   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 or y or yes for cooking ingredients, f or fancy for fancy cooking ingredients
  • quality=quality for food/booze quality (crappy, decent, good, awesome, EPIC; use ! for none)
  • level=level for food/beverage/booze/spleen items (specify '1' if there is no level requirement visible)
  • effect=effect indication for potions. For potions that do not list an effect in their description (such as vial of blue slime), use effect=!.
    • duration=effect duration for potions, if applicable.
  • 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
  • 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.
  • 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.