Difference between revisions of "Template:Item"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(65 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
|details = | |details = | ||
|upgradeable = | |upgradeable = | ||
|upgradedfrom = | |||
|restriction = | |restriction = | ||
|icon= | |icon= | ||
Line 27: | Line 28: | ||
|itemsets= | |itemsets= | ||
|otherversions= | |otherversions= | ||
|link= | |||
|options= | |||
|extracategories= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 105: | Line 109: | ||
|parameter25name = otherversions | |parameter25name = otherversions | ||
|parameter25description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc) | |parameter25description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc) | ||
|parameter26name = link | |||
|parameter26description = The link to this page, if it isn't the same as the name. | |||
|parameter27name = options | |||
|parameter27description = Use [[Template:ItemOptions]], displays options about the item | |||
|parameter28name = upgradedfrom | |||
|parameter28description = A list of items this was upgraded from. | |||
|parameter29name = extracategories | |||
|parameter29description = A list of extra categories for this weapon, use [[Template:CategoryList]] | |||
}} | }} | ||
</noinclude> | </noinclude><includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|{{#dplvar:set|itembasevalue|{{{basevalue}}}}}<div class="row"><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed"> | ||
<includeonly> | |||
<div class="row"> | |||
<div class="col-sm-6"> | |||
<table class="table table-bordered table-striped table-condensed"> | |||
<tr> | <tr> | ||
<td> | <td> | ||
<table class="table"> | <table class="table table-condensed"> | ||
<tr> | <tr> | ||
<td class="col-sm-1">{{ | <td class="col-sm-1">{{IconImageWithLink|{{{name}}}|{{{icon|}}}}}</td> | ||
<td class="col-sm-11 center"> | <td class="col-sm-11 center"><span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}{{#switch: {{lc:{{{artifacttype}}}}} | ||
<span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}} | |||
{{#switch: {{lc:{{{artifacttype}}}}} | |||
|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> | ||
}} | }}</td> | ||
</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
Line 127: | Line 132: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td>{{#if:{{{restriction|}}}|{{{restriction}}}<br>}}{{#if:{{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}{{#if: {{{artifacttype|}}}|'''Filigree Slots:''' {{#switch: {{lc:{{{artifacttype}}}}} | ||
{{#if:{{{restriction|}}}|{{{restriction}}}<br>}} | |minor={{#ifexpr: {{{minlevel|}}} < 30 | {{#ifexpr: {{{minlevel|}}} = 20|1|3}} | 4}} | ||
{{#if:{{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}} | }}<br>}}{{#if:{{{absoluteminlevel|}}}|'''Absolute Minimum Level:''' {{{absoluteminlevel}}}<br>}}{{ItemBinding|{{{binding}}}}}{{#if: {{{options|}}}|<br>{{{options}}}}}</td> | ||
{{#if:{{{absoluteminlevel|}}}|'''Absolute Minimum Level:''' {{{absoluteminlevel}}}<br>}} | |||
{{ItemBinding|{{{binding}}}}} | |||
</td> | |||
</tr> | </tr> | ||
{{#if:{{{enchantments|}}}|<tr><td>'''Enchantments:''' | {{#if:{{{enchantments|}}}|<tr><td>'''Enchantments:''' | ||
{{{enchantments|}}}</td></tr>}} | {{{enchantments|}}}</td></tr>}}{{#if: {{{emptyaugments|}}}|<tr><td>{{{emptyaugments}}}</td></tr>}}{{#if: {{{itemsets|}}}|<tr><td> | ||
{{#if: {{{emptyaugments|}}}|<tr><td>{{{emptyaugments}}}</td></tr>}} | {{WrapMultiLine|{{{itemsets}}}}}</td></tr>}}<tr> | ||
{{#if: {{{itemsets|}}}|<tr><td> | |||
{{{itemsets}}}</td></tr>}} | |||
<tr> | |||
<td> | <td> | ||
{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}} |}}|{{#if:{{{durability|}}}|{{{durability}}}|}}}} | {{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}} |}}|{{#if:{{{durability|}}}|{{{durability}}}|}}}} | ||
</td> | |||
</tr> | </tr> | ||
{{#if: {{{description|}}}| | {{#if: {{{description|}}}| | ||
<tr> | <tr> | ||
Line 179: | Line 178: | ||
<tr style="background: rgb(0,0,0)"> | <tr style="background: rgb(0,0,0)"> | ||
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | <td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | ||
</tr> | </tr>}}}}{{#if: {{{droplocation|}}} |<tr><td class="extra-details">'''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}}|[[Category:Items without a Drop Location]]</td></tr>}}{{#if: {{{details|}}} | <tr><td class="extra-details">'''Extra Details:''' {{WrapMultiLine|{{{details}}}}}</td></tr>}}{{#if: {{{upgradeable|}}} | <tr><td class="extra-details">'''Upgradeable:''' {{WrapMultiLine|{{{upgradeable}}}}}</td></tr>}}{{#if: {{{upgradedfrom|}}} | <tr><td class="extra-details">'''Upgraded From:''' {{WrapMultiLine|{{{upgradedfrom}}}}}</td></tr>}}{{#if: {{{bug|}}} |<tr><td class="extra-details"> '''Bugs:''' {{WrapMultiLine|{{{bug}}}}}</td></tr>}}{{#if: {{{otherversions|}}} | <tr><td class="extra-details topborder">'''Related Items:''' | ||
}}}} | {{WrapMultiLine|{{{otherversions}}}}}</td></tr>}}{{#if: {{{replaced|}}} | <tr><td class="extra-details highlighted">{{{replaced}}}</td></tr>}}</table> | ||
}}}}</td></tr> | |||
{{#if: {{{ | |||
{{#if: {{{ | |||
</table> | |||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
</div> | </div> | ||
</div> | </div>[[Category:{{{type}}}]]{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]][[Category:Minimum Level {{{minlevel}}} {{{type}}}]]|[[Category:Items with No Minimum Level]][[Category:No Minimum Level {{{type}}}]]}}{{#if: {{{artifacttype|}}}|[[Category:Artifact Items]]}}{{#if: {{{extracategories|}}}|{{{extracategories}}}}}{{#dplvar:set|seoimage|{{PageExists|File: {{{image|}}}.png|{{filepath:{{{image|}}}.png}}|}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}}.png|{{filepath:{{{name|}}}.png}}|}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{icon|}}} Icon.png|{{filepath:{{{icon|}}} Icon.png}}}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}} Icon.png|{{filepath:{{{name|}}} Icon.png}}}}}}}}{{#seo: | ||
[[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]]}} | |||
{{#seo: | |||
|type=website | |type=website | ||
|image={{# | |image={{#if: {{#dplvar:seoimage}}|{{#dplvar:seoimage}}}} | ||
|description=Item Type: {{{type}}} | |description=Item Type: {{{type}}} | ||
Min Level: {{{minlevel}}} | Min Level: {{#if: {{{minlevel|}}}|{{{minlevel}}}|None}} | ||
{{#if: {{{material|}}}|Material: {{{material}}}}} | |||
Binding: {{ItemBinding|{{{binding}}}|True}} | |||
Upgradeable: {{#if: {{{upgradeable|}}}|Yes|No}} | |||
Is an upgrade: {{#if: {{{upgradedfrom|}}}|Yes|No}} | |||
Drop Location: {{#dplvar:seodroplocation}} | |||
|site_name={{SITENAME}} | |site_name={{SITENAME}} | ||
|published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | |published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | ||
|theme-color=#FF0000 | |theme-color=#FF0000 | ||
|keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{ | |keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{#dplvar:seodroplocation}}| |,}} | ||
}} | }}}}{{#dplvar:set|seoimage|}}{{#dplvar:set|seodroplocation|}}</includeonly> | ||
</includeonly> |
Latest revision as of 02:28, 24 December 2024
{{Template:Item |name = |type = |minlevel = |absoluteminlevel = |binding = |enchantments = |description = |droplocation = |material = |hardness = |durability = |update = |details = |upgradeable = |upgradedfrom = |restriction = |icon= |image= |bug= |replaced= |weight= |basevalue= |artifacttype= |emptyaugments= |itemsets= |otherversions= |link= |options= |extracategories= }}
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:
|
emptyaugments | Any Empty augments that this item has. Use Template:EmptyAugments |
itemsets | The item sets that this item has. Use Template:ItemSetList |
otherversions | Other related version (i.e. heroic vs legendary or epic, feytwisted, etc) |
link | The link to this page, if it isn't the same as the name. |
options | Use Template:ItemOptions, displays options about the item |
upgradedfrom | A list of items this was upgraded from. |
extracategories | A list of extra categories for this weapon, use Template:CategoryList |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.