Difference between revisions of "Template:ItemFoodAndDrink"

From DDO Compendium
 
(11 intermediate revisions by the same user not shown)
Line 4: Line 4:
|name =
|name =
|type =
|type =
|binding=
|minlevel =
|minlevel =
|description =
|description =
Line 17: Line 18:
|notes=
|notes=
|inventorystacksize=
|inventorystacksize=
|upgradeable =
|upgradedfrom =
}}
}}
</pre>
</pre>
Line 31: Line 34:
* Food
* Food
* Drink
* Drink
|parameter3name = minlevel
|parameter3name = binding
|parameter3description = The minimum level needed to be to use this item.
|parameter3description = How is this item bound - leave blank it is unbound.
|parameter4name = description
* btc for Bound to Character
|parameter4description = The description as found in the Examine window.
* bta for Bound to Account
|parameter5name = restriction
* btcoe for Bound to Character on Equip
|parameter5description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]]
* btcoa for Bound to Character on Acquire
|parameter6name = droplocation
* btaoe for Bound to Account on Equip
|parameter6description = Where is this item found? Use [[Template:VendorPurchase]]
* btaoa for Bound to Account on Acquire
|parameter7name = enchantments
|parameter4name = minlevel
|parameter7description = What does this item do? See [[:Category:Item_Enchantment_Template|Enchantment Templates]].
|parameter4description = The minimum level needed to be to use this item.
|parameter8name = material
|parameter5name = description
|parameter8description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
|parameter5description = The description as found in the Examine window.
|parameter9name = hardness
|parameter6name = restriction
|parameter9description = Enter the hardness shown in the examine window.
|parameter6description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]]
|parameter10name = durability
|parameter7name = droplocation
|parameter10description = Enter the maximum durability value shown in the examine window.
|parameter7description = Where is this item found? Use [[Template:VendorPurchase]]
|parameter11name=icon
|parameter8name = enchantments
|parameter11description=This is an icon to use, instead of the name
|parameter8description = What does this item do? See [[:Category:Item_Enchantment_Template|Enchantment Templates]].
|parameter12name = weight
|parameter9name = material
|parameter12description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter9description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
|parameter13name = basevalue
|parameter10name = hardness
|parameter13description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter10description = Enter the hardness shown in the examine window.
|parameter14name = notes
|parameter11name = durability
|parameter14description = Any notes about this material.
|parameter11description = Enter the maximum durability value shown in the examine window.
|parameter15name = inventorystacksize
|parameter12name=icon
|parameter15description = This is the maximum number of items that can stack in the inventory
|parameter12description=This is an icon to use, instead of the name
|parameter13name = weight
|parameter13description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter14name = basevalue
|parameter14description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter15name = notes
|parameter15description = Any notes about this material.
|parameter16name = inventorystacksize
|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>
<includeonly><div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed">
<includeonly>{{#dplvar:set|itembasevalue|{{{basevalue}}}}}<div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td>
<td>
<table class="table">
<table class="table table-condensed">
<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>
<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 76: 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>}}
{{{enchantments|}}}}}</td></tr>{{#if: {{{material|}}}|<tr><td>
{{#if:{{{inventorystacksize|}}}|'''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}<br>}}
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}}|}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}</td></tr>}}
{{#switch:{{lc:{{{type|}}}}}|food|drink='''Enchantments:'''  
<tr><td>{{#if:{{{description|}}}|''{{{description}}}''}}</td></tr>
{{{enchantments|}}}<br>}}
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}}|}}|{{#if: {{{durability|}}}|{{{durability}}}|}}<br>}}
{{#if:{{{description|}}}|<br>''{{{description}}}''}}
</td>
</tr>
{{#if: {{{weight|}}}{{{basevalue|}}}|
{{#if: {{{weight|}}}{{{basevalue|}}}|
<tr>
<tr>
Line 107: 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.