Difference between revisions of "Template:5e Material"
From Dungeons and Dragons Wiki
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>'''<big>{{{material}}}</big>''' | <includeonly>'''<big>{{{material}}}</big>''' | ||
− | {| | + | '''Armor Class:''' {{{ac|}}}{{#if: {{{ac|}}}|{{#set: AC={{{ac}}}}}|}}<br /> |
− | |{{#set: | + | {{#if: {{{fragile|}}}|'''{{SRD5|Fragile}}'''{{#set: Fragile=Y}}[[Category:5e Fragile Materials]]<br />|{{#if: {{{resilient|}}}|'''{{SRD5|Resilient}}}'''{{#set: Resilient=Y}}[[Category:5e Resilient Materials]]<br />|}}|}} |
− | {{#if: {{{weapon|}}}|'''Weapon Material'''{{#set: Weapon=Y}}<br />| }} | + | {{#if: {{{armor|}}}|'''Armor Material'''{{#set: Armor=Y}}[[Category:5e Armor Materials]]<br />|}} |
− | {{#if: {{{magical|}}}|'''Magical Material'''{{#set: | + | {{#if: {{{weapon|}}}|'''Weapon Material'''{{#set: Weapon=Y}}[[Category:5e Weapon Materials]]<br />|}} |
+ | {{#if: {{{magical|}}}|'''Magical Material'''{{#set: Weapon=Y}}[[Category:5e Weapon Materials]]<br />|}} | ||
{{{desc}}} | {{{desc}}} | ||
[[Category:5e]] | [[Category:5e]] | ||
− | [[Category:5e Materials]] | + | [[Category:5e Materials]]{{#set: isMaterial=y}} |
[[Category:Material]] | [[Category:Material]] | ||
− | |||
− | |||
{{#if: {{{magical|}}}|[[Category:5e Magical Materials]]|[[Category:5e Mundane Materials]]}} | {{#if: {{{magical|}}}|[[Category:5e Magical Materials]]|[[Category:5e Mundane Materials]]}} | ||
− | |} | + | </includeonly><noinclude>{{tocright}} |
− | {{ | + | ==Use== |
+ | To be used on 5e pages describing materials. | ||
+ | ==Syntax== | ||
+ | <pre>{{5e Material | ||
+ | |material= <!-- name of material --> | ||
+ | |ac= <!-- armor class --> | ||
+ | |fragile= <!-- y or blank --> | ||
+ | |resilient= | ||
+ | |armor= <!-- y or blank --> | ||
+ | |weapon= <!-- y or blank --> | ||
+ | |magical= <!-- y or blank--> | ||
+ | |desc= <!-- description of material --> | ||
+ | }} | ||
+ | ==Properties== | ||
+ | {{5e material property|property|description}} <!--Add as many properties as needed--> | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | ==Example== | ||
+ | <pre>{{5e Material | ||
+ | |material=Foo <!-- name of material --> | ||
+ | |ac=13 <!-- armor class --> | ||
+ | |fragile=y <!-- y or blank --> | ||
+ | |resilient= | ||
+ | |armor= <!-- y/n --> | ||
+ | |weapon=y <!-- y/n --> | ||
+ | |magical= <!-- y/n--> | ||
+ | |desc='''Foo''' is a rare crystal found at the heart of the Bar plant | ||
+ | }} | ||
+ | ==Properties== | ||
+ | {{5e material property|Fooism|Fooism produces a skunk smell around the foo material object with a 20 foot radius.}} <!--Add as many properties as needed--> | ||
+ | </pre> | ||
+ | |||
+ | produces... | ||
+ | |||
+ | {{5e Material | ||
+ | |material=Foo <!-- name of material --> | ||
+ | |ac=13 <!-- armor class --> | ||
+ | |fragile=y <!-- y or blank --> | ||
+ | |resilient= | ||
+ | |armor= <!-- y/n --> | ||
+ | |weapon=y <!-- y/n --> | ||
+ | |magical= <!-- y/n--> | ||
+ | |desc='''Foo''' is a rare crystal found at the heart of the Bar plant | ||
+ | ==Properties== | ||
+ | {{5e material property|Fooism|Fooism produces a skunk smell around the foo material object with a 20 foot radius.}} <!--Add as many properties as needed--> | ||
+ | }} | ||
+ | |||
[[Category:5e Templates]] | [[Category:5e Templates]] | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 19:32, 29 September 2021
Contents
Use
To be used on 5e pages describing materials.
Syntax
{{5e Material |material= <!-- name of material --> |ac= <!-- armor class --> |fragile= <!-- y or blank --> |resilient= |armor= <!-- y or blank --> |weapon= <!-- y or blank --> |magical= <!-- y or blank--> |desc= <!-- description of material --> }} ==Properties== {{5e material property|property|description}} <!--Add as many properties as needed-->
Example
{{5e Material |material=Foo <!-- name of material --> |ac=13 <!-- armor class --> |fragile=y <!-- y or blank --> |resilient= |armor= <!-- y/n --> |weapon=y <!-- y/n --> |magical= <!-- y/n--> |desc='''Foo''' is a rare crystal found at the heart of the Bar plant }} ==Properties== {{5e material property|Fooism|Fooism produces a skunk smell around the foo material object with a 20 foot radius.}} <!--Add as many properties as needed-->
produces...
Foo
Armor Class: 13
Fragile
Weapon Material
Foo is a rare crystal found at the heart of the Bar plant
Properties
Fooism |
Fooism produces a skunk smell around the foo material object with a 20 foot radius. |