Difference between revisions of "Template:ItemFoodAndDrink"

From DDO Compendium
 
(3 intermediate revisions by the same user not shown)
Line 18: Line 18:
|notes=
|notes=
|inventorystacksize=
|inventorystacksize=
|upgradeable =
|upgradedfrom =
}}
}}
</pre>
</pre>
Line 66: Line 68:
|parameter16name = inventorystacksize
|parameter16name = inventorystacksize
|parameter16description = This is the maximum number of items that can stack in the inventory
|parameter16description = This is the maximum number of items that can stack in the inventory
|parameter17name = upgradeable
|parameter17description = If this item is upgradeable, use [[Template:ItemUpgrade]]. If there is more than one (i.e. it is in the middle of a crafting chain), include multiple templates in a bulleted list.
|parameter18name = upgradedfrom
|parameter18description = A list of items this was upgraded from.
}}[[Category:Template]]
}}[[Category:Template]]
</noinclude>
</noinclude>
Line 72: Line 78:
<td>
<td>
<table class="table table-condensed">
<table class="table table-condensed">
<tr><td class="col-sm-1">{{IconImageWithLink|{{{name}}}|{{{icon|}}}}}</td><td class="col-sm-11 center"><span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}</td></tr>
<tr><td class="col-sm-1">{{IconImage|{{{name}}}|{{{icon|}}}}}</td><td class="col-sm-11 center"><span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}</td></tr>
</table>
</table>
</td>
</td>
Line 78: Line 84:
<tr>
<tr>
<td>
<td>
{{#if:{{{restriction|}}}|{{{restriction}}}<br>}}
{{#if:{{{restriction|}}}|{{{restriction}}}<br>}}{{#if:{{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}{{#if:{{{binding|}}}|{{ItemBinding|{{{binding}}}}}<br>}}{{#if:{{{inventorystacksize|}}}|'''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}}}</td></tr><tr><td>{{#switch:{{lc:{{{type|}}}}}|food|drink='''Enchantments:'''  
{{#if:{{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}
{{#if:{{{binding|}}}|{{ItemBinding|{{{binding}}}}}<br>}}
{{#if:{{{inventorystacksize|}}}|'''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}}}
</td></tr><tr><td>{{#switch:{{lc:{{{type|}}}}}|food|drink='''Enchantments:'''  
{{{enchantments|}}}}}</td></tr>{{#if: {{{material|}}}|<tr><td>
{{{enchantments|}}}}}</td></tr>{{#if: {{{material|}}}|<tr><td>
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}}|}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}</td></tr>}}
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}}|}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}</td></tr>}}
Line 108: Line 110:
<tr>
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
&nbsp;|[[Category:Items without a Drop Location]]}}</td></tr></table></div>
&nbsp;|[[Category:Items without a Drop Location]]}}</td></tr>{{#if: {{{upgradeable|}}} | <tr><td class="extra-details">'''Upgradeable:'''&nbsp;{{WrapMultiLine|{{{upgradeable}}}}}</td></tr>}}{{#if: {{{upgradedfrom|}}} | <tr><td class="extra-details">'''Upgraded From:'''&nbsp;{{WrapMultiLine|{{{upgradedfrom}}}}}</td></tr>}}
</table></div>
</td>
</td>
</tr>
</tr>

Latest revision as of 20:06, 6 December 2022

{{Template:ItemFoodAndDrink
|name =
|type =
|binding=
|minlevel =
|description =
|restriction =
|droplocation =
|enchantments=
|material =
|hardness =
|durability =
|icon=
|weight=
|basevalue=
|notes=
|inventorystacksize=
|upgradeable =
|upgradedfrom =
}}

FoodAndDrink[edit]

This template is used to render information about an food and drink items commonly sold in taverns across the game.

Usage[edit]

Parameter Documentation
nameThis is the material item.
typeWhat type of item is it.
Possible Values:
  • Food
  • Drink
bindingHow is this item bound - leave blank it is unbound.
  • btc for Bound to Character
  • bta for Bound to Account
  • btcoe for Bound to Character on Equip
  • btcoa for Bound to Character on Acquire
  • btaoe for Bound to Account on Equip
  • btaoa for Bound to Account on Acquire
  • minlevelThe minimum level needed to be to use this item.
    descriptionThe description as found in the Examine window.
    restrictionRaces/classes/etc that cannot (or only can) use this item. Template:ItemRestrictedRace
    droplocationWhere is this item found? Use Template:VendorPurchase
    enchantmentsWhat does this item do? See Enchantment Templates.
    materialEnter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
    hardnessEnter the hardness shown in the examine window.
    durabilityEnter the maximum durability value shown in the examine window.
    iconThis is an icon to use, instead of the name
    weightThis is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
    basevalueThis is the base value as shown in the examine window. Use Template:Price.
    notesAny notes about this material.
    inventorystacksizeThis is the maximum number of items that can stack in the inventory
    upgradeableIf this item is upgradeable, use Template:ItemUpgrade. If there is more than one (i.e. it is in the middle of a crafting chain), include multiple templates in a bulleted list.
    upgradedfromA list of items this was upgraded from.

    Template

    Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.