Difference between revisions of "Template:ItemMaterial"

From DDO Compendium
Line 16: Line 16:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:ItemMaterial||[[Category:Items made of {{{1}}}]]}}
<onlyinclude>{{#if: {{{1|}}}|{{#ifeq: {{FULLPAGENAME}} |Template:ItemMaterial||[[Category:Items made of {{{1}}}]]}}


{{#if: {{{1|}}}|<br>'''Material:''' This item is made out of: '''[[Material Type#{{{1}}}|'''{{{1}}}''']]'''<br>{{#if: {{{2|}}} |  '''Hardness:''' {{{2}}}}}{{#if: {{{3|}}} | &nbsp;'''Durability:''' {{{3}}}}} }}</onlyinclude>
{{#if: {{{1|}}}|<br>'''Material:''' This item is made out of: '''[[Material Type#{{{1}}}|'''{{{1}}}''']]'''<br>{{#if: {{{2|}}} |  '''Hardness:''' {{{2}}}}}{{#if: {{{3|}}} | &nbsp;'''Durability:''' {{{3}}}}} }}}}</onlyinclude>

Revision as of 20:16, 2 August 2019

ItemMaterial[edit]

This template is used on equipment to define what material it is made up. This is added automatically by the templates that need it.

Example Usage
{{ItemMaterial|Silver|10|100}}
Material: This item is made out of: Silver
Hardness: 10 Durability: 100

Usage[edit]

{{ItemMaterial|(Material Type)|(Hardness)|(Durability)}}

Parameter Documentation
Material TypeThis defines what material the item is made of.
HardnessThis defines the hardness of the item.
DurabilityThis defines the durability of the item.

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.