Difference between revisions of "Template:ItemMaterial"

From DDO Compendium
m (formatting)
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{TemplateDocumentation
== How To Use This Template ==
|name = ItemMaterial
 
|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.
The template for material types in the compendium
|category = Item Templates
 
|example1 = <nowiki>{{ItemMaterial|Silver|10|100}}</nowiki>
<table class="plainlinks" style="width: 50%; background-color: #000000; border: 1px solid #B0B5B8; padding: 15px;">
|example1output = {{ItemMaterial|Silver|10|100}}
<tr><td><nowiki>{{Template:Material</nowiki></td></tr>
|parameter1name = Material Type
<tr><td><nowiki>{{Material|type|durability|hardness}</nowiki></td></tr>
|parameter1description = This defines what material the item is made of.
<tr><td><nowiki>Sample: {{Material|Leather|190|24}</nowiki></td></tr>
|parameter1values =
<tr><td>{{Material|Leather|190|24}}</tr>
|parameter2name = Hardness
</table>
|parameter2description = This defines the hardness of the item.
 
|parameter2values =
The durability and hardness are optional.
|parameter3name = Durability
 
|parameter3description = This defines the durability of the item.
== The Template ==
|parameter3values =  
}}
</noinclude>
</noinclude>
<onlyinclude>{{#if: {{{1|}}}|{{#ifeq: {{FULLPAGENAME}} |Template:ItemMaterial||[[Category:Items made of {{{1}}}]]}}


<onlyinclude>
{{#if: {{{1|}}}|'''Material:''' This item is made out of: '''[[Material Type#{{{1}}}|'''{{{1}}}''']]'''<br>{{#if: {{{2|}}} | '''Hardness:''' {{{2}}}}}{{#if: {{{3|}}} | &nbsp;'''Durability:''' {{{3}}}}} }}}}</onlyinclude>
{{#switch: {{{1}}}  
| Flametouched Iron = * '''Flametouched Iron''': Mined only in Thrane, flametouched iron is rare and considered sacred by the Church of the Silver Flame. When mined, this iron variety has a speckled dark red color, resembling rust. Adherents of the Church of the Silver Flame believe that flametouched iron carries the particular blessing of their diety, and they use it to make holy symbols, weapons, and armor A flametouched iron weapon is treated as a good-aligned weapon. }}
 
<br>Material: This item is made out of [[Material Type#{{{1}}}|'''{{{1}}}'''.]][[Category:Items made of {{{1}}}]]
{{#if {{{2}}} | | <br>Durability: {{{2}}}}}
{{#if {{{3}}} | | <br>Hardness: {{{3}}}}}
<br>
</onlyinclude>
 
 
 
 
<noinclude>[[Category:Template]]</noinclude>

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.