Difference between revisions of "Template:Material"
From DDO Compendium
MNDeveloper (talk | contribs) |
(test new layout) |
||
Line 9: | Line 9: | ||
|use= | |use= | ||
|rarity = | |rarity = | ||
|collectors = | |collectors = | ||
|description = | |description = | ||
|droplocation = | |droplocation = | ||
|enchantments= | |enchantments= | ||
|icon= | |icon= | ||
Line 30: | Line 30: | ||
|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 41: | Line 41: | ||
|parameter4name = binding | |parameter4name = binding | ||
|parameter4description = How is this item bound - leave blank it is unbound. | |parameter4description = How is this item bound - leave blank it is unbound. | ||
|parameter4values = | |parameter4values = | ||
* btc for Bound to Character | * btc for Bound to Character | ||
* bta for Bound to Account | * bta for Bound to Account | ||
Line 50: | Line 50: | ||
|parameter5name = bagtype | |parameter5name = bagtype | ||
|parameter5description = Type of the bag/container that this goes in, leave blank if it doesn't go in anything. | |parameter5description = Type of the bag/container that this goes in, leave blank if it doesn't go in anything. | ||
|parameter5values = | |parameter5values = | ||
* Green | * Green | ||
* Red | * Red | ||
Line 60: | Line 60: | ||
|parameter6description = List what this can be used for - be detailed with links | |parameter6description = List what this can be used for - be detailed with links | ||
|parameter7name = rarity | |parameter7name = rarity | ||
|parameter7description = How common/uncommon/rare is this to get. | |parameter7description = How common/uncommon/rare is this to get. If it always drops from some location, don't include this. | ||
|parameter8name = collectors | |parameter8name = collectors | ||
|parameter8description = List collectors who take this. | |parameter8description = List collectors who take this. | ||
Line 66: | Line 66: | ||
|parameter9description = Enter the description that is on the examine window at the bottom. | |parameter9description = Enter the description that is on the examine window at the bottom. | ||
|parameter10name = droplocation | |parameter10name = droplocation | ||
|parameter10description = This specifies information on where this drops. | |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 | |parameter11name = enchantments | ||
|parameter11description = This specifies the enchantments when the type is augment. | |parameter11description = This specifies the enchantments when the type is augment. | ||
Line 72: | Line 72: | ||
|parameter12description=This is an icon to use, instead of the name | |parameter12description=This is an icon to use, instead of the name | ||
|parameter13name = weight | |parameter13name = weight | ||
|parameter13description = This is the weight, in lbs, as shown on the examine window. | |parameter13description = This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. | ||
|parameter14name = basevalue | |parameter14name = basevalue | ||
|parameter14description = This is the base value as shown in the examine window. | |parameter14description = This is the base value as shown in the examine window. Use [[Template:Price]]. | ||
|parameter15name = notes | |parameter15name = notes | ||
|parameter15description = Any notes about this material. | |parameter15description = Any notes about this material. | ||
Line 82: | Line 82: | ||
|parameter17description = This is the maximum number of items that can stack in the inventory | |parameter17description = This is the maximum number of items that can stack in the inventory | ||
}} | }} | ||
</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|}}}}} | |||
{{IconImage|{{{name}}}|{{{icon|}}}}}</td> | </td> | ||
<td class=" | <td class="col-sm-10"> | ||
<span class="big">{{{name}}}</span>{{#if: {{{type|}}}|[[:Category:{{{type}}}|<br><span class="small">{{{type}}}</span>]]}} | |||
</td> | |||
<td class="col-sm-1"> | |||
{{#if: {{{bagtype|}}}|{{IconImage|{{{bagtype}}}_Bag}}}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 106: | Line 106: | ||
<tr> | <tr> | ||
<td> | <td> | ||
{{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}}'''Binding:''' {{ItemBinding|{{{binding}}}}}<br>{{#if: {{{bagstacksize|}}} | '''Bag Maximum Stack Size:''' {{formatnum:{{{bagstacksize}}}}}<br>}}{{#if: {{{inventorystacksize|}}} | ''' | {{#if: {{{minlevel|}}}|'''Minimum Level:''' {{{minlevel}}}<br>}} | ||
|augment=|potion='''Enchantments:''' | '''Binding:''' {{ItemBinding|{{{binding}}}}}<br> | ||
{{{enchantments|}}} | {{#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|}}}}}|augment=|potion='''Enchantments:''' | |||
{{{enchantments|}}}}} | |||
{{#if: {{{description|}}}|<br>''{{{description}}}''}} | |||
</td> | </td> | ||
</tr>{{#if: {{{weight|}}}{{{basevalue|}}}|<tr> | </tr> | ||
< | {{#if: {{{weight|}}}{{{basevalue|}}}| | ||
<tr> | |||
<td> | |||
<table class=" | <table class="table"> | ||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}} | ||
{{#if: {{{ | |||
</td> | </td> | ||
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table>{{#ifeq: {{FULLPAGENAME}} |Template:Wilderness||[[Category:Loot]]{{#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"> | |||
{{#if: {{{droplocation|}}}| | |||
<tr> | |||
<td>'''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{collectors|}}}| | |||
<tr> | |||
<td>'''Collectors:''' {{WrapMultiLine|{{{collectors}}}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{use|}}}| | |||
<tr> | |||
<td>'''Used In:''' {{{use}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{notes|}}} | | |||
<tr> | |||
<td>{{{notes}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</div> | |||
{{#ifeq: {{FULLPAGENAME}} |Template:Wilderness||[[Category:Loot]]{{#if: {{{type|}}}|[[Category:{{{type}}}]]}}}} | |||
</includeonly> | </includeonly> |
Revision as of 12:21, 18 February 2020
{{Template:Material |name = |type = |minlevel = |binding= |bagtype = |use= |rarity = |collectors = |description = |droplocation = |enchantments= |icon= |weight= |basevalue= |notes= |bagstacksize= |inventorystacksize= }}
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 |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.