Difference between revisions of "Template:5e Weapon"
From Dungeons and Dragons Wiki
m |
m (category) |
||
Line 1: | Line 1: | ||
− | <includeonly>'''<big>{{{weap}}}</big>''' | + | <includeonly>'''<big>{{{weap}}}</big>'''[[Category:5e Weapons]] |
'''{{#switch: {{{smo}}} | '''{{#switch: {{{smo}}} | ||
− | |s = [[Proficiency::Simple]] | + | |s = [[Proficiency::Simple]][[Category:5e Simple Weapons]] |
− | |m = [[Proficiency::Martial]] | + | |m = [[Proficiency::Martial]][[Category:5e Martial Weapons]] |
|#default = [[Proficiency::{{{smo}}}]] | |#default = [[Proficiency::{{{smo}}}]] | ||
|<span style="color: red;">Enter 's'imple, 'm'artial, or value for parameter 'sme'</span> | |<span style="color: red;">Enter 's'imple, 'm'artial, or value for parameter 'sme'</span> | ||
}} {{#switch: {{{mr}}} | }} {{#switch: {{{mr}}} | ||
− | |m = [[Type::Melee]] | + | |m = [[Type::Melee]][[Category:5e Melee Weapons]] |
− | |r = [[Type::Ranged]] | + | |r = [[Type::Ranged]][[Categoy:5e Ranged Weapons]] |
|none = {{#set:Type=—}} | |none = {{#set:Type=—}} | ||
|#default = [[Type::{{{mr}}}]] | |#default = [[Type::{{{mr}}}]] | ||
Line 37: | Line 37: | ||
− | </includeonly><noinclude>{{documentation}}</noinclude> | + | </includeonly><noinclude>{{documentation}}[[Category:5e Templates]]</noinclude> |
Revision as of 13:26, 6 October 2016
Template documentation (for the above template, sometimes hidden or invisible)
Contents
Syntax
{{5e Weapon |weap= <!--name--> |sorttext= <!--blank, or category sort--> |smo= <!-- s=simple m=martial value if other (ex. exotic, dwarven only) --> |mr= <!-- m=melee r=ranged --> |damage= |dtype= <!--(b=bludgeoning, p=piercing, s=slashing, value if other)--> |weight= <!-- in lbs. --> |cost= |ammo= <!-- y=uses Ammunition--> |fine= <!-- y=is Finesse --> |heavy= <!-- y=is Heavy --> |light= <!-- y=is Light --> |load= <!-- y=Loading --> |range= <!-- enter value, example: 20/60) --> |reach= <!-- y=has Reach --> |special= <!-- y=has Special rules --> |thrown= <!-- y=may be thrown --> |twohand= <!-- y=is two-handed weapon --> |vers= <!-- enter value if Versatile, example: 1d10 --> |otherp= <!-- enter value if non-standard property, example: exotic --> |note= <!-- add'l notes --> }}
Add'l Entries
|canon=true <!-- for published weapons --> |magic=true <!-- for magic weapons --> |polearm=true <!-- if polearm --> |polearm bonus attack=true <!-- if polearm master feat grants bonus attack --> |polearm op attack reach=true <!-- if polearm feat givess reach to op attack -->
Examples
The example weapon below is defined in wiki-text as follows:
{{5e Weapon |weap=Needler |sorttext= <!--blank, or category sort--> |smo=m <!-- s=simple m=martial value if other (ex. exotic, dwarven only) --> |mr=r <!-- m=melee r=ranged --> |damage=1d4 |dtype=p <!--(b=bludgeoning, p=piercing, s=slashing, value if other)--> |weight=1 <!-- in lbs. --> |cost=30 |ammo=y <!-- y=uses Ammunition--> |fine= <!-- y=is Finesse --> |heavy= <!-- y=is Heavy --> |light=y <!-- y=is Light --> |load=y <!-- y=Loading --> |range=60/120 <!-- enter value, example: 20/60) --> |reach= <!-- y=has Reach --> |special= <!-- y=has Special rules --> |thrown= <!-- y=may be thrown --> |twohand= <!-- y=is two-handed weapon --> |vers= <!-- enter value if Versatile, example: 1d10 --> |otherp= <!-- enter value if non-standard property, example: exotic --> |note= <!-- add'l notes --> }}
This text becomes:
Needler
Martial Ranged Weapon
Name | Cost | Damage | Weight | Properties |
---|---|---|---|---|
Needler | 30 | 1d4 piercing | 1 lbs | Ammunition, Light, Loading, Range (60/120) |
Visit Template:5e Weapon/doc to edit this text! (How does this work?)