Difference between revisions of "Template:ItemFoodAndDrink"
From DDO Compendium
m (tweak) |
MNDeveloper (talk | contribs) |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
{{Template:ItemFoodAndDrink | {{Template:ItemFoodAndDrink | ||
|name = | |name = | ||
|type = | |type = | ||
|minlevel = | |binding= | ||
|description = | |minlevel = | ||
|restriction = | |description = | ||
|droplocation = | |restriction = | ||
|enchantments= | |droplocation = | ||
|material = | |enchantments= | ||
|hardness = | |material = | ||
|durability = | |hardness = | ||
|icon= | |durability = | ||
|weight= | |icon= | ||
|basevalue= | |weight= | ||
|notes= | |basevalue= | ||
|inventorystacksize= | |notes= | ||
|inventorystacksize= | |||
|upgradeable = | |||
|upgradedfrom = | |||
}} | }} | ||
</pre> | </pre> | ||
Line 31: | Line 34: | ||
* Food | * Food | ||
* Drink | * Drink | ||
|parameter3name = minlevel | |parameter3name = binding | ||
| | |parameter3description = How 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 | ||
| | |parameter4name = minlevel | ||
| | |parameter4description = The minimum level needed to be to use this item. | ||
| | |parameter5name = description | ||
| | |parameter5description = The description as found in the Examine window. | ||
| | |parameter6name = restriction | ||
| | |parameter6description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]] | ||
| | |parameter7name = droplocation | ||
| | |parameter7description = Where is this item found? Use [[Template:VendorPurchase]] | ||
| | |parameter8name = enchantments | ||
| | |parameter8description = What does this item do? See [[:Category:Item_Enchantment_Template|Enchantment Templates]]. | ||
| | |parameter9name = material | ||
| | |parameter9description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron). | ||
| | |parameter10name = hardness | ||
| | |parameter10description = Enter the hardness shown in the examine window. | ||
| | |parameter11name = durability | ||
| | |parameter11description = Enter the maximum durability value shown in the examine window. | ||
| | |parameter12name=icon | ||
| | |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><includeonly><table class=" | </noinclude> | ||
<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 class=" | <td> | ||
< | <table class="table table-condensed"> | ||
<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> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td> | |||
{{#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:''' | |||
{{{enchantments|}}}}}</td></tr>{{#if: {{{material|}}}|<tr><td> | |||
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}}|}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}</td></tr>}} | |||
<tr><td>{{#if:{{{description|}}}|''{{{description}}}''}}</td></tr> | |||
{{#if: {{{weight|}}}{{{basevalue|}}}| | |||
<tr> | <tr> | ||
<td> | <td> | ||
<table class=" | <table class="table"> | ||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}} | ||
</td> | </td> | ||
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
}} | |||
</table> | </table> | ||
</ | </div> | ||
< | <div class="visible-xs-block hidden-sm hidden-md hidden-lg"> | ||
<table class=" | <hr> | ||
</div> | |||
<div class="col-sm-6"> | |||
<table class="table table-bordered table-striped table-condensed"> | |||
<tr> | <tr> | ||
<td class="extra-details"> | <td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | ||
{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | |[[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> | ||
{{#if: {{{notes|}}} | <tr><td | {{#if: {{{notes|}}} | | ||
{{{notes}}} | <tr> | ||
<td> | |||
{{{notes}}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
</table>{{#ifeq: {{FULLPAGENAME}} |Template:ItemFoodAndDrink||[[Category:Tavern Items]]{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}}} | }} | ||
</includeonly> | </table></div></div>{{#ifeq: {{FULLPAGENAME}} |Template:ItemFoodAndDrink||[[Category:Tavern Items]]{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}}}</includeonly> |
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.