Difference between revisions of "Template:ItemFoodAndDrink"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 78: | Line 78: | ||
<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>}} |
Revision as of 15:44, 2 June 2022
{{Template:ItemFoodAndDrink |name = |type = |binding= |minlevel = |description = |restriction = |droplocation = |enchantments= |material = |hardness = |durability = |icon= |weight= |basevalue= |notes= |inventorystacksize= }}
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 | |
name | This is the material item. |
type | What type of item is it. Possible Values:
|
binding | How is this item bound - leave blank it is unbound.
|
minlevel | The minimum level needed to be to use this item. |
description | The description as found in the Examine window. |
restriction | Races/classes/etc that cannot (or only can) use this item. Template:ItemRestrictedRace |
droplocation | Where is this item found? Use Template:VendorPurchase |
enchantments | What does this item do? See Enchantment Templates. |
material | Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron). |
hardness | Enter the hardness shown in the examine window. |
durability | Enter the maximum durability value shown in the examine window. |
icon | This is an icon to use, instead of the name |
weight | This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. |
basevalue | This is the base value as shown in the examine window. Use Template:Price. |
notes | Any notes about this material. |
inventorystacksize | This is the maximum number of items that can stack in the inventory |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.