Difference between revisions of "Template:Item"
From DDO Compendium
m (Reverted edits by Ague (talk) to last revision by MNDeveloper) |
MNDeveloper (talk | contribs) |
||
(35 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
|type = | |type = | ||
|minlevel = | |minlevel = | ||
|absoluteminlevel = | |absoluteminlevel = | ||
|binding = | |binding = | ||
|enchantments = | |enchantments = | ||
|description = | |description = | ||
|droplocation = | |droplocation = | ||
|material = | |material = | ||
|hardness = | |hardness = | ||
Line 16: | Line 16: | ||
|details = | |details = | ||
|upgradeable = | |upgradeable = | ||
|restriction = | |restriction = | ||
|icon= | |icon= | ||
|image= | |image= | ||
Line 28: | Line 28: | ||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name = Item | |name = Item | ||
|description = This template is used to render information about an item that is not a weapon, armor, orb, rune arm, shield or quiver. | |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 | ||
Line 35: | Line 35: | ||
|parameter2name = type | |parameter2name = type | ||
|parameter2description = What type of item is it. | |parameter2description = What type of item is it. | ||
|parameter2values = | |parameter2values = | ||
* Goggles | * Goggles | ||
* Helmet | * Helmet | ||
Line 47: | Line 47: | ||
* Bracers | * Bracers | ||
* Activator - Items that can only be activated | * Activator - Items that can only be activated | ||
|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 = absoluteminlevel | |parameter4name = absoluteminlevel | ||
|parameter4description = Enter the minimum level required for the item if something is removed, or leave blank if there is none. | |parameter4description = Enter the minimum level required for the item if something is removed, or leave blank if there is none. | ||
|parameter5name = binding | |parameter5name = binding | ||
Line 60: | Line 60: | ||
* btaoa for Bound to Account on Acquire | * btaoa for Bound to Account on Acquire | ||
|parameter6name = enchantments | |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]]. | |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 | |parameter7name = description | ||
|parameter7description = Enter the description that is on the examine window at the bottom. | |parameter7description = Enter the description that is on the examine window at the bottom. | ||
|parameter8name = droplocation | |parameter8name = droplocation | ||
|parameter8description = This specifies information on where this drops. | |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 | |parameter9name = material | ||
|parameter9description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron). | |parameter9description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron). | ||
Line 78: | Line 78: | ||
|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. | |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 | |parameter15name = restriction | ||
|parameter15description = This is used when there is some kind of 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 | |parameter16name = icon | ||
|parameter16description = The icon to use for this item, overrides the image using the item name | |parameter16description = The icon to use for this item, overrides the image using the item name | ||
|parameter17name = image | |parameter17name = image | ||
|parameter17description = Image file, use if the image doesn't change between heroic and epic types. | |parameter17description = Image file, use if the image doesn't change between heroic and epic types. Do not include extension. | ||
|parameter18name = bug | |parameter18name = bug | ||
|parameter18description = Contains any information about a bug related to the item. | |parameter18description = Contains any information about a bug related to the item. Use [[Template:Bug]] | ||
|parameter19name = replaced | |parameter19name = replaced | ||
|parameter19description = Contains information about any replacement that SSG did of this weapon. | |parameter19description = Contains information about any replacement that SSG did of this weapon. Use [[Template:ItemReplacement]] | ||
|parameter20name = weight | |parameter20name = weight | ||
|parameter20description = This is the weight, in lbs, as shown on the examine window. | |parameter20description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. | ||
|parameter21name = basevalue | |parameter21name = basevalue | ||
|parameter21description = This is the base value as shown in the examine window. | |parameter21description = This is the base value as shown in the examine window. Use [[Template:Price]]. | ||
|parameter22name = artifacttype | |parameter22name = artifacttype | ||
|parameter22description = Which type of artifact this is, leave blank if it is not an artifact | |parameter22description = Which type of artifact this is, leave blank if it is not an artifact | ||
Line 97: | Line 97: | ||
* Minor | * Minor | ||
}} | }} | ||
</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|}}}}}</td> | ||
<td class="col-sm-11 center"> | |||
{{IconImage|{{{name}}}|{{{icon|}}}}} | <span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}} | ||
</td> | {{#switch: {{lc:{{{artifacttype}}}}} | ||
<td class=" | |||
|minor=<br><span style="color:cyan !important" class="subtitle">[[Artifacts#Minor|Minor Artifact]]</span> | |minor=<br><span style="color:cyan !important" class="subtitle">[[Artifacts#Minor|Minor Artifact]]</span> | ||
}} | }} | ||
Line 120: | Line 119: | ||
<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|}}}| | {{#if:{{{restriction|}}}|{{{restriction}}}<br>}} | ||
'''Enchantments:''' | {{#if:{{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}} | ||
{{{enchantments|}}} | {{#if:{{{absoluteminlevel|}}}|'''Absolute Minimum Level:''' {{{absoluteminlevel}}}<br>}} | ||
{{ItemBinding|{{{binding}}}}} | |||
}}{{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}} |}}|{{#if: {{{durability|}}}|{{{durability}}}|}}}}{{#if: {{{description|}}}|< | <p>{{#if:{{{enchantments|}}}|'''Enchantments:''' | ||
< | {{{enchantments|}}}}}</p> | ||
{{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> | ||
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td> | |||
</tr> | |||
</table> | </table> | ||
</td> | </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"> | |||
{{#switch: {{lc:{{{type}}}}} | |||
| goggles | helmet |cloak = | |||
<tr style="background: rgb(0,0,0)"> | |||
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | |||
</tr> | |||
|#default={{#if: {{{image|}}}| | |||
<tr style="background: rgb(0,0,0)"> | |||
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | |||
</tr> | |||
}}}} | |||
<tr> | <tr> | ||
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | <td class="extra-details">{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}} | ||
|[[Category:Items without a Drop Location]]}} | |[[Category:Items without a Drop Location]]}}{{#if: {{{details|}}} | {{#if: {{{droplocation|}}}|<br><br>}}'''Extra Details:''' {{WrapMultiLine|{{{details}}}}}}}{{#if: {{{upgradeable|}}} | {{#if: {{{droplocation|}}}{{{details|}}}|<br><br>}}'''Upgradeable:''' {{WrapMultiLine|{{{upgradeable}}}}}}}{{#if: {{{bug|}}} |{{#if: {{{droplocation|}}}{{{details|}}}{{{upgradeable|}}}|<br><br>}} '''Bugs:''' {{WrapMultiLine|{{{bug}}} | ||
{{#if: {{{details|}}} | <br>'''Extra Details:''' | }}}}</td></tr> | ||
{{{details}}} | |||
{{#if: {{{upgradeable|}}} | '''Upgradeable:''' | |||
{{{upgradeable}}} | |||
{{{bug}}} | |||
{{#if: {{{replaced|}}} | <tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}} | {{#if: {{{replaced|}}} | <tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}} | ||
</table> | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table>[[Category:{{{type}}} | </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> |
Revision as of 17:17, 4 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 | |
name | The name of the item. |
type | What type of item is it. Possible Values:
|
minlevel | Enter the minimum level required for the item, or leave blank if there is none. |
absoluteminlevel | Enter the minimum level required for the item if something is removed, or leave blank if there is none. |
binding | How is this item bound - leave blank it is unbound.
|
enchantments | These 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. |
description | Enter the description that is on the examine window at the bottom. |
droplocation | 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. |
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. |
update | Which update was this item added to the game in. |
details | Enter any details that a player may need to know about this (i.e. if not working correctly, etc). |
upgradeable | 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. |
restriction | 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. |
icon | The icon to use for this item, overrides the image using the item name |
image | Image file, use if the image doesn't change between heroic and epic types. Do not include extension. |
bug | Contains any information about a bug related to the item. Use Template:Bug |
replaced | Contains information about any replacement that SSG did of this weapon. Use Template:ItemReplacement |
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. |
artifacttype | Which type of artifact this is, leave blank if it is not an artifact Possible Values:
|
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.