Template:5e Magic Weapon: Difference between revisions
Jump to navigation
Jump to search
(wip) |
No edit summary |
||
Line 38: | Line 38: | ||
|Thrown = Boolean | |Thrown = Boolean | ||
|Two_Handed = Boolean | |Two_Handed = Boolean | ||
|Versatile = | |Versatile = String | ||
| | |Other_Prop = String | ||
|Author = String | |Author = String | ||
}}--> | }}--> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
'''{{{name}}}'''{{#cargo_store: _table = 5e_Monsters|Item_Name = {{{name}}} | '''{{{name}}}'''{{#cargo_store: _table = 5e_Monsters|Item_Name = {{{name}}}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}{{#cargo_store: _table = 5e_Monsters|Sort_Text = {{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}{{#cargo_store: _table = 5e_Monsters|Sort_Text = {{PAGENAME}} 5e}}}}[[Category:5e Magic Items]][[Category:5e Magic Weapons]]<br /> | ||
{{#cargo_store: _table = 5e_Monsters|Item_Type = Weapon | [[SRD5:Weapon|Weapon]]{{#cargo_store: _table = 5e_Monsters|Item_Type = Weapon}}<!--{{#set:weap={{{name|}}-->[[Category:5e Weapons]][[Category:Weapon]][[Category:5e]][[Category:Magic Item]]{{#if: {{{canon|}}}|[[Category:5e Canon Magic Items]]{{#cargo_store: _table = 5e_Monsters|Canon = 1}}<!--{{#set: Canon=true}}-->|}}<!-- avoid cr | ||
-->''{{#switch: {{{smo}}} | -->''{{#switch: {{{smo}}} | ||
|s = {{#cargo_store: _table = 5e_Monsters|SimpleMartial = Simple}}<!--[[Proficiency::Simple]]-->[[Category:5e Simple Weapons]] | |s = {{#cargo_store: _table = 5e_Monsters|SimpleMartial = Simple}}<!--[[Proficiency::Simple]]-->[[Category:5e Simple Weapons]] | ||
Line 66: | Line 66: | ||
|#default = {{lc:{{{rarity}}}}}{{#cargo_store: _table = 5e_Monsters|Rarity = {{{rarity}}}}}<!--[[Rarity::{{{rarity}}}]]--> | |#default = {{lc:{{{rarity}}}}}{{#cargo_store: _table = 5e_Monsters|Rarity = {{{rarity}}}}}<!--[[Rarity::{{{rarity}}}]]--> | ||
}}{{#if: {{{attunement|}}}|{{#cargo_store: _table = 5e_Monsters|Attunement = 1}}{{#if: {{{raritynote|}}}| ({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}}|}})| (requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}}|}})| }}<!--{{#set: attunement=yes}}-->|{{#if: {{{raritynote|}}}| ({{{raritynote}}})| }}}}''<br />{{#if: {{{raritynote|}}}|{{#cargo_store: _table = 5e_Monsters|Rarity_Note = {{{raritynote}}}}}|}} | }}{{#if: {{{attunement|}}}|{{#cargo_store: _table = 5e_Monsters|Attunement = 1}}{{#if: {{{raritynote|}}}| ({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}}|}})| (requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}}|}})| }}<!--{{#set: attunement=yes}}-->|{{#if: {{{raritynote|}}}| ({{{raritynote}}})| }}}}''<br />{{#if: {{{raritynote|}}}|{{#cargo_store: _table = 5e_Monsters|Rarity_Note = {{{raritynote}}}}}|}} | ||
{{#if: {{{desc|}}}|{{{desc}}}| }} | {{#if: {{{desc|}}}|{{{desc}}}{{#cargo_store: _table = 5e_Monsters|Description = {{{desc}}}}}| }} | ||
{| class="zebra" style="border-style:solid; border-width:1px; border-radius:0.5em;" | {| class="zebra" style="border-style:solid; border-width:1px; border-radius:0.5em;" | ||
!style="background:#e8d693;"|Name | !style="background:#e8d693;"|Name | ||
Line 75: | Line 75: | ||
|- | |- | ||
|{{{name}}} | |{{{name}}} | ||
|align="center"|{{#if: {{{magicbonus|}}}| [[Magic Bonus:: {{{magicbonus|}}} ]]| }} | |align="center"|{{#if: {{{magicbonus|}}}| {{{magicbonus}}} {{#cargo_store: _table = 5e_Monsters|Magic_Bonus = {{{magicbonus}}}}}<!--[[Magic Bonus:: {{{magicbonus|}}} ]]-->| }} | ||
|{{{damage}}}{{#set:Damage={{{damage}}}}} {{#switch: {{{dtype}}} | |{{{damage}}}{{#cargo_store: _table = 5e_Monsters|Damage = {{{damage}}}}}<!--{{#set:Damage={{{damage}}}}}--> {{#switch: {{{dtype}}} | ||
|b = [[SRD5:Bludgeoning{{!}}Bludgeoning]]{{#set:DamageType=Bludgeoning}} | |b = [[SRD5:Bludgeoning{{!}}Bludgeoning]]{{#cargo_store: _table = 5e_Monsters|Damage_Type = Bludgeoning}}<!--{{#set:DamageType=Bludgeoning}}--> | ||
|p = [[SRD5:Piercing{{!}}Piercing]]{{#set:DamageType=Piercing}} | |p = [[SRD5:Piercing{{!}}Piercing]]{{#cargo_store: _table = 5e_Monsters|Damage_Type = Piercing}}<!--{{#set:DamageType=Piercing}}--> | ||
|s = [[SRD5:Slashing{{!}}Slashing]]{{#set:DamageType=Slashing}} | |s = [[SRD5:Slashing{{!}}Slashing]]{{#cargo_store: _table = 5e_Monsters|Damage_Type = Slashing}}<!--{{#set:DamageType=Slashing}}--> | ||
|none = {{#set:DamageType=—}} | |none = —{{#cargo_store: _table = 5e_Monsters|Damage_Type = —}}<!--{{#set:DamageType=—}}--> | ||
|#default = [[DamageType::{{{dtype}}}]] | |#default = {{{dtype}}}{{#cargo_store: _table = 5e_Monsters|Damage_Type = {{{dtype}}}}}<!--[[DamageType::{{{dtype}}}]]--> | ||
|<span style="color: red;">Enter 'b', 'p', 's', or value for parameter 'dtype'</span> | |<span style="color: red;">Enter 'b', 'p', 's', or value for parameter 'dtype'</span> | ||
}}{{#if: {{{addldamage|}}}| ({{{addldamage}}})| }} | }}{{#if: {{{addldamage|}}}| ({{{addldamage}}}){{#cargo_store: _table = 5e_Monsters|Addl_Damage = {{{addldamage}}}}}| }} | ||
|align="center"|{{#if: {{{weight|}}} | [[Weight::{{{weight}}}]] lbs | [[Weight::—]]}} | |align="center"|{{#if: {{{weight|}}} | {{{weight}}}{{#cargo_store: _table = 5e_Monsters|Weight = {{{weight}}}}}{{{weight}}}<!--[[Weight::{{{weight}}}]]--> lbs | —{{#cargo_store: _table = 5e_Monsters|Weight = —}}<!--[[Weight::—]]-->}} | ||
| {{#if: {{{ammo|}}} | [[SRD5:Ammunition{{!}}Ammunition]] [[Category:5e Ammunition Weapons]] {{#set:Ammunition=true}} }} {{#if: {{{fine|}}} | [[SRD5:Finesse{{!}}Finesse]] [[Category:5e Finesse Weapons]]{{#set:Finesse=true}} }} {{#if: {{{heavy|}}} | [[SRD5:Heavy Weapon{{!}}Heavy]] [[Category:5e Heavy Weapons]]{{#set:Heavy=true}} }} {{#if: {{{light|}}} | [[SRD5:Light Weapon{{!}}Light]] [[Category:5e Light Weapons]]{{#set:Light=true}} }} {{#if: {{{load|}}} | [[SRD5:Loading{{!}}Loading]] [[Category:5e Loading Weapons]]{{#set:Loading=true}} }} {{#if: {{{range|}}} | [[SRD5:Range{{!}}Range]] ({{{range}}}) {{#set:Range={{{range}}}}} }} {{#if: {{{reach|}}} | [[SRD5:Reach{{!}}Reach]] [[Category:5e Reach Weapons]] {{#set: Reach=true}}|}} {{#if: {{{special|}}} | [[SRD5:Special{{!}}Special]] [[Category:5e Special Weapons]] {{#set: Special=true}}|}} {{#if: {{{thrown|}}} | [[SRD5:Thrown{{!}}Thrown]] [[Category:5e Thrown Weapons]]{{#set:Thrown=true}} }} {{#if: {{{twohand|}}} | [[SRD5:Two-Handed{{!}}Two-Handed]] [[Category:5e Two-Handed Weapons]]{{#set:Two-Handed=true}} }} {{#if: {{{vers|}}} | [[SRD5:Versatile{{!}}Versatile]] ({{{vers}}})[[Category:5e Versatile Weapons]]{{#set:Versatile=true}} }} {{#if: {{{otherp|}}} | {{{otherp}}} {{#set:OtherP={{{otherp}}} }} }} | | {{#if: {{{ammo|}}} | [[SRD5:Ammunition{{!}}Ammunition]] [[Category:5e Ammunition Weapons]] {{#cargo_store: _table = 5e_Monsters|Ammo = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Ammunition}}<!--{{#set:Ammunition=true}}--> }} {{#if: {{{fine|}}} | [[SRD5:Finesse{{!}}Finesse]] [[Category:5e Finesse Weapons]]{{#cargo_store: _table = 5e_Monsters|Finesse = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Finesse}}<!--{{#set:Finesse=true}}--> }} {{#if: {{{heavy|}}} | [[SRD5:Heavy Weapon{{!}}Heavy]] [[Category:5e Heavy Weapons]]{{#cargo_store: _table = 5e_Monsters|Heavy = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Heavy}}<!--{{#set:Heavy=true}}--> }} {{#if: {{{light|}}} | [[SRD5:Light Weapon{{!}}Light]] [[Category:5e Light Weapons]]{{#cargo_store: _table = 5e_Monsters|Light = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Light}}<!--{{#set:Light=true}}--> }} {{#if: {{{load|}}} | [[SRD5:Loading{{!}}Loading]] [[Category:5e Loading Weapons]]{{#cargo_store: _table = 5e_Monsters|Loading = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Loading}}<!--{{#set:Loading=true}}--> }} {{#if: {{{range|}}} | [[SRD5:Range{{!}}Range]] ({{{range}}}) {{#cargo_store: _table = 5e_Monsters|Range = {{{range}}}}}{{#cargo_store: _table = 5e_Monsters|Properties = Range ({{{range}}})}}<!--{{#set:Range={{{range}}}}}--> }} {{#if: {{{reach|}}} | [[SRD5:Reach{{!}}Reach]] [[Category:5e Reach Weapons]] {{#cargo_store: _table = 5e_Monsters|Reach = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Reach}}<!--{{#set: Reach=true}}-->|}} {{#if: {{{special|}}} | [[SRD5:Special{{!}}Special]] [[Category:5e Special Weapons]] {{#cargo_store: _table = 5e_Monsters|Special = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Special}}<!--{{#set: Special=true}}-->|}} {{#if: {{{thrown|}}} | [[SRD5:Thrown{{!}}Thrown]] [[Category:5e Thrown Weapons]]{{#cargo_store: _table = 5e_Monsters|Thrown = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Thrown}}<!--{{#set:Thrown=true}}--> }} {{#if: {{{twohand|}}} | [[SRD5:Two-Handed{{!}}Two-Handed]] [[Category:5e Two-Handed Weapons]]{{#cargo_store: _table = 5e_Monsters|Two_Handed = 1}}{{#cargo_store: _table = 5e_Monsters|Properties = Two-Handed}}<!--{{#set:Two-Handed=true}}--> }} {{#if: {{{vers|}}} | [[SRD5:Versatile{{!}}Versatile]] ({{{vers}}})[[Category:5e Versatile Weapons]]{{#cargo_store: _table = 5e_Monsters|Versatile = {{{vers}}}}}{{#cargo_store: _table = 5e_Monsters|Properties = Versatile ({{{vers}}})}}<!--{{#set:Versatile=true}}--> }} {{#if: {{{otherp|}}} | {{{otherp}}} {{#cargo_store: _table = 5e_Monsters|Other = {{{otherp}}}}}{{#cargo_store: _table = 5e_Monsters|Properties = {{{otherp}}}}}<!--{{#set:OtherP={{{otherp}}}}}--> }} | ||
|- | |- | ||
|colspan=5 style="font-size:8pt;"|<sup>1</sup>Magic bonus is '''not''' included in listed damage. | |colspan=5 style="font-size:8pt;"|<sup>1</sup>Magic bonus is '''not''' included in listed damage. | ||
|} | |} | ||
| | ||
{{#set:Properties={{#if: {{{ammo|}}}|Ammunition|}}{{#if: {{{fine|}}}| Finesse|}} {{#if: {{{heavy|}}}| Heavy|}}{{#if: {{{light|}}}| Light|}}{{#if: {{{load|}}}| Loading|}}{{#if: {{{range|}}}| Range {{{range}}} ft.|}}{{#if:{{{reach|}}}| Reach|}}{{#if: {{{special|}}}| Special|}}{{#if: {{{thrown|}}}| Thrown|}}{{#if: {{{twohand|}}}| Two-handed|}}{{#if: {{{vers|}}}| Versatle {{{vers}}}|}}{{#if: {{{otherp|}}}| {{{otherp}}}|}} }} | <!--{{#set:Properties={{#if: {{{ammo|}}}|Ammunition|}}{{#if: {{{fine|}}}| Finesse|}} {{#if: {{{heavy|}}}| Heavy|}}{{#if: {{{light|}}}| Light|}}{{#if: {{{load|}}}| Loading|}}{{#if: {{{range|}}}| Range {{{range}}} ft.|}}{{#if:{{{reach|}}}| Reach|}}{{#if: {{{special|}}}| Special|}}{{#if: {{{thrown|}}}| Thrown|}}{{#if: {{{twohand|}}}| Two-handed|}}{{#if: {{{vers|}}}| Versatle {{{vers}}}|}}{{#if: {{{otherp|}}}| {{{otherp}}}|}} }}--> | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Revision as of 08:24, 4 February 2020
This template adds rows to the table "5e_Magic_Items", which is declared by the template 5e Magic Item. View table.
Template documentation (for the above template, sometimes hidden or invisible)
This template combines the 5e Magic Item and 5e Weapon templates.
Use
Use in articles that describe a magic weapon in 5th edition.
Syntax
{{5e Magic Weapon |name= <!-- name of magic weapon --> |sorttext= <!--blank, or category sort--> |typenote= <!-- Note following type. ex. ammunition --> |rarity= <!-- Common, Uncommon, Rare, Very Rare, Legendary --> |raritynote= <!-- Note following rarity, other than requires attunement. --> |attunement= <!-- Yes if requires attunement, otherwise blank --> |attunementnote= <!-- blank unless attunement note --> |charges= <!-- # of charges or uses, otherwise blank --> |smo= <!-- s=simple m=martial value if other (ex. exotic, dwarven only) --> |mr= <!-- m=melee r=ranged --> |magicbonus= <!-- +1, +2, +3 otherwise blank--> |damage= <!-- d6, d8, 2d6, etc.--> |dtype= <!--(b=bludgeoning, p=piercing, s=slashing, value if other)--> |addldamage= <!-- add'l damage and type --> |weight= <!-- in lbs. --> |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 --> |desc= <!--Description of the magic weapon, rules, and abilities --> }} <--Description and rules for the magic item-->
Example
{{5e Magic Weapon |name= Foo's Sword<!-- name of magic weapon --> |sorttext= <!--blank, or category sort--> |typenote={{SRD5|Scimitar}} <!-- Note following type. ex. ammunition --> |rarity= Very Rare<!-- Common, Uncommon, Rare, Very Rare, Legendary --> |raritynote= <!-- Note following rarity, other than requires attunement. --> |attunement= <!-- Yes if requires attunement, otherwise blank --> |attunementnote= <!-- blank unless attunement note --> |charges= <!-- # of charges or uses, otherwise blank --> |smo=m <!-- s=simple m=martial value if other (ex. exotic, dwarven only) --> |mr=m <!-- m=melee r=ranged --> |magicbonus=+1 <!-- +1, +2, +3 otherwise blank--> |damage=1d6 <!-- d6, d8, 2d6, etc.--> |dtype=p <!--(b=bludgeoning, p=piercing, s=slashing, value if other)--> |addldamage=and 2d8 {{SRD5|Force}} damage <!-- add'l damage and type --> |weight=4 <!-- in lbs. --> |ammo= <!-- y=uses Ammunition--> |fine=y <!-- y=is Finesse --> |heavy= <!-- y=is Heavy --> |light=y <!-- y=is Light --> |load= <!-- y=Loading --> |range= <!-- enter value, example: 20/60) --> |reach=10 ft. <!-- 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 --> |desc=The Foo's Sword is a +1 scimitar made of green jade. When it hits a creature with a {{SRD5|Wisdom}} of less than 10 takes an additional 2d8 {{srd5lc|Force}} damage (noted above). <!--Description of the magic weapon, rules, and abilities --> }}
produces...
Foo's Sword
Weapon (Scimitar), very rare
The Foo's Sword is a +1 scimitar made of green jade. When it hits a creature with a Wisdom of less than 10 takes an additional 2d8 force damage (noted above).
Name | Magic Bonus1 |
Damage | Weight | Properties |
---|---|---|---|---|
Foo's Sword | +1 | 1d6 Piercing (and 2d8 Force damage) | 44 lbs | Finesse Light Reach |
1Magic bonus is not included in listed damage. |
Visit Template:5e Magic Weapon/doc to edit this text! (How does this work?)