Difference between revisions of "Template:5e Material"
From Dungeons and Dragons Wiki
(refs) |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly>'''<big>{{{material}}}</big>''' {{{refs|}}} |
− | |||
− | Armor | + | '''Armor Class:''' {{{ac|}}}{{#if: {{{ac|}}}|{{#set: AC={{{ac}}}}}|}}<br /> |
− | Weapon Material: {{{ | + | {{#if: {{{fragile|}}}|'''{{SRD5|Fragile}}'''{{#set: Fragile=Y}}[[Category:5e Fragile Materials]]<br />|{{#if: {{{resilient|}}}|'''{{SRD5|Resilient}}'''{{#set: Resilient=Y}}[[Category:5e Resilient Materials]]<br />|}}|}} |
− | Magical | + | {{#if: {{{armor|}}}|'''Armor Material'''{{#set: Armor=Y}}[[Category:5e Armor Materials]]<br />|}} |
+ | {{#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}}} | ||
+ | [[Category:5e]] | ||
+ | [[Category:5e Materials]]{{#set: isMaterial=y}} | ||
+ | [[Category:Material]] | ||
+ | {{#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 --> | ||
+ | |refs= <!--references--> | ||
+ | |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 --> | ||
+ | |refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=700}} Licensed: [[Public Domain]].</ref> | ||
+ | |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== | ==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 --> | ||
+ | |refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=700}} Licensed: [[Public Domain]].</ref> | ||
+ | |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: | + | [[Category:Templates]] |
</noinclude> | </noinclude> |
Latest revision as of 02:13, 1 January 2022
Contents
Use[edit]
To be used on 5e pages describing materials.
Syntax[edit]
{{5e Material |material= <!-- name of material --> |refs= <!--references--> |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[edit]
{{5e Material |material=Foo <!-- name of material --> |refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=700}} Licensed: [[Public Domain]].</ref> |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 [1]
Armor Class: 13
Fragile
Weapon Material
Foo is a rare crystal found at the heart of the Bar plant
Properties
Fooism[edit] |
Fooism produces a skunk smell around the foo material object with a 20 foot radius. |
- ↑ p. 700. Licensed: Public Domain.