Difference between revisions of "Template:Consumable"

From DDO Compendium
 
(39 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|durability =
|durability =
|description =
|description =
|droplocation =  
|storedescription =
|droplocation =
|enchantments=
|enchantments=
|icon=
|icon=
Line 17: Line 18:
|details =
|details =
|bug=
|bug=
|update=
|patchnotes=
|image=
|vendorsalecount=
|vendorsaleprice=
|exclusive=
|returning=
|contents=
}}
}}
</pre>
</pre>
Line 28: Line 37:
|parameter2name = type
|parameter2name = type
|parameter2description = What type of item is it.
|parameter2description = What type of item is it.
|parameter2values =  
|parameter2values =
* Potion
* Potion
* Teleporation (i.e. Key of Eveningstar, Commemorative D12)
* Teleporation (i.e. Key of Eveningstar, Commemorative D12)
* Cookie
* Cookie
* Scroll
* Scroll
* Questing Tools
* Crafting Component
* Tome
* Crate
|parameter3name = minlevel
|parameter3name = minlevel
|parameter3description = Enter the minimum level required for the item, or leave blank if there is none.
|parameter3description = Enter the minimum level required for the item, or leave blank if there is none.
|parameter4name = binding
|parameter4name = binding
|parameter4description = How is this item bound - leave blank it is unbound.
|parameter4description = How is this item bound - leave blank it is unbound.
|parameter4values =  
|parameter4values =
* btc for Bound to Character
* btc for Bound to Character
* bta for Bound to Account
* bta for Bound to Account
Line 55: Line 68:
|parameter9description = Enter the description that is on the examine window at the bottom.
|parameter9description = Enter the description that is on the examine window at the bottom.
|parameter10name = droplocation
|parameter10name = droplocation
|parameter10description = This specifies information on where this drops. Use one of the drop location templates to specify it. The list of templates can be found here: [[:Category:DropLocation Templates]]. If there is more than one, put each on its own line starting with an asterisk.
|parameter10description = This specifies information on where this drops. Use one of the drop location templates to specify it. The list of templates can be found here: [[:Category:DropLocation Templates]]. If there is more than one, put each on its own line starting with an asterisk.
|parameter11name = enchantments
|parameter11name = enchantments
|parameter11description = This specifies the enchantments if it has any. Unlike items, this should be a single one.
|parameter11description = This specifies the enchantments if it has any. Unlike items, this should be a single one.
Line 61: Line 74:
|parameter12description=This is an icon to use, instead of the name
|parameter12description=This is an icon to use, instead of the name
|parameter13name = weight
|parameter13name = weight
|parameter13description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter13description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|parameter14name = basevalue
|parameter14name = basevalue
|parameter14description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter14description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter15name = details
|parameter15name = details
|parameter15description = Enter any details that a player may need to know about this (i.e. if not working correctly, etc).
|parameter15description = Enter any details that a player may need to know about this (i.e. if not working correctly, etc).
|parameter16name = bug
|parameter16name = bug
|parameter16description = Contains any information about a bug related to the item. Use [[Template:Bug]]
|parameter16description = Contains any information about a bug related to the item. Use [[Template:Bug]]
}}
|parameter17name = update
</noinclude>
|parameter17description = Which update was this introduced
<includeonly>
|parameter18name = patchnotes
<table class="item-table background-color">
|parameter18description= Relevant patch notes about how this item has changed over time
<tr>
|parameter19name = image
<td class="item-info-side">
|parameter19description= Name of the image to show, by default there isn't one.
<table class="background-color fullwidth">
|parameter20name = vendorsalecount
<tr>
|parameter20description= The number of these that are sold by most vendors (i.e. arrows this would be 100), leave blank if it is one, or not sold
<td>
|parameter21name = vendorsaleprice
<table class="background-color">
|parameter21description= The cost to buy from the the vendor if the vendorsalecount > 1, if this is not present, it is the base value
<tr>
|parameter22name = link
<td class="icon">
|parameter22description = The link to this page, if it isn't the same as the name.
<!-- Icon Image -->
|parameter23name = exclusive
{{IconImage|{{{name}}}|{{{icon|}}}}}</td>
|parameter23description = Use [[Template:Exclusive]]
<td class="title">
|parameter24name = returning
'''{{{name}}}'''<br>{{#if: {{{type|}}}|[[:Category:{{{type}}}|{{{type}}}]]}}
|parameter24description = Use [[Template:Returning]]
</td>
|parameter25name = contents
</tr>
|parameter25description = A list of contents that you receive by consuming this.  This is used mostly for Crates that give you multiple things.
</table>
|parameter26name = storedescription
</td>
|parameter26description = This is the description of the item found in the store.
</tr>
}}</noinclude><includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|{{#dplvar:set|itembasevalue|{{{basevalue}}}}}{{#dplvar:set|vendorsalecount|{{{vendorsalecount|}}}}}{{#dplvar:set|vendorsaleprice|{{{vendorsaleprice|}}}}}<div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed"><tr><td><table class="table table-condensed"><tr><td class="col-sm-1 align-middle">{{IconImageWithLink|{{{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>{{#ifeq: {{lc:{{{type|}}}}}|cookie|<td class="col-sm-1 align-middle">{{IconImageWithLink|Cookie Jar}}</td>}}</tr></table></td></tr><tr><td>{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}{{ItemBinding|{{{binding}}}}}{{#if: {{{exclusive|}}}|<br>{{{exclusive}}}}}{{#if: {{{returning|}}}|<br>{{{returning}}}}}</td></tr>{{#if: {{{enchantments|}}}|<tr><td>
<tr>
'''Enchantments:'''{{WrapMultiLine|{{{enchantments|}}}}}
<td>{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}'''Binding:''' {{ItemBinding|{{{binding}}}}}<br>
{{ItemMaterialDR|{{{material}}}|{{{type}}}}}</td></tr>}}{{#if: {{{material|}}}|<tr><td>
{{#if: {{{enchantments|}}}|
{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}</td></tr>}}{{#if: {{{description|}}}|<tr><td>''{{{description}}}''</td></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></td></tr>}}</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">{{#if: {{{image|}}}|<tr style="background: rgb(0,0,0)"><td>[[File:{{{image}}}.png|center|300px|]]</td></tr>}}{{#if: {{{droplocation|}}} | <tr><td class="extra-details">'''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}</td></tr>|[[Category:Items without a Drop Location]]}}{{#if: {{{storedescription|}}} | <tr><td>'''Store Description:'''&nbsp;{{{storedescription}}}</td></tr>}}{{#if: {{{contents|}}} | <tr><td>'''Contains:'''&nbsp;{{WrapMultiLine|{{{contents}}}}}</td></tr>}}{{#if: {{{details|}}} | <tr><td>'''Extra Details:'''&nbsp;{{WrapMultiLine|{{{details}}}}}</td></tr>}}{{#if: {{{bug|}}} |<tr><td>'''Bugs:'''&nbsp;{{WrapMultiLine|{{{bug}}}}}</td></tr>}}{{#if: {{{patchnotes|}}} |<tr><td>Patch Notes:'''&nbsp;{{WrapMultiLine|{{{patchnotes}}}}}</td></tr>}}</table></div></div>{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}{{#if:{{{update|}}}|[[Category:Update {{{update}}} Loot]]|[[Category:Items without an Update]]}}}}</includeonly>
{{{enchantments|}}}
}}{{#if: {{{material|}}}|{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}}}{{#if: {{{description|}}}|<br>
'''Description:''' ''{{{description}}} ''
}}</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>}}
</table>
</td>
<td class="item-image-side">
<table class="item-image-table background-color" >
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
<br>}}{{#if: {{{details|}}} | '''Extra Details:'''&nbsp;
{{{details}}}
<br>}}{{#if: {{{bug|}}} | '''Bugs:'''&nbsp;
{{{bug}}}<br>}}
</td>
</tr>
</table>
</td>
</tr>
</table>{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}
[[Category:Loot]]
</includeonly>

Latest revision as of 14:57, 12 December 2022

{{Template:Consumable
|name =
|type =
|minlevel=
|binding=
|material =
|hardness =
|durability =
|description =
|storedescription =
|droplocation =
|enchantments=
|icon=
|weight=
|basevalue=
|details =
|bug=
|update=
|patchnotes=
|image=
|vendorsalecount=
|vendorsaleprice=
|exclusive=
|returning=
|contents=
}}

Consumable[edit]

This template is used to render information about an potion, food, teleportation device or other consumable.

Usage[edit]

Parameter Documentation
nameThis is the consumable name.
typeWhat type of item is it.
Possible Values:
  • Potion
  • Teleporation (i.e. Key of Eveningstar, Commemorative D12)
  • Cookie
  • Scroll
  • Questing Tools
  • Crafting Component
  • Tome
  • Crate
minlevelEnter the minimum level required for the item, or leave blank if there is none.
bindingHow is this item bound - leave blank it is unbound.
Possible Values:
  • 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
materialEnter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron), if this is blank then this whole session is not included.
hardnessEnter the hardness shown in the examine window.
durabilityEnter the maximum durability value shown in the examine window.
stacksizeEnter the number of items in a single stack
descriptionEnter the description that is on the examine window at the bottom.
droplocationThis specifies information on where this drops. Use one of the drop location templates to specify it. The list of templates can be found here: Category:DropLocation Templates. If there is more than one, put each on its own line starting with an asterisk.
enchantmentsThis specifies the enchantments if it has any. Unlike items, this should be a single one.
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.
detailsEnter any details that a player may need to know about this (i.e. if not working correctly, etc).
bugContains any information about a bug related to the item. Use Template:Bug
updateWhich update was this introduced
patchnotesRelevant patch notes about how this item has changed over time
imageName of the image to show, by default there isn't one.
vendorsalecountThe number of these that are sold by most vendors (i.e. arrows this would be 100), leave blank if it is one, or not sold
vendorsalepriceThe cost to buy from the the vendor if the vendorsalecount > 1, if this is not present, it is the base value
linkThe link to this page, if it isn't the same as the name.
exclusiveUse Template:Exclusive
returningUse Template:Returning
contentsA list of contents that you receive by consuming this. This is used mostly for Crates that give you multiple things.
storedescriptionThis is the description of the item found in the store.

Template

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