Difference between revisions of "Template:Container"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
|details = | |details = | ||
|upgradeable = | |upgradeable = | ||
|upgradedfrom = | |||
|restriction = | |restriction = | ||
|icon= | |icon= | ||
Line 19: | Line 20: | ||
|weight= | |weight= | ||
|basevalue= | |basevalue= | ||
|link= | |||
}} | }} | ||
</pre> | </pre> | ||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name = | |name = Container | ||
|description = This template is used to render information about an item that is a container. | |description = This template is used to render information about an item that is a container. | ||
|category=Item Templates | |category=Item Templates | ||
Line 71: | Line 73: | ||
|parameter17name = basevalue | |parameter17name = basevalue | ||
|parameter17description = This is the base value as shown in the examine window. Use [[Template:Price]]. | |parameter17description = This is the base value as shown in the examine window. Use [[Template:Price]]. | ||
|parameter18name = image | |||
|parameter18description = This is an image to display on the right side. | |||
|parameter21name = link | |||
|parameter21description = The link to this page, if it isn't the same as the name. | |||
|parameter22name = upgradedfrom | |||
|parameter22description = A list of items this was upgraded from. | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#dplvar:set|itembasevalue|{{{basevalue}}}}}<table class="item-table background-color"> | <includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|{{#dplvar:set|itembasevalue|{{{basevalue}}}}}<table class="item-table background-color"> | ||
<tr> | <tr> | ||
<td class="item-info-side"> | <td class="item-info-side"> | ||
<table class="background-color"> | <table class="background-color fullwidth"> | ||
<tr> | <tr> | ||
<td> | <td> | ||
Line 99: | Line 107: | ||
<td class="item-image-side"> | <td class="item-image-side"> | ||
<table class="item-image-table background-color" > | <table class="item-image-table background-color" > | ||
<tr> | {{#if: {{{image|}}}| | ||
<td | <tr style="background: rgb(0,0,0)"> | ||
< | <td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td> | ||
{{{ | </tr>}}{{#if: {{{droplocation|}}} | <tr><td class="extra-details">'''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}}</td></tr>|[[Category:Items without a Drop Location]]}}{{#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: {{{details|}}} |<tr><td class="extra-details"> '''Extra Details:''' {{WrapMultiLine|{{{details}}}}}</td></tr>}}{{#if: {{{bug|}}} | <tr><td class="extra-details">'''Bugs:''' {{WrapMultiLine|{{{bug}}}}}</td></tr>}}{{#if: {{{replaced|}}} | <tr><td class="extra-details highlighted">{{{replaced}}}</td></tr>}} | ||
{{{ | |||
{{{bug}}} | |||
{{#if: {{{replaced|}}} | <tr><td class="extra-details | |||
</table> | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table>{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]]|[[Category:Items with No Minimum Level]]}}[[Category:Container]]</includeonly> | </table>{{#if: {{{update|}}} | [[Category:Update {{{update|}}} Loot]] | [[Category:Items without an Update]]}}{{#if: {{{minlevel|}}}|[[Category:Minimum Level {{{minlevel}}} Items]]|[[Category:Items with No Minimum Level]]}}[[Category:Container]]}}</includeonly> |
Latest revision as of 00:49, 12 November 2023
{{Template:Container |type = |name = |exclusive = |maxstacksize = |uniqueitemcapacity = |binding = |description = |droplocation = |update = |details = |upgradeable = |upgradedfrom = |restriction = |icon= |bug= |replaced= |weight= |basevalue= |link= }}
Container[edit]
This template is used to render information about an item that is a container.
Usage[edit]
Parameter Documentation | |
type | The type of container. Use one of Possible Values:
|
name | The name of the item. |
exclusive | Leave empty if the item is not exclusive. |
maxstacksize | The maximum size each stack can be inside the container. |
uniqueitemcapacity | How many unique items the container can hold |
binding | How the container binds Possible Values:
|
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. |
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 |
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. |
image | This is an image to display on the right side. |
link | The link to this page, if it isn't the same as the name. |
upgradedfrom | A list of items this was upgraded from. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.