Difference between revisions of "Template:One Weapon"
From Dungeons and Dragons Wiki
(Created page with "<noinclude> <!--Properties-- |Weapon=String |SortText=String |Proficiency=String |Type=String |Cost=String |Damage=String |DamageType=String |Weight=String |Properties=List...") |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 37: | Line 37: | ||
|#default = {{{mr}}} | |#default = {{{mr}}} | ||
}} {{One|Weapon}}) {{{refs}}} | }} {{One|Weapon}}) {{{refs}}} | ||
− | {| class="zebra small " | + | {| class="zebra small" style="border:solid 1px goldenrod; border-radius:0.5em;" |
!Name | !Name | ||
!{{#if: {{{damage|}}}|Damage|Damage Type|}} | !{{#if: {{{damage|}}}|Damage|Damage Type|}} | ||
Line 77: | Line 77: | ||
-->{{#set: Cost={{{cost|}}}}}<!-- | -->{{#set: Cost={{{cost|}}}}}<!-- | ||
-->{{#set: Damage={{{damage|}}}}}<!-- | -->{{#set: Damage={{{damage|}}}}}<!-- | ||
− | -->{{#set: | + | -->{{#set: Damage Type={{#switch: {{{dtype}}} |
|b = {{Onelc|Bludgeoning}} | |b = {{Onelc|Bludgeoning}} | ||
|p = {{Onelc|Piercing}} | |p = {{Onelc|Piercing}} | ||
Line 92: | Line 92: | ||
-->{{#set: Note={{{note|}}}}}<!-- | -->{{#set: Note={{{note|}}}}}<!-- | ||
-->{{#set: Racial={{{racial|}}}}} | -->{{#set: Racial={{{racial|}}}}} | ||
− | + | <!--end property store--> <!-- | |
categories | categories |
Latest revision as of 15:38, 2 May 2023
Template documentation (for the above template, sometimes hidden or invisible)
Contents
Syntax[edit]
{{One Weapon |weap= <!--name--> |sorttext= <!--blank, or category sort--> |refs= |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 --> |mastery= |note= <!-- add'l notes --> }}
Add'l Entries[edit]
|canon=true <!-- for published weapons --> |magic=true <!-- for magic weapons --> |monk=true <!-- if monk weapon --> |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 --> |racial= <!-- blank or list of races/subraces-->
Examples[edit]
The example weapon below is defined in wiki-text as follows:
{{One Weapon |weap=Needler |sorttext= <!--blank, or category sort--> |refs=<ref>{{Cite Pub|Foo's Guide to Future Weapons|pages=29}} Licensed: [[Public Domain]].</ref> |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 --> |mastery=Vex |note= <!-- add'l notes --> }}
This text becomes:
Needler (Martial Ranged Weapon) [1]
Name | Damage | Properties | Mastery | Weight | Cost |
---|---|---|---|---|---|
Needler | 1d4 piercing | Ammunition, Light, Loading, Range (60/120) | Vex | 1 lbs | 30 |
Visit Template:One Weapon/doc to edit this text! (How does this work?)
- ↑ p. 29. Licensed: Public Domain.