Difference between revisions of "Template:ItemMaterial"

From DDO Compendium
m (formatting)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>[[Category:Template]]{{TemplateDocumentation
<noinclude>{{TemplateDocumentation
|name = Material
|name = ItemMaterial
|description = This template is used on equipment to define what material it is made up.
|description = This template is used on equipment to define what material it is made up. This is added automatically by the templates that need it.
|example1 = <nowiki>{{Material|Silver|10|100}}</nowiki>
|category = Item Templates
|example1output = {{Material|Silver|10|100}}
|example1 = <nowiki>{{ItemMaterial|Silver|10|100}}</nowiki>
|example1output = {{ItemMaterial|Silver|10|100}}
|parameter1name = Material Type
|parameter1name = Material Type
|parameter1description = This defines what material the item is made of.
|parameter1description = This defines what material the item is made of.
|parameter1values =  
|parameter1values =  
|parameter1name = Hardness
|parameter2name = Hardness
|parameter1description = This defines the hardness of the item.
|parameter2description = This defines the hardness of the item.
|parameter1values =  
|parameter2values =  
|parameter1name = Durability
|parameter3name = Durability
|parameter1description = This defines the durability of the item.
|parameter3description = This defines the durability of the item.
|parameter1values =  
|parameter3values =  
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#if: {{{1|}}}|<br>'''Material:''' This item is made out of: '''[[Material Type#{{{1}}}|'''{{{1}}}''']]'''[[Category:Items made of {{{1}}}]]<br>{{#if: {{{2|}}} |  '''Hardness:''' {{{2}}}}}{{#if: {{{3|}}} | &nbsp;'''Durability:''' {{{3}}}}} }}</onlyinclude>
<onlyinclude>{{#if: {{{1|}}}|{{#ifeq: {{FULLPAGENAME}} |Template:ItemMaterial||[[Category:Items made of {{{1}}}]]}}
<noinclude>[[Category:Template]]</noinclude>
 
{{#if: {{{1|}}}|'''Material:''' This item is made out of: '''[[Material Type#{{{1}}}|'''{{{1}}}''']]'''<br>{{#if: {{{2|}}} |  '''Hardness:''' {{{2}}}}}{{#if: {{{3|}}} | &nbsp;'''Durability:''' {{{3}}}}} }}}}</onlyinclude>

Latest revision as of 13:54, 18 February 2020

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.