Difference between revisions of "Template:ItemMaterial"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
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 4: | Line 21: | ||
<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}}}}} | |||
<br> | |||
</onlyinclude> | </onlyinclude> | ||
Revision as of 14:45, 25 April 2018
How To Use This Template[edit]
The template for material types in the compendium
{{Template:Material | |||||
{{Material|type|durability|hardness} | |||||
Sample: {{Material|Leather|190|24} | |||||
|
The durability and hardness are optional.
The Template[edit]
Material: This item is made out of [[Material Type#{{{1}}}|{{{1}}}.]][[Category:Items made of {{{1}}}]]
{{#if {{{2}}} | |
Durability: {{{2}}}}}
{{#if {{{3}}} | |
Hardness: {{{3}}}}}