Template:5e Weapon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
|Cost=String | |Cost=String | ||
|Damage=String | |Damage=String | ||
|Damage_Type=String | |Damage_Type=Wikitext String | ||
|Weight=String <!--in pounds--> | |Weight=String <!--in pounds--> | ||
|Properties=List (, ) of Wikitext string | |Properties=List (, ) of Wikitext string | ||
Line 14: | Line 14: | ||
|Polearm=Boolean | |Polearm=Boolean | ||
|PBA=Boolean <!--Polearm Bonus Attack--> | |PBA=Boolean <!--Polearm Bonus Attack--> | ||
|PROA=Boolean <!--Polearm Reach Opportunity Attack-> | |PROA=Boolean <!--Polearm Reach Opportunity Attack--> | ||
|Monk_Weapon=Boolean | |Monk_Weapon=Boolean | ||
|Note=Wikitext | |Note=Wikitext | ||
Line 20: | Line 20: | ||
|Pointer=Boolean | |Pointer=Boolean | ||
|Hidden=Boolean | |Hidden=Boolean | ||
}}</noinclude><includeonly>'''<big>{{{weap}}}</big>'''{{#if: {{{nodb|}}}|<--skip sortkey-->|{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }} }}[[Category:5e Weapons]]{{#if: {{{canon|}}}|[[Category:5e Canon Weapons]]|}} | |Racial=List (, ) of string | ||
}}</noinclude><includeonly>'''<big>{{{weap}}}</big>'''{{#if: {{{nodb|}}}|<!--skip sortkey-->|{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}|}}|}}[[Category:5e Weapons]]{{#if: {{{canon|}}}|[[Category:5e Canon Weapons]]|}} | |||
({{#switch: {{{smo}}} | |||
|s = Simple [[Category:5e Simple Weapons]] | |s = {{SRD5|Simple Weapon|Simple}} [[Category:5e Simple Weapons]] | ||
|m = Martial [[Category:5e Martial Weapons]] | |m = {{SRD5|Martial Weapon|Martial}} [[Category:5e Martial Weapons]] | ||
|#default = {{{smo}}} | |#default = {{{smo}}} | ||
}} {{#switch: {{{mr}}} | }} {{#switch: {{{mr}}} | ||
|m = Melee [[Category:5e Melee Weapons]] | |m = {{SRD5|Melee Weapon|Melee}} [[Category:5e Melee Weapons]] | ||
|r = Ranged[[Category:5e Ranged Weapons]] | |r = {{SRD5|Ranged Weapon|Ranged}}[[Category:5e Ranged Weapons]] | ||
|none = — | |none = — | ||
|#default = {{{mr}}} | |#default = {{{mr}}} | ||
}} | }} {{SRD5|Weapon}}) {{{refs|}}} | ||
{| class=" | {| class="zebra small " | ||
!Name | !Name | ||
!Cost | !Cost | ||
Line 40: | Line 40: | ||
|- | |- | ||
|{{{weap}}} | |{{{weap}}} | ||
|align="right"|{{#if: {{{cost|}}} | | |align="right"|{{#if: {{{cost|}}} | {{{cost}}} | —}} <!-- cost --> | ||
|{{#if: {{{damage|}}}|{{{damage}}} | |{{#if: {{{damage|}}}|{{{damage}}} |}}{{#switch: {{{dtype}}} | ||
|b = {{srd5lc|Bludgeoning}} | |b = {{srd5lc|Bludgeoning}} | ||
|p = {{srd5lc|Piercing}} | |p = {{srd5lc|Piercing}} | ||
|s = {{srd5lc|Slashing}} | |s = {{srd5lc|Slashing}} | ||
|none = — | |none = — | ||
|#default = {{{dtype}}} | |#default = {{{dtype}}} | ||
}} | }} | ||
|align="center"|{{#if: {{{weight|}}} |{{{weight}}} lbs | – }} | |align="center"|{{#if: {{{weight|}}} |{{{weight}}} lbs | – }} | ||
Line 74: | Line 73: | ||
end heavy-->|}}<!-- | end heavy-->|}}<!-- | ||
end fine-->|}}<!-- | end fine-->|}}<!-- | ||
end ammo-->{{#if: {{{magic|}}}|[[Category:5e Magic | end ammo--> | ||
|}{{#if: {{{note|}}} |<br />'''Note:''' {{{note}}} }}{{#if: {{{nodb|}}}|<!--skip-->|<!--cargo store -->{{#cargo_store: | |}{{#if: {{{magic|}}}|[[Category:5e Magic Weapons]]|}}{{#if: {{{polearm|}}}|[[Category:5e Polearms]]|}}{{#if: {{{monk|}}}|[[Category:5e Monk Weapons]]|}} | ||
{{#if: {{{note|}}} |<br />'''Note:''' {{{note}}}|}}{{#if: {{{nodb|}}}|<!--skip-->|<!--cargo store -->{{#cargo_store: | |||
_table = 5e_Weapon | _table = 5e_Weapon | ||
|Sort_Text = {{#if:{{{sorttext|}}}|{{{sorttext}}} 5e | |Sort_Text = {{#if:{{{sorttext|}}}|{{{sorttext}}} 5e|{{PAGENAME}} 5e}} | ||
|Weapon_Name={{{weap|}}} | |Weapon_Name={{{weap|}}} | ||
|Proficiency={{#switch: {{{smo}}} | |Proficiency={{#switch: {{{smo}}} | ||
Line 83: | Line 83: | ||
|m = Martial | |m = Martial | ||
|#default = {{{smo}}} | |#default = {{{smo}}} | ||
}} | }} | ||
|Weapon_Type={{#switch: {{{mr}}} | |Weapon_Type={{#switch: {{{mr}}} | ||
|m = Melee | |m = Melee | ||
Line 89: | Line 89: | ||
|none = — | |none = — | ||
|#default = {{{mr}}} | |#default = {{{mr}}} | ||
}} | }} | ||
|Cost={{{cost|}}} | |Cost={{{cost|}}} | ||
|Damage={{{damage|}}} | |Damage={{{damage|}}} | ||
|Damage_Type={{{dtype|}}} | |Damage_Type={{#switch: {{{dtype}}} | ||
|b = {{srd5lc|Bludgeoning}} | |||
|p = {{srd5lc|Piercing}} | |||
|s = {{srd5lc|Slashing}} | |||
|none = — | |||
|#default = {{{dtype}}} | |||
}} | |||
|Weight={{{weight|}}} | |Weight={{{weight|}}} | ||
|Properties={{5e Weapon Prop List|ammo={{{ammo|}}}|fine={{{fine|}}}|heavy={{{heavy|}}}|light={{{light|}}}|load={{{load|}}}|range={{{range|}}}|reach={{{reach|}}}|special={{{special|}}}|thrown={{{thrown|}}}|twohand={{{twohand|}}}|vers={{{vers|}}}|otherp={{{otherp|}}}}} | |Properties={{5e Weapon Prop List|ammo={{{ammo|}}}|fine={{{fine|}}}|heavy={{{heavy|}}}|light={{{light|}}}|load={{{load|}}}|range={{{range|}}}|reach={{{reach|}}}|special={{{special|}}}|thrown={{{thrown|}}}|twohand={{{twohand|}}}|vers={{{vers|}}}|otherp={{{otherp|}}}}} | ||
|Magic={{#if: {{{magic|}}}|1}} | |Magic={{#if: {{{magic|}}}|1|0}} | ||
|Polearm={{#if: {{{polearm|}}}|1}} | |Polearm={{#if: {{{polearm|}}}|1|0}} | ||
|PBA={{#if: {{{polearm bonus attack|}}}|1}} | |PBA={{#if: {{{polearm bonus attack|}}}|1|0}} | ||
|PROA={{#if: {{{polearm op attack reach|}}}|1}} | |PROA={{#if: {{{polearm op attack reach|}}}|1|0}} | ||
|Monk_Weapon={{#if: {{{monk|}}}|1}} | |Monk_Weapon={{#if: {{{monk|}}}|1|0}} | ||
|Note={{{note|}}} | |Note={{{note|}}} | ||
|Canon={{#if: {{{canon|}}}|1}} | |Canon={{#if: {{{canon|}}}|1|0}} | ||
|Pointer={{#if: {{{pointer|}}}|1}} | |Pointer={{#if: {{{pointer|}}}|1|0}} | ||
|Hidden={{#if: {{{hidden|}}}|1}} | |Hidden={{#if: {{{hidden|}}}|1|0}} | ||
}} }}</includeonly><noinclude> | |Racial={{{racial|}}} | ||
}}<!--cargo store--> }}<!--nodb--></includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
[[Category:5e Templates|Weapon Template 5e]] | [[Category:5e Templates|Weapon Template 5e]] | ||
</noinclude> | </noinclude> |
Latest revision as of 08:50, 31 December 2022
This template defines the table "5e_Weapon". View table.
Template documentation (for the above template, sometimes hidden or invisible)
Syntax
{{5e Weapon |weap= <!--name--> |sorttext= <!--blank, or category sort--> |refs= <!--references--> |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 --> |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
The example weapon below is defined in wiki-text as follows:
{{5e Weapon |weap=Needler |sorttext= <!--blank, or category sort--> |refs=<ref>{{Cite Pub|Foo's Guide to Future Weapons|pages=36}} 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 --> |note= <!-- add'l notes --> }}
This text becomes:
Needler (Martial Ranged Weapon) [1]
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?)
- Foo's Guide to Future Weapons p. 36. Licensed: Public Domain. ↑