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? | |parameter6description = Where is this item found? Use [[Template:VendorPurchase]] | ||
|parameter7name = enchantments | |parameter7name = enchantments | ||
|parameter7description = What does this item do? | |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. | |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. | |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>< | </noinclude> | ||
< | <includeonly> | ||
<div class="row"> | |||
<table class=" | <div class="col-sm-6"> | ||
<table class="table table-bordered table-striped table-condensed"> | |||
<tr> | <tr> | ||
<td> | <td> | ||
<table class=" | <table class="table"> | ||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-1"> | ||
{{IconImage|{{{name}}}|{{{icon|}}}}} | |||
{{IconImage|{{{name}}}|{{{icon|}}}}}</td> | </td> | ||
<td class=" | <td class="col-sm-11 center"> | ||
<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|}}}| | |||
</td> | </td> | ||
</tr>{{#if: {{{weight|}}}{{{basevalue|}}}|<tr><td><table class=" | </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> | ||
< | </tr> | ||
<table class=" | }} | ||
</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 | <td> | ||
{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}} | {{#if: {{{droplocation|}}}|'''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | ||
</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}}}]]}}}} | }} | ||
</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 | |
name | This is the material item. |
type | What type of item is it. Possible Values:
|
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.