Difference between revisions of "Template:Item"
From DDO Compendium
MNDeveloper (talk | contribs) |
(initial) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<pre> | <pre> | ||
{{Template: | {{Template:ItemFoodAndDrink | ||
|name = | |name = | ||
|type = | |type = | ||
|minlevel = | |minlevel = | ||
|description = | |description = | ||
| | |exception | ||
| | |droplocation = | ||
|enchantments= | |||
| | |||
|icon= | |icon= | ||
|weight= | |weight= | ||
|basevalue= | |basevalue= | ||
| | |notes= | ||
|bagstacksize= | |||
|inventorystacksize= | |||
}} | }} | ||
</pre> | </pre> | ||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name = | |name = FoodAndDrink | ||
|description = This template is used to render information about an | |description = This template is used to render information about an food and drink items commonly sold in taverns across the game. | ||
|category=Item Templates | |category = Item Templates | ||
|usesnamedparameters = true | |usesnamedparameters = true | ||
|parameter1name = name | |parameter1name = name | ||
|parameter1description = | |parameter1description = This is the material item. | ||
|parameter2name = type | |parameter2name = type | ||
|parameter2description = What type of item is it. | |parameter2description = What type of item is it. | ||
|parameter2values = | |parameter2values = | ||
* | * Food | ||
* | * Drink | ||
|parameter3name = minlevel | |||
|parameter3description = The minimum level needed to be to use this item. | |||
|parameter4name = description | |||
|parameter4description = The description as found in the Examine window. | |||
|parameter5name = exception | |||
|parameter5description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]] | |||
|parameter6name = droplocation | |||
|parameter6description = Where is this item found? Use [[Template:VendorPurchase]] | |||
|parameter7name = enchantments | |||
|parameter3name = minlevel | |parameter7description = What does this item do? See [[:Category:Item_Enchantment_Template|Enchantment Templates]]. | ||
|parameter3description = | |parameter8name=icon | ||
|parameter4name = | |parameter8description=This is an icon to use, instead of the name | ||
|parameter4description = | |parameter9name = weight | ||
|parameter5name = | |parameter9description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. | ||
|parameter5description = | |parameter10name = basevalue | ||
|parameter10description = This is the base value as shown in the examine window. Use [[Template:Price]]. | |||
|parameter11name = notes | |||
|parameter11description = Any notes about this material. | |||
|parameter12name = inventorystacksize | |||
|parameter12description = This is the maximum number of items that can stack in the inventory | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}} | }} | ||
</noinclude><includeonly><table class="item-table background-color"> | </noinclude><includeonly><table class="item-table background-color"> | ||
Line 107: | Line 60: | ||
<td class="icon"> | <td class="icon"> | ||
<!-- Icon Image --> | <!-- Icon Image --> | ||
{{IconImage|{{{name}}}|{{{icon|}}}}} | {{IconImage|{{{name}}}|{{{icon|}}}}}</td> | ||
</td> | |||
<td class="title"> | <td class="title"> | ||
'''{{{name}}}'''<br>[[:Category:{{{type}}}|{{{type}}}]] | '''{{{name}}}'''{{#if: {{{type|}}}|<br>[[:Category:{{{type}}}|{{{type}}}]]}} | ||
}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
Line 120: | Line 70: | ||
<tr> | <tr> | ||
<td> | <td> | ||
{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}} | |||
'''Enchantments:''' | {{#if: {{{inventorystacksize|}}} | '''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}<br>}} | ||
{{#switch: {{lc:{{{type|}}}}} | |||
|food=|drink='''Enchantments:''' | |||
{{{enchantments|}}} | {{{enchantments|}}} | ||
}}{{#if: {{{description|}}}| | |||
'''Description:''' ''{{{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="item-table"><tr><td class="itembasevalue">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td><td class="itemweight">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td></tr></table></td></tr>}} | ||
Line 133: | Line 83: | ||
<td class="item-image-side"> | <td class="item-image-side"> | ||
<table class="item-image-table background-color" > | <table class="item-image-table background-color" > | ||
<tr> | <tr> | ||
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | <td class="extra-details"> | ||
{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | |||
<br>}} | |||
</td> | |||
</tr> | |||
{{#if: {{{notes|}}} | <tr><td class="extra-details"> | |||
{{{notes}}}</tr>}} | |||
{{#if: {{{ | |||
</table> | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table>{{#ifeq: {{FULLPAGENAME}} |Template:ItemFoodAndDrink||[[Category:Tavern Items]]{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}}} | ||
</includeonly> |
Revision as of 21:57, 14 February 2020
{{Template:ItemFoodAndDrink |name = |type = |minlevel = |description = |exception |droplocation = |enchantments= |icon= |weight= |basevalue= |notes= |bagstacksize= |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. |
exception | 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. |
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.