Difference between revisions of "Template:Item"

From DDO Compendium
(initial)
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<pre>
<pre>
{{Template:ItemFoodAndDrink
{{Template:Item
|name =
|name =
|type =
|type =
|minlevel =
|minlevel =
|absoluteminlevel =
|binding =
|enchantments =
|description =
|description =
|exception
|droplocation =
|droplocation =
|enchantments=
|material =
|hardness =
|durability =
|update =
|details =
|upgradeable =
|restriction =
|icon=
|icon=
|image=
|bug=
|replaced=
|weight=
|weight=
|basevalue=
|basevalue=
|notes=
|artifacttype=
|bagstacksize=
|inventorystacksize=
}}
}}
</pre>
</pre>
{{TemplateDocumentation
{{TemplateDocumentation
|name = FoodAndDrink
|name = Item
|description = This template is used to render information about an food and drink items commonly sold in taverns across the game.
|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]].
|category = Item Templates
|category=Item Templates
|usesnamedparameters = true
|usesnamedparameters = true
|parameter1name = name
|parameter1name = name
|parameter1description = This is the material item.
|parameter1description = The name of the item.
|parameter2name = type
|parameter2name = type
|parameter2description = What type of item is it.
|parameter2description = What type of item is it.
|parameter2values =
|parameter2values =
* Food
* Goggles
* Drink
* Helmet
* Necklace
* Trinket
* Cloak
* Belt
* Ring
* Gloves
* Boots
* Bracers
* Activator - Items that can only be activated
|parameter3name = minlevel
|parameter3name = minlevel
|parameter3description = The minimum level needed to be to use this item.
|parameter3description = Enter the minimum level required for the item, or leave blank if there is none.
|parameter4name = description
|parameter4name = absoluteminlevel
|parameter4description = The description as found in the Examine window.
|parameter4description = Enter the minimum level required for the item if something is removed, or leave blank if there is none.
|parameter5name = exception
|parameter5name = binding
|parameter5description = Races/classes/etc that cannot (or only can) use this item. [[Template:ItemRestrictedRace]]
|parameter5description = How is this item bound - leave blank it is unbound.
|parameter6name = droplocation
* btc for Bound to Character
|parameter6description = Where is this item found?  Use [[Template:VendorPurchase]]
* bta for Bound to Account
|parameter7name = enchantments
* btcoe for Bound to Character on Equip
|parameter7description = What does this item do?  See [[:Category:Item_Enchantment_Template|Enchantment Templates]].
* btcoa for Bound to Character on Acquire
|parameter8name=icon
* btaoe for Bound to Account on Equip
|parameter8description=This is an icon to use, instead of the name
* btaoa for Bound to Account on Acquire
|parameter9name = weight
|parameter6name = enchantments
|parameter9description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
|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.
|parameter10name = basevalue
|parameter7name = description
|parameter10description = This is the base value as shown in the examine window. Use [[Template:Price]].
|parameter7description = Enter the description that is on the examine window at the bottom.
|parameter11name = notes
|parameter8name = droplocation
|parameter11description = Any notes about this material.
|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.
|parameter12name = inventorystacksize
|parameter9name = material
|parameter12description = This is the maximum number of items that can stack in the inventory
|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>
<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">{{IconImage|{{{name}}}|{{{icon|}}}}}</td>
<!-- Icon Image -->
<td class="col-sm-11 center">
{{IconImage|{{{name}}}|{{{icon|}}}}}</td>
<span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}
<td class="title">
{{#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 70: Line 119:
<tr>
<tr>
<td>
<td>
{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}
{{#if:{{{restriction|}}}|{{{restriction}}}<br>}}
{{#if: {{{inventorystacksize|}}} | '''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}<br>}}
{{#if:{{{minlevel|}}}|'''Minimum Level:'''&nbsp;{{{minlevel}}}<br>}}
{{#switch: {{lc:{{{type|}}}}}
{{#if:{{{absoluteminlevel|}}}|'''Absolute Minimum Level:'''&nbsp;{{{absoluteminlevel}}}<br>}}
|food=|drink='''Enchantments:'''
{{ItemBinding|{{{binding}}}}}
{{{enchantments|}}}
<p>{{#if:{{{enchantments|}}}|'''Enchantments:'''&nbsp;
&nbsp;}}{{#if: {{{description|}}}|
{{{enchantments|}}}}}</p>
'''Description:''' ''{{{description}}} ''}}
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}} |}}|{{#if:{{{durability|}}}|{{{durability}}}|}}}}
</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>
</table>
{{#if: {{{description|}}}|
<tr>
<td>
''{{{description}}}''
</td>
</td>
<td class="item-image-side">
</tr>
<table class="item-image-table background-color" >
}}
{{#if: {{{weight|}}}{{{basevalue|}}}|
<tr>
<tr>
<td class="extra-details">
<td>
{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
<table class="table">
<br>}}
<tr>
<td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}
</td>
</td>
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td>
</tr>
</tr>
{{#if: {{{notes|}}} | <tr><td class="extra-details">
{{{notes}}}</tr>}}
</table>
</table>
</td>
</td>
</tr>
</tr>
</table>{{#ifeq: {{FULLPAGENAME}} |Template:ItemFoodAndDrink||[[Category:Tavern Items]]{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}}}
}}
</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">
{{#switch: {{lc:{{{type}}}}}
| goggles | helmet |cloak =
<tr style="background: rgb(0,0,0)">
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|300px|center]]</td>
</tr>
|#default={{#if: {{{image|}}}|
<tr style="background: rgb(0,0,0)">
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|300px|center]]</td>
</tr>
}}}}
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}
&nbsp;|[[Category:Items without a Drop Location]]}}{{#if: {{{details|}}} | {{#if: {{{droplocation|}}}|<br><br>}}'''Extra Details:'''&nbsp;{{WrapMultiLine|{{{details}}}}}}}{{#if: {{{upgradeable|}}} | {{#if: {{{droplocation|}}}{{{details|}}}|<br><br>}}'''Upgradeable:'''&nbsp;{{WrapMultiLine|{{{upgradeable}}}}}}}{{#if: {{{bug|}}} |{{#if: {{{droplocation|}}}{{{details|}}}{{{upgradeable|}}}|<br><br>}} '''Bugs:'''&nbsp;{{WrapMultiLine|{{{bug}}}
}}}}</td></tr>
{{#if: {{{replaced|}}} | <tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}}
</table>
</td>
</tr>
</table>
</div>
</div>
[[Category:{{{type}}}]]{{#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>
</includeonly>

Revision as of 16:45, 2 April 2020

{{Template:Item
|name =
|type =
|minlevel =
|absoluteminlevel =
|binding =
|enchantments =
|description =
|droplocation =
|material =
|hardness =
|durability =
|update =
|details =
|upgradeable =
|restriction =
|icon=
|image=
|bug=
|replaced=
|weight=
|basevalue=
|artifacttype=
}}

Item[edit]

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.

Usage[edit]

Parameter Documentation
nameThe name of the item.
typeWhat type of item is it.
Possible Values:
  • Goggles
  • Helmet
  • Necklace
  • Trinket
  • Cloak
  • Belt
  • Ring
  • Gloves
  • Boots
  • Bracers
  • Activator - Items that can only be activated
minlevelEnter the minimum level required for the item, or leave blank if there is none.
absoluteminlevelEnter the minimum level required for the item if something is removed, or leave blank if there is none.
bindingHow is this item bound - leave blank it is unbound.
  • 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
  • enchantmentsThese are a bulleted list of templates (each on its own line starting with an asterisk) found in 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.
    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.
    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.
    updateWhich update was this item added to the game in.
    detailsEnter any details that a player may need to know about this (i.e. if not working correctly, etc).
    upgradeableIf 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.
    restrictionThis 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.
    iconThe icon to use for this item, overrides the image using the item name
    imageImage file, use if the image doesn't change between heroic and epic types. Do not include extension.
    bugContains any information about a bug related to the item. Use Template:Bug
    replacedContains information about any replacement that SSG did of this weapon. Use Template:ItemReplacement
    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.
    artifacttypeWhich type of artifact this is, leave blank if it is not an artifact
    Possible Values:
    • Blank for not an artifact
    • Minor

    Template

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