Difference between revisions of "Template:ItemFoodAndDrink"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(2 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 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:''' {{WrapMultiLine|{{{droplocation}}}}} | <td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | ||
|[[Category:Items without a Drop Location]]}}</td></tr></table></div> | |[[Category:Items without a Drop Location]]}}</td></tr>{{#if: {{{upgradeable|}}} | <tr><td class="extra-details">'''Upgradeable:''' {{WrapMultiLine|{{{upgradeable}}}}}</td></tr>}}{{#if: {{{upgradedfrom|}}} | <tr><td class="extra-details">'''Upgraded From:''' {{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 | |
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 |
upgradeable | 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. |
upgradedfrom | A 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.