Difference between revisions of "Template:Item"

From DDO Compendium
(initial)
Line 1: Line 1:
<noinclude>
<noinclude>
<pre>
<pre>
{{Template:Item
{{Template:ItemFoodAndDrink
|name =
|name =
|type =
|type =
|minlevel =
|minlevel =
|absoluteminlevel =
|binding =
|enchantments =
|description =
|description =
|droplocation =
|exception
|material =
|droplocation =
|hardness =
|enchantments=
|durability =
|update =
|details =
|upgradeable =
|restriction =  
|icon=
|icon=
|image=
|bug=
|replaced=
|weight=
|weight=
|basevalue=
|basevalue=
|artifacttype=
|notes=
|bagstacksize=
|inventorystacksize=
}}
}}
</pre>
</pre>
{{TemplateDocumentation
{{TemplateDocumentation
|name = Item
|name = FoodAndDrink
|description = This template is used to render information about an item that is not a weapon, armor, orb, rune arm, shield or quiver.  See [[Template:Weapon]] for weapons, [[Template:Armor]] for armor, [[Template:Shield]] for shields and orbs, [[Template:Quiver]] for quivers. Example of the Template in Use:  [[Pale Lavender Ioun Stone]].
|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 = The name of the item.
|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 =
* Goggles
* Food
* Helmet
* Drink
* Necklace
|parameter3name = minlevel
* Trinket
|parameter3description = The minimum level needed to be to use this item.
* Cloak
|parameter4name = description
* Belt
|parameter4description = The description as found in the Examine window.
* Ring
|parameter5name = exception
* Gloves
|parameter5description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]]
* Boots
|parameter6name = droplocation
* Bracers
|parameter6description = Where is this item found? Use [[Template:VendorPurchase]]
* Activator - Items that can only be activated
|parameter7name = enchantments
|parameter3name = minlevel  
|parameter7description = What does this item do? See [[:Category:Item_Enchantment_Template|Enchantment Templates]].
|parameter3description = Enter the minimum level required for the item, or leave blank if there is none.
|parameter8name=icon
|parameter4name = absoluteminlevel
|parameter8description=This is an icon to use, instead of the name
|parameter4description = Enter the minimum level required for the item if something is removed, or leave blank if there is none.
|parameter9name = weight
|parameter5name = binding
|parameter9description = This is the weight, in lbs, as shown on the examine window.  The "lbs" will be added.
|parameter5description = How is this item bound - leave blank it is unbound.
|parameter10name = basevalue
* btc for Bound to Character
|parameter10description = This is the base value as shown in the examine window.  Use [[Template:Price]].
* bta for Bound to Account
|parameter11name = notes
* btcoe for Bound to Character on Equip
|parameter11description = Any notes about this material.
* btcoa for Bound to Character on Acquire
|parameter12name = inventorystacksize
* btaoe for Bound to Account on Equip
|parameter12description = This is the maximum number of items that can stack in the inventory
* btaoa for Bound to Account on Acquire
|parameter6name = enchantments
|parameter6description = These are a bulleted list of templates (each on its own line starting with an asterisk) found in [[:Category:Item_Enchantment_Template|Enchantment Templates]].  If the enchantment is a one just for this item, just enter the information directly. The enchantment that is added because of the material (i.e. Flametouched Iron) is automatically added.
|parameter7name = description
|parameter7description = Enter the description that is on the examine window at the bottom.
|parameter8name = droplocation
|parameter8description = 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.
|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 = update
|parameter12description = Which update was this item added to the game in.
|parameter13name = details
|parameter13description = Enter any details that a player may need to know about this (i.e. if not working correctly, etc).
|parameter14name = upgradeable
|parameter14description = 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.
|parameter15name = restriction
|parameter15description = This is used when there is some kind of restriction. If it is a trait (Lawful, Good, etc), use [[Template:ItemRequiredTrait]]. If there is a race restriction, use [[Template:ItemRestrictedRace]].
|parameter16name = icon
|parameter16description = The icon to use for this item, overrides the image using the item name
|parameter17name = image
|parameter17description = Image file, use if the image doesn't change between heroic and epic types.  Do not include extension.
|parameter18name = bug
|parameter18description = Contains any information about a bug related to the item.  Use [[Template:Bug]]
|parameter19name = replaced
|parameter19description = Contains information about any replacement that SSG did of this weapon.  Use [[Template:ItemReplacement]]
|parameter20name = weight
|parameter20description = This is the weight, in lbs, as shown on the examine window.  The "lbs" will be added.
|parameter21name = basevalue
|parameter21description = This is the base value as shown in the examine window.  Use [[Template:Price]].
|parameter22name = artifacttype
|parameter22description = Which type of artifact this is, leave blank if it is not an artifact
|parameter22values=
* Blank for not an artifact
* Minor
}}
}}
</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}}}]]{{#switch: {{lc:{{{artifacttype}}}}}
'''{{{name}}}'''{{#if: {{{type|}}}|<br>[[:Category:{{{type}}}|{{{type}}}]]}}
|minor=<br><span style="color:cyan !important" class="subtitle">[[Artifacts#Minor|Minor Artifact]]</span>
}}
</td>
</td>
</tr>
</tr>
Line 120: Line 70:
<tr>
<tr>
<td>
<td>
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}{{#if: {{{absoluteminlevel|}}}|'''Absolute Minimum Level:''' {{{absoluteminlevel}}}<br>}}{{ItemBinding|{{{binding}}}}}{{#if: {{{enchantments|}}}|<br>
{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}
'''Enchantments:'''
{{#if: {{{inventorystacksize|}}} | '''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}<br>}}
{{#switch: {{lc:{{{type|}}}}}
|food=|drink='''Enchantments:'''
{{{enchantments|}}}
{{{enchantments|}}}
 
&nbsp;}}{{#if: {{{description|}}}|
}}{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}{{#if: {{{description|}}}|<br>
'''Description:''' ''{{{description}}} ''}}
<br>
'''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" >
{{#switch: {{{type}}}
| Goggles | Helmet |Cloak = <tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|300px|]]</td></tr>
|#default={{#if: {{{image|}}}|<tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|300px|]]</td></tr>}}
}}
<tr>
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
<td class="extra-details">
&nbsp;|[[Category:Items without a Drop Location]]}}
{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
{{#if: {{{details|}}} | <br>'''Extra Details:'''&nbsp;
<br>}}
{{{details}}}
</td>
&nbsp;<br>}}
</tr>
{{#if: {{{upgradeable|}}} | '''Upgradeable:'''&nbsp;
{{#if: {{{notes|}}} | <tr><td class="extra-details">
{{{upgradeable}}}
{{{notes}}}</tr>}}
<br>}}{{#if: {{{bug|}}} | '''Bugs:'''&nbsp;
{{{bug}}}<br>}}</td></tr>
{{#if: {{{replaced|}}} | <tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}}
</table>
</table>
</td>
</td>
</tr>
</tr>
</table>[[Category:{{{type}}}]][[Category:Loot]]{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]]|[[Category:Items with No Minimum Level]]}}{{#if: {{{artifacttype|}}}|[[Category:Artifact Items]]}}</includeonly>
</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
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.
exceptionRaces/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.
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.