Difference between revisions of "Template:ItemFoodAndDrink"

From DDO Compendium
m (tweak)
(testing new layout)
Line 2: Line 2:
<pre>
<pre>
{{Template:ItemFoodAndDrink
{{Template:ItemFoodAndDrink
|name =  
|name =
|type =  
|type =
|minlevel =  
|minlevel =
|description =  
|description =
|restriction =  
|restriction =
|droplocation =  
|droplocation =
|enchantments=  
|enchantments=
|material =  
|material =
|hardness =  
|hardness =
|durability =  
|durability =
|icon=  
|icon=
|weight=  
|weight=
|basevalue=  
|basevalue=
|notes=  
|notes=
|inventorystacksize=  
|inventorystacksize=
}}
}}
</pre>
</pre>
Line 38: Line 38:
|parameter5description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]]
|parameter5description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]]
|parameter6name = droplocation
|parameter6name = droplocation
|parameter6description = Where is this item found? Use [[Template:VendorPurchase]]
|parameter6description = Where is this item found? Use [[Template:VendorPurchase]]
|parameter7name = enchantments
|parameter7name = enchantments
|parameter7description = What does this item do? See [[:Category:Item_Enchantment_Template|Enchantment Templates]].
|parameter7description = What does this item do? See [[:Category:Item_Enchantment_Template|Enchantment Templates]].
|parameter8name = material
|parameter8name = material
|parameter8description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
|parameter8description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
Line 50: Line 50:
|parameter11description=This is an icon to use, instead of the name
|parameter11description=This is an icon to use, instead of the name
|parameter12name = weight
|parameter12name = weight
|parameter12description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter12description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter13name = basevalue
|parameter13name = basevalue
|parameter13description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter13description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter14name = notes
|parameter14name = notes
|parameter14description = Any notes about this material.
|parameter14description = Any notes about this material.
Line 58: Line 58:
|parameter15description = This is the maximum number of items that can stack in the inventory
|parameter15description = This is the maximum number of items that can stack in the inventory
}}[[Category:Template]]
}}[[Category:Template]]
</noinclude><includeonly><table class="item-table background-color">
</noinclude>
<tr>
<includeonly>
<td class="item-info-side">
<div class="row">
<table class="background-color fullwidth">
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td>
<td>
<table class="background-color">
<table class="table">
<tr>
<tr>
<td class="icon">
<td class="col-sm-1">
<!-- Icon Image -->
{{IconImage|{{{name}}}|{{{icon|}}}}}
{{IconImage|{{{name}}}|{{{icon|}}}}}</td>
</td>
<td class="title">
<td class="col-sm-11 center">
'''{{{name}}}'''{{#if: {{{type|}}}|<br>[[:Category:{{{type}}}|{{{type}}}]]}}
<span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}
</td>
</td>
</tr>
</tr>
Line 78: Line 79:
<tr>
<tr>
<td>
<td>
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}
{{#if:{{{restriction|}}}|{{{restriction}}}<br>}}
{{#if: {{{inventorystacksize|}}} | '''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}<br>}}
{{#if:{{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}
{{#switch: {{lc:{{{type|}}}}}
{{#if:{{{inventorystacksize|}}}|'''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}<br>}}
|food|drink='''Enchantments:'''
{{#switch:{{lc:{{{type|}}}}}|food|drink='''Enchantments:'''<br>{{{enchantments|}}}<br>}}
{{{enchantments|}}}<br>}}
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}}|}}|{{#if: {{{durability|}}}|{{{durability}}}|}}<br>}}
{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}<br>}}
{{#if:{{{description|}}}|''{{{description}}}''}}
{{#if: {{{description|}}}|
'''Description:''' ''{{{description}}} ''}}
</td>
</td>
</tr>{{#if: {{{weight|}}}{{{basevalue|}}}|<tr><td><table class="item-table"><tr><td class="itembasevalue">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td><td class="itemweight">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td></tr></table></td></tr>}}
</tr>
{{#if: {{{weight|}}}{{{basevalue|}}}|
<tr>
<td>
<table class="table">
<tr>
<td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}
</td>
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td>
</tr>
</table>
</table>
</td>
</td>
<td class="item-image-side">
</tr>
<table class="item-image-table background-color" >
}}
</table>
</div>
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
<hr>
</div>
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
<tr>
<tr>
<td class="extra-details">
<td>
{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
{{#if: {{{droplocation|}}}|'''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
<br>}}
</td>
</td>
</tr>
</tr>
{{#if: {{{notes|}}} | <tr><td class="extra-details">
{{#if: {{{notes|}}} |
{{{notes}}}</tr>}}
<tr>
</table>
<td>
{{{notes}}}
</td>
</td>
</tr>
</tr>
</table>{{#ifeq: {{FULLPAGENAME}} |Template:ItemFoodAndDrink||[[Category:Tavern Items]]{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}}}
}}
</table>
</div>
</div>
{{#ifeq: {{FULLPAGENAME}} |Template:ItemFoodAndDrink||[[Category:Tavern Items]]{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}}}
</includeonly>
</includeonly>

Revision as of 11:37, 18 February 2020

{{Template:ItemFoodAndDrink
|name =
|type =
|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
nameThis is the material item.
typeWhat type of item is it.
Possible Values:
  • Food
  • Drink
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

Template

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