|
|
Template:Item
From TheKolWiki
| 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><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|}}}||{{#if:{{{itemid|}}}|'''[http://kol.coldfront.net/index.php/content/view/624/49?itemid={{{itemid}}} View market statistics]'''}}}}}}</div>{{#if:{{{haiku|}}}|<div style="text-align:center">}}<p style="text-align:center">[[image:{{Data1|{{PAGENAME}}|image|nopic2.gif}}|{{Data1|{{PAGENAME}}|name|Unknown item name}}]]<br />'''{{Data1|{{PAGENAME}}|name|Unknown item name}}'''{{#if:{{{haiku|}}}|<br />{{{desc|}}}</p>|</p>
{{{desc|}}}<br />
}}{{#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 />
([[Cooking]] ingredient){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Cooking Ingredients]]}}}}{{#if:{{{cocktail|}}}|<br />
([[Cocktailcrafting]] ingredient){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Cocktailcrafting Ingredients]]}}}}{{#if:{{{jewelry|}}}|<br />
([[Jewelrymaking]] component){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Jewelrymaking Components]]}}}}{{#if:{{{type|}}}|<br />
Type: '''{{{type}}}'''{{#ifeq:{{{autocat|yes}}}|yes|{{#switch:{{{type}}}|usable=[[Category:Usable Items]]|usable (self or others)=[[Category:Usable Items]]|booze=[[Category:Booze]]|food=[[Category:Food]]|beverage=[[Category:Beverages]]|accessory=[[Category:Accessories]]|off-hand item=[[Category:Off-Hand Items]]|potion=[[Category:Potions]]|combat / usable item=[[Category:Combat Items]][[Category:Usable Items]]|shirt=[[Category:Shirts]]|off-hand item (shield)=[[Category:Shields]]|hat=[[Category:Hats]]|pants=[[Category:Pants]]|familiar=[[Category:Familiar Hatchlings]]|familiar equipment=[[Category:Familiar Equipment]]|gift package=[[Category:Gift Packages]]|combat item=[[Category:Combat Items]]}}}}}}{{#if:{{{power|}}}|<br />
{{{powertype|Power}}}: '''{{{power}}}'''}}{{#if:{{{stat|}}}|<br />
[[{{{stat}}}]] Required: '''{{{statreq}}}'''}}{{#if:{{{alsocombat|}}}|<br />
(can also be used in combat){{#ifeq:{{{autocat|yes}}}|yes|[[Category:Combat Items]]}}}}{{#if:{{{level|}}}|{{#ifexpr:{{{level}}} > 1|<br />
Level required: '''{{{level}}}'''}}{{#if:{{{class|}}}||{{#ifeq:{{{autocat|yes}}}|yes|{{#ifeq:{{{consume|y}}}|n||[[Category:{{#switch:{{{type}}}|food|beverage=Food|booze=Booze|usable=Spleentacular Items|#default=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|#default=*}}, {{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{{#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:{{{critical|}}}|<br />
'''NOTE:''' If you wear multiple items that increase your Critical Hit multiplier, 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.{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Equipment With Quantity Limitations]]}}}}{{#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:{{{bluenote|}}}|<br /><br /><span style="color: blue;font-weight:bold">{{{bluenote}}}</span>}}{{#if:{{{haiku|}}}|</div>}}<br /><br />{{
Item/plural|{{Data1|{{PAGENAME}}|plural|UNKNOWN}}}}</div></includeonly><noinclude>
{{prot_high-use}}
{{Code2}}
==Usage==
{{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>consume=n</code> Optional parameter to dictate if the item is be categorized as if it were a consumable item. Set to 'n' to prevent such categorizations. This is primarily useful for preventing [[:Category:Usable Items|usable items]] such as the [[dolphin whistle]] from appearing in [[:Category:Spleentacular Items (By Level Requirement)|the spleen by level category]]
- <code>alsocombat=1</code> For items with the parenthetical "(can also be used in combat)" in their description.
- <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>class=</code>''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
- <code>enchclass=</code>''class abbreviation'' for equipment whose enchantments only apply to those of a specific class
- pm=Pastamancers
- s=Saucerors
- db=Disco Bandits
- at=Accordion Thieves
- sc=Seal Clubbers
- tt=Turtle Tamers
- <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>haiku=1</code> for items whose name and description are shown as a haiku
- <code>autocat=no</code> 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 {{tl|Item/plural}}) from categorizing the page, however.
- <code>grantskill=1</code> 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.
- <code>lounge=1</code> for items that add a furnishing to the [[Clan VIP Lounge]] when used, such as the [[Clan pool table]].
- <code>note1=</code>''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.
- <code>note2=</code>''note'', same as note1
- <code>bluenote=</code>''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.
[[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.
alsocombat=1 For items with the parenthetical "(can also be used in combat)" in their description.
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
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
enchclass=class abbreviation for equipment whose enchantments only apply to those of a specific 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
haiku=1 for items whose name and description are shown as a haiku
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
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.
|
|
|