Difference between revisions of "Template:ItemMaterial"

From DDO Compendium
Line 1: Line 1:
<noinclude>
== How To Use This Template ==
The template for material types in the compendium
<table class="plainlinks" style="width: 50%; background-color: #000000; border: 1px solid #B0B5B8; padding: 15px;">
<tr><td><nowiki>{{Template:Material</nowiki></td></tr>
<tr><td><nowiki>{{Material|type|durability|hardness}</nowiki></td></tr>
<tr><td><nowiki>Sample: {{Material|Leather|190|24}</nowiki></td></tr>
<tr><td>{{Material|Leather|190|24}}</tr>
</table>
The durability and hardness are optional.
== The Template ==
</noinclude>
<onlyinclude>
<onlyinclude>
{{#switch: {{{1}}}  
{{#switch: {{{1}}}  
Line 21: Line 4:


<br>Material: This item is made out of [[Material Type#{{{1}}}|'''{{{1}}}'''.]][[Category:Items made of {{{1}}}]]
<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}}}}}
</onlyinclude>
</onlyinclude>
<noinclude>[[Category:Template]]</noinclude>
<noinclude>[[Category:Template]]</noinclude>

Revision as of 15:08, 25 April 2018



Material: This item is made out of [[Material Type#{{{1}}}|{{{1}}}.]][[Category:Items made of {{{1}}}]]