Difference between revisions of "Template:Material"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(102 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|name = | |name = | ||
|type = | |type = | ||
|minlevel = | |||
|binding= | |binding= | ||
|bagtype = | |bagtype = | ||
|use= | |use= | ||
|rarity = | |rarity = | ||
|collectors = | |collectors = | ||
|description = | |description = | ||
|droplocation = | |droplocation = | ||
| | |enchantments= | ||
|icon= | |icon= | ||
|weight= | |weight= | ||
|basevalue= | |basevalue= | ||
|notes= | |||
|bagstacksize= | |||
|inventorystacksize= | |||
|image= | |||
|update= | |||
|link= | |||
|options= | |||
|doubleclickpurchase= | |||
|otherversions= | |||
|storedescription= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 26: | Line 37: | ||
|parameter2name = type | |parameter2name = type | ||
|parameter2description = What type of item is it. | |parameter2description = What type of item is it. | ||
|parameter2values = | |parameter2values = | ||
* Ingredient | * Ingredient | ||
* Collectable | * Collectable | ||
Line 33: | Line 44: | ||
* Filigree | * Filigree | ||
* Spell Component | * Spell Component | ||
|parameter3name = binding | |parameter3name = minlevel | ||
| | |parameter3description = The minimum level needed to be to use this item. | ||
| | |parameter4name = binding | ||
|parameter4description = How is this item bound - leave blank it is unbound. | |||
|parameter4values = | |||
* btc for Bound to Character | * btc for Bound to Character | ||
* bta for Bound to Account | * bta for Bound to Account | ||
Line 42: | Line 55: | ||
* btaoe for Bound to Account on Equip | * btaoe for Bound to Account on Equip | ||
* btaoa for Bound to Account on Acquire | * btaoa for Bound to Account on Acquire | ||
| | |parameter5name = bagtype | ||
| | |parameter5description = Type of the bag/container that this goes in, leave blank if it doesn't go in anything. | ||
| | |parameter5values = | ||
* Green | * Green | ||
* Red | * Red | ||
Line 51: | Line 64: | ||
* Augment | * Augment | ||
* Soul | * Soul | ||
| | |parameter6name = use | ||
| | |parameter6description = List what this can be used for - be detailed with links | ||
| | |parameter7name = rarity | ||
| | |parameter7description = How common/uncommon/rare is this to get. If it always drops from some location, don't include this. | ||
| | |parameter8name = collectors | ||
| | |parameter8description = List collectors who take this. | ||
| | |parameter9name = description | ||
| | |parameter9description = Enter the description that is on the examine window at the bottom. | ||
| | |parameter10name = droplocation | ||
| | |parameter10description = 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. | ||
| | |parameter11name = enchantments | ||
| | |parameter11description = This specifies the enchantments when the type is augment. | ||
| | |parameter12name=icon | ||
| | |parameter12description=This is an icon to use, instead of the name | ||
| | |parameter13name = weight | ||
| | |parameter13description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. | ||
| | |parameter14name = basevalue | ||
| | |parameter14description = This is the base value as shown in the examine window. Use [[Template:Price]]. | ||
|parameter15name = notes | |||
|parameter15description = Any notes about this material. | |||
|parameter16name = bagstacksize | |||
|parameter16description = This is the maximum number of items that can stack in the bag | |||
|parameter17name = inventorystacksize | |||
|parameter17description = This is the maximum number of items that can stack in the inventory | |||
|parameter18name = image | |||
|parameter18description = The image to show, do default is shown for this template | |||
|parameter19name = update | |||
|parameter19description = Update this was released in | |||
|parameter20name = bagicon | |||
|parameter20description = The icon to use for the bag if it is custom. | |||
|parameter21name = link | |||
|parameter21description = The link to this page, if it isn't the same as the name. | |||
|parameter22name = options | |||
|parameter22description = Use [[Template:ItemOptions]], displays options about the item | |||
|parameter231name = doubleclickpurchase | |||
|parameter23description = Use [[Template:VendorSale]] and [[Template:VendorSaleTable]] to list things you can purchase by double-clicking on this item | |||
|parameter24name = otherversions | |||
|parameter24description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc) | |||
|parameter25name = storedescription | |||
|parameter25description = The description of the item from the ddo store | |||
}} | }} | ||
</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> | |||
< | |||
< | |||
<table class=" | |||
<tr> | <tr> | ||
<td> | <td> | ||
<table class=" | <table class="table table-condensed"> | ||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-1">{{IconImageWithLink|{{{name}}}|{{{icon|}}}}}</td><td class="col-sm-10 center"><span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}}</td> | ||
<td class="col-sm-1">{{#if: {{{bagtype|}}}|{{IconImageWithLink|{{{bagtype}}}_Bag|{{{bagicon|}}}}}}}</td> | |||
{{ | </tr> | ||
<td class=" | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
< | <tr> | ||
<td>{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}'''Binding:''' {{ItemBinding|{{{binding}}}}}{{#if: {{{options|}}}|<br>{{{options}}}}}<br>{{#if: {{{bagstacksize|}}}|'''Bag Maximum Stack Size:''' {{formatnum:{{{bagstacksize}}}}}<br>}}{{#if: {{{inventorystacksize|}}}|'''Inventory Maximum Stack Size:''' {{formatnum:{{{inventorystacksize}}}}}<br>}}{{#if: {{{rarity|}}}|'''Rarity:''' {{{rarity}}}<br>}}{{#switch: {{lc:{{{type|}}}}} | |||
|rune |augment |potion='''Enchantments:''' {{WrapMultiLine|{{{enchantments|}}}}}}} | |||
{{#if:{{{description|}}}|<br>''{{{description}}}''}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
{{#if: {{{weight|}}}{{{basevalue|}}}| | |||
<tr> | <tr> | ||
<td> | <td> | ||
<table class="table"> | |||
<table class=" | |||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td> | ||
{{#if: {{{ | <td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td> | ||
{{#if: {{{ | |||
</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
</td> | </td> | ||
</tr> | </tr>}} | ||
</table> | </table> | ||
[[Category:{{{type}}}]] | </div> | ||
</includeonly> | <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">{{#if: {{{image|}}}|<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}}}}}|[[Category:Items without a Drop Location]]</td></tr>}}{{#if: {{{collectors|}}}|<tr><td>'''Collectors:''' {{WrapMultiLine|{{{collectors}}}}}</td></tr>}}{{#if: {{{use|}}}|<tr><td>'''Used In:''' {{WrapMultiLine|{{{use}}}}}</td></tr>}}{{#if: {{{notes|}}} |<tr><td>{{{notes}}}</td></tr>}}{{#if: {{{doubleclickpurchase|}}}|<tr><td>'''Double-Click to Purchase:''' {{WrapMultiLine|{{{doubleclickpurchase}}}}}</td></tr>}}{{#if: {{{storedescription|}}} | <tr><td class="extra-details">'''Store Description:''' {{{storedescription}}}</td></tr>}}{{#if: {{{otherversions|}}} | <tr><td class="extra-details topborder">'''Related Items:''' | |||
{{WrapMultiLine|{{{otherversions}}}}}</td></tr>}}</table></div></div>{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}}{{#ifeq: {{lc:{{{type|}}}}}|augment|[[Category:Minimum Level {{{minlevel|}}} {{#switch: {{lc:{{#dplvar:augmentcolor}}}} | |||
|c=|colorless=Colorless | |||
|y=|yellow=Yellow | |||
|r=|red=Red | |||
|b=|blue=Blue | |||
|g=|green=Green | |||
|p=|purple=Purple | |||
|o=|orange=Orange | |||
|s=|sun=Sun | |||
|m=|moon=Moon | |||
|scale armor=|sa=Scale Armor | |||
|scale weapon=|sw=Scale Weapon | |||
|scale accessory=|se=Scale Accessory | |||
|fang armor=|fa=Fang Armor | |||
|fang weapon=|fw =Fang Weapon | |||
|fang accessory=|fe=Fang Accessory | |||
|claw armor=|ca=Claw Armor | |||
|claw weapon=|cw=Claw Weapon | |||
|claw accessory=|ce=Claw Accessory | |||
|horn armor=|ha=Horn Armor | |||
|horn weapon=|hw=Horn Weapon | |||
|horn accessory=|he=Horn Accessory | |||
|iod set bonus=|iodset=Isle of Dread Set Bonus | |||
}} Augment]]}}{{#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: | |||
|type=website | |||
|image={{#if: {{#dplvar:seoimage|}}|{{#dplvar:seoimage}}}} | |||
|description=Type: {{{type}}} | |||
Min Level: {{#if: {{{minlevel|}}}|{{{minlevel}}}|None}} | |||
Binding: {{ItemBinding|{{{binding}}}|True}} | |||
Used In: {{#if: {{#dplvar:seoaugmentuse}}|{{#dplvar:seoaugmentuse}}|{{#replace:{{#replace:{{{use}}}|]|}}|[|}}}} | |||
Bag: {{#if: {{{bagtype|}}}|{{{bagtype}}}|Not baggable}} | |||
Drop Location: {{#dplvar:seodroplocation}} | |||
|site_name={{SITENAME}} | |||
|published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}} | |||
|theme-color=#FF0000 | |||
|keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{#dplvar:seodroplocation}}| |,}} | |||
}}{{#dplvar:set|seoimage|}}{{#dplvar:set|seoaugmentuse|}}{{#dplvar:set|seodroplocation|}}}}</includeonly> |
Latest revision as of 21:59, 22 December 2024
{{Template:Material |name = |type = |minlevel = |binding= |bagtype = |use= |rarity = |collectors = |description = |droplocation = |enchantments= |icon= |weight= |basevalue= |notes= |bagstacksize= |inventorystacksize= |image= |update= |link= |options= |doubleclickpurchase= |otherversions= |storedescription= }}
Material[edit]
This template is used to render information about an ingredient, collectable, gem or any other material.
Usage[edit]
Parameter Documentation | |
name | This is the material name. |
type | What type of item is it. Possible Values:
|
minlevel | The minimum level needed to be to use this item. |
binding | How is this item bound - leave blank it is unbound. Possible Values:
|
bagtype | Type of the bag/container that this goes in, leave blank if it doesn't go in anything. Possible Values:
|
use | List what this can be used for - be detailed with links |
rarity | How common/uncommon/rare is this to get. If it always drops from some location, don't include this. |
collectors | List collectors who take this. |
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. |
enchantments | This specifies the enchantments when the type is augment. |
icon | This is an icon to use, instead of the name |
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. |
notes | Any notes about this material. |
bagstacksize | This is the maximum number of items that can stack in the bag |
inventorystacksize | This is the maximum number of items that can stack in the inventory |
image | The image to show, do default is shown for this template |
update | Update this was released in |
bagicon | The icon to use for the bag if it is custom. |
link | The link to this page, if it isn't the same as the name. |
options | Use Template:ItemOptions, displays options about the item |
otherversions | Other related version (i.e. heroic vs legendary or epic, feytwisted, etc) |
storedescription | The description of the item from the ddo store |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.