Template:5e Magic Weapon: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(wip)
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 5: Line 5:
}}<!--
}}<!--
|Sort_Text = String
|Sort_Text = String
|Page_Name = Page
|Item_Name = String
|Item_Name = String
|Item_Type = String
|Item_Type = String
Line 38: Line 37:
|Thrown = Boolean
|Thrown = Boolean
|Two_Handed = Boolean
|Two_Handed = Boolean
|Versatile = Boolean
|Versatile = String
|Other = String
|Other_Prop = String
|Author = String
|Properties = list (, ) of string
}}-->
}}-->
</noinclude><includeonly>
</noinclude><includeonly>
'''{{{name}}}'''{{#cargo_store: _table = 5e_Monsters|Item_Name = {{{name}}}}} 5e}}{{#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 />
<span style="font-size:1.3em;">'''{{{name}}}'''</span>&nbsp;<span style="font-size:0.7em;">{{{refs|}}}</span><br />{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}}}
{{#cargo_store: _table = 5e_Monsters|Item_Type = Weapon}} 5e}}<!--{{#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}}} 5e}}<!--{{#set: Canon=true}}-->|}}<!-- avoid cr
{{SRD5|Weapon}}&nbsp;<!-- avoid cr
-->''{{#switch: {{{smo}}}
-->''{{#switch: {{{smo}}}
   |s = {{#cargo_store: _table = 5e_Monsters|SimpleMartial = Simple}}<!--[[Proficiency::Simple]]-->[[Category:5e Simple Weapons]]
   |s = Simple
   |m = {{#cargo_store: _table = 5e_Monsters|SimpleMartial = Martial}}<!--[[Proficiency::Martial]]-->[[Category:5e Martial Weapons]]
   |m = Martial
   |#default = [[Proficiency::{{{smo}}}]]{{#cargo_store: _table = 5e_Monsters|SimpleMartial = {{{smo}}}}}
   |#default = {{{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 = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = Melee}}<!--[[Type::Melee]]--> [[Category:5e Melee Weapons]]
   |m = Melee
   |r = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = Ranged}}<!--[[Type::Ranged]]-->[[Category:5e Ranged Weapons]]
   |r = Ranged
   |none = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = &mdash;}}<!--{{#set:Type=—}}-->
   |none = &mdash;
   |#default = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = {{{mr}}}}}<!--[[Type::{{{mr}}}]]-->
   |#default = {{{mr|}}}
   |<span style="color: red;">Enter 'm'=melee, 'r'=ranged, or 'none', for parameter 'mr'</span>
   |<span style="color: red;">Enter 'm'=melee, 'r'=ranged, or 'none', for parameter 'mr'</span>
}}&nbsp;{{#cargo_store: _table = 5e_Monsters|Item_Type = Weapon}}<!--[[Item Type::Weapon]]-->{{#if: {{{typenote|}}}|&nbsp;({{{typenote}}}){{#cargo_store: _table = 5e_Monsters|Type_Note = {{{typenote}}}}}<!--{{#set: Type Note={{{typenote}}}}}-->| }},&nbsp;<!-- avoid cr
}}&nbsp;{{#if: {{{typenote|}}}|&nbsp;({{{typenote}}})}},&nbsp;<!-- avoid cr
-->{{#switch: {{{rarity}}}
-->{{#switch: {{{rarity}}}
   |Common = common{{#cargo_store: _table = 5e_Monsters|Rarity = Common}}<!--{{#set: Rarity=Common}}-->[[Category:5e Common Magic Items]]
   |Common = common  
   |Uncommon = uncommon{{#cargo_store: _table = 5e_Monsters|Rarity = Uncommon}}<!--{{#set: Rarity=Uncommon}}-->[[Category:5e Uncommon Magic Items]]
   |Uncommon = uncommon  
   |Rare = rare{{#cargo_store: _table = 5e_Monsters|Rarity = Rare}}<!--{{#set: Rarity=Rare}}-->[[Category:5e Rare Magic Items]]
   |Rare = rare  
   |Very Rare = very rare{{#cargo_store: _table = 5e_Monsters|Rarity = Very Rare}}<!--{{#set: Rarity=Very Rare}}-->[[Category:5e Very Rare Magic Items]]
   |Very Rare = very rare  
   |Legendary = legendary{{#cargo_store: _table = 5e_Monsters|Rarity = Legendary}}<!--{{#set:Rarity=Legendary}}-->[[Category:5e Legendary Magic Items]]
   |Legendary = legendary  
   |Artifact = artifact{{#cargo_store: _table = 5e_Monsters|Rarity = Artifact}}<!--{{#set: Rarity=Artifact}}-->[[Category:5e Artifacts]]
   |Artifact = artifact  
   |#default = {{lc:{{{rarity}}}}}{{#cargo_store: _table = 5e_Monsters|Rarity = {{{rarity}}}}}<!--[[Rarity::{{{rarity}}}]]-->
   |#default = {{lc:{{{rarity}}}}}
   }}{{#if: {{{attunement|}}}|{{#cargo_store: _table = 5e_Monsters|Attunement = 1}}{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}}|}})|&nbsp;(requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}}|}})| }}<!--{{#set: attunement=yes}}-->|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''<br />{{#if: {{{raritynote|}}}|{{#cargo_store: _table = 5e_Monsters|Rarity_Note = {{{raritynote}}}}}|}}
   }}{{#if: {{{attunement|}}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}}|}})|&nbsp;(requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}}|}})| }}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''<br />
{{#if: {{{desc|}}}|{{{desc}}}| }}
{{#if: {{{desc|}}}|{{#if: {{{pointer|}}}|'''Unofficial Description:'''&ensp;|}}{{{desc}}}| }}
{| class="zebra" style="border-style:solid; border-width:1px; border-radius:0.5em;"
{| class="zebra small" style="border:solid 1px gainsboro; border-radius:0.5em;"
!style="background:#e8d693;"|Name
!Name
!style="background:#e8d693;"|Magic<br />Bonus<sup>1</sup>
!Magic<br />Bonus<sup>1</sup>
!style="background:#e8d693;"|Damage
!Damage
!style="background:#e8d693;"|Weight
!Weight
!style="background:#e8d693;"|Properties
!Properties
|-
|-
|{{{name}}}
|{{{name}}}
|align="center"|{{#if: {{{magicbonus|}}}| [[Magic Bonus::&nbsp;{{{magicbonus|}}}&nbsp;]]| }}
|align="center"|{{#if: {{{magicbonus|}}}|&nbsp;{{{magicbonus}}}&nbsp;| }}
|{{{damage}}}{{#set:Damage={{{damage}}}}} {{#switch: {{{dtype}}}
|{{{damage}}} {{#switch: {{{dtype}}}
   |b = [[SRD5:Bludgeoning{{!}}Bludgeoning]]{{#set:DamageType=Bludgeoning}}
   |b = {{SRD5|Bludgeoning}}
   |p = [[SRD5:Piercing{{!}}Piercing]]{{#set:DamageType=Piercing}}
   |p = {{SRD5|Piercing}}
   |s = [[SRD5:Slashing{{!}}Slashing]]{{#set:DamageType=Slashing}}
   |s = {{SRD5|Slashing}}
   |none = {{#set:DamageType=—}}
   |none = &mdash;
   |#default = [[DamageType::{{{dtype}}}]]
   |#default = {{{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|}}}|&nbsp;({{{addldamage}}})| }}
}}{{#if: {{{addldamage|}}}|&nbsp;({{{addldamage}}})| }}
|align="center"|{{#if: {{{weight|}}} | [[Weight::{{{weight}}}]]&nbsp;lbs | [[Weight::—]]}}
|align="center"|{{#if: {{{weight|}}} | {{{weight}}}&nbsp;lbs | &mdash;}}
| {{#if: {{{ammo|}}} | [[SRD5:Ammunition{{!}}Ammunition]] [[Category:5e Ammunition Weapons]] {{#set:Ammunition=true}} &nbsp;}} {{#if: {{{fine|}}} | [[SRD5:Finesse{{!}}Finesse]] [[Category:5e Finesse Weapons]]{{#set:Finesse=true}} &nbsp;}} {{#if: {{{heavy|}}} | [[SRD5:Heavy Weapon{{!}}Heavy]] [[Category:5e Heavy Weapons]]{{#set:Heavy=true}} &nbsp;}} {{#if: {{{light|}}} | [[SRD5:Light Weapon{{!}}Light]] [[Category:5e Light Weapons]]{{#set:Light=true}} &nbsp;}} {{#if: {{{load|}}}  | [[SRD5:Loading{{!}}Loading]] [[Category:5e Loading Weapons]]{{#set:Loading=true}} &nbsp;}} {{#if: {{{range|}}} | [[SRD5:Range{{!}}Range]] ({{{range}}}) {{#set:Range={{{range}}}}}&nbsp;}} {{#if: {{{reach|}}} | [[SRD5:Reach{{!}}Reach]] [[Category:5e Reach Weapons]] &nbsp;{{#set: Reach=true}}|}} {{#if: {{{special|}}} | [[SRD5:Special{{!}}Special]] [[Category:5e Special Weapons]] &nbsp;{{#set: Special=true}}|}} {{#if: {{{thrown|}}} | [[SRD5:Thrown{{!}}Thrown]] [[Category:5e Thrown Weapons]]{{#set:Thrown=true}} &nbsp;}} {{#if: {{{twohand|}}}  | [[SRD5:Two-Handed{{!}}Two-Handed]] [[Category:5e Two-Handed Weapons]]{{#set:Two-Handed=true}} &nbsp;}} {{#if: {{{vers|}}} | [[SRD5:Versatile{{!}}Versatile]] ({{{vers}}})[[Category:5e Versatile Weapons]]{{#set:Versatile=true}} &nbsp;}} {{#if: {{{otherp|}}} | {{{otherp}}} {{#set:OtherP={{{otherp}}} }} }}
| {{#if: {{{ammo|}}} | {{SRD5|Ammunition}} &nbsp;|}} {{#if: {{{fine|}}} | {{SRD5|Finesse}} &nbsp;|}} {{#if: {{{heavy|}}} | {{SRD5|Heavy Weapon}} &nbsp;|}} {{#if: {{{light|}}} | {{SRD5|Light Weapon|Light}} &nbsp;|}} {{#if: {{{load|}}}  | {{SRD5|Loading}} &nbsp;}} {{#if: {{{range|}}} | {{SRD5|Range}} ({{{range}}}) &nbsp;}} {{#if: {{{reach|}}} | {{SRD5|Reach}} &nbsp;|}} {{#if: {{{special|}}} | {{SRD5|Special}} &nbsp;|}} {{#if: {{{thrown|}}} | {{SRD5|Thrown}} &nbsp;}} {{#if: {{{twohand|}}}  | {{SRD5|Two-Handed}} &nbsp;}} {{#if: {{{vers|}}} | {{SRD5|Versatile}} ({{{vers}}})&nbsp;}} {{#if: {{{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; background:gainsboro; border:solid 1px gainsboro; border-bottom-left-radius:0.5em; border-bottom-right-radius:0.5em;"|<sup>1</sup>Magic bonus is '''not''' included in listed damage.
|}
|}
&nbsp;
&nbsp;
{{#set:Properties={{#if: {{{ammo|}}}|Ammunition|}}{{#if: {{{fine|}}}|&nbsp;Finesse|}} {{#if: {{{heavy|}}}|&nbsp;Heavy|}}{{#if: {{{light|}}}|&nbsp;Light|}}{{#if: {{{load|}}}|&nbsp;Loading|}}{{#if: {{{range|}}}|&nbsp;Range {{{range}}} ft.|}}{{#if:{{{reach|}}}|&nbsp;Reach|}}{{#if: {{{special|}}}|&nbsp;Special|}}{{#if: {{{thrown|}}}|&nbsp;Thrown|}}{{#if: {{{twohand|}}}|&nbsp;Two-handed|}}{{#if: {{{vers|}}}|&nbsp;Versatle {{{vers}}}|}}{{#if: {{{otherp|}}}|&nbsp;{{{otherp}}}|}} }}
{{#if: {{{nodb|}}}|<!--skip db & cat-->|{{#cargo_store:
 
_table = 5e_Magic_Items
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}} 5e|{{PAGENAME}} 5e}}
|Item_Name = {{{name|}}}
|Item_Type = Weapon
|Type_Note = {{{typenote|}}}
|Rarity = {{{rarity|}}}
|Rarity_Note = {{{raritynote|}}}
|Attunement = {{{attunement|}}}
|Attunement_Note = {{{attunementnote|}}}
|Description = {{{desc|}}}
|Charges = {{{charges|}}}
|Magic_Bonus = {{{magicbonus|}}}
|Summary = {{{summary|}}}
|Weight = {{{weight|}}}
|SimpleMartial = {{#switch: {{{smo|}}}
  |s = Simple
  |m = Martial
  |#default = {{{smo|}}}
}}<!--switch-->
|MeleeRanged = {{#switch: {{{mr|}}}
  |m = Melee
  |r = Ranged
  |#default = {{{mr|}}} 
}}<!--switch-->
|Damage = {{{damage|}}}
|Damage_Type = {{#switch: {{{dtype|}}}
  |b = Bludgeoning
  |p = Piercing
  |s = Slashing
  |#default = {{{dtype|}}}
}}<!--switch-->
|Addl_Damge = {{{addldamage|}}}
|Ammo = {{#if: {{{ammo|}}}|1}}
|Finesse = {{#if: {{{finesse|}}}|1}}
|Heavy = {{#if: {{{heavy|}}}|1}}
|Light = {{#if: {{{light|}}}|1}}
|Loading = {{#if: {{{loading|}}}|1}}
|Weapon_Range = {{{range|}}}
|Reach = {{#if: {{{reach|}}}|1}}
|Special = {{#if: {{{special|}}}|1}}
|Thrown = {{#if: {{{thrown|}}}|1}}
|Two_Handed = {{#if: {{{twohanded|}}}|1}}
|Versatile = {{#if: {{{vers|}}}|1}}
|Other_Prop = {{#if: {{{otherp|}}}|1}}
|Properties = {{5e Weapon Properties|ammo={{{ammo|}}}|finesse={{{finesse|}}}|heavy={{{heavy|}}}|light={{{light|}}}|loading={{{loading|}}}|range={{{range|}}}|reach={{{reach|}}}|special={{{special|}}}|thrown={{{thrown|}}}|twohanded={{{twohanded|}}}|vers={{{vers|}}}|otherp={{{otherp|}}} }} }}
<!--categories-->
[[Category:5e Magic Items]][[Category:5e Magic Weapons]][[Category:5e Weapons]]{{#if: {{{canon|}}}|[[Category:5e Canon Magic Items]]|}}
{{#switch: {{{rarity}}}
  |Common = [[Category:5e Common Magic Items]]
  |Uncommon = [[Category:5e Uncommon Magic Items]]
  |Rare = [[Category:5e Rare Magic Items]]
  |Very Rare = [[Category:5e Very Rare Magic Items]]
  |Legendary = [[Category:5e Legendary Magic Items]]
  |Artifact = [[Category:5e Artifacts]]
  |#default = [[Category:5e {{{rarity}}} Magic Items]]
  }}
{{#if: {{{attunement|}}}|[[Category:5e Attuned Magic Items]]|}}
{{#if: {{{charges|}}}|[[Category:5e Magic Items with Charges]]|}}
{{#switch: {{{smo|}}}
  |s = [[Category: 5e Simple Weapons]]
  |m = [[Category: 5e Martial Weapons]]
  |#default = [[Category:5e {{{smo|}}} Weapons]]
}}
{{#switch: {{{mr|}}}
  |m = [[Category:5e Melee Weapons]]
  |r = [[Category:5e Ranged Weapons]]
  |#default = [[Category:5e {{{mr|}}} Weapons]]
}}
{{#switch: {{{dtype|}}}
  |b = [[Category:5e Bludgeoning Weapons]]
  |p = [[Category:5e Piercing Weapons]]
  |s = [[Category:5e Slashing Weapons]]
  |#default = [[Category:5e {{{dtype|}}} Weapons]]
}}
{{#if: {{{ammo|}}}|[[Category:5e Ammunition Weapons]]}}
{{#if: {{{finesse|}}}|[[Category:5e Finesse Weapons]]}}
{{#if: {{{heavy|}}}|[[Category:5e Heavy Weapons]]}}
{{#if: {{{light|}}}|[[Category:5e Light Weapons]]}}
{{#if: {{{loading|}}}|[[Category:5e Loading Weapons]]}}
{{#if: {{{reach|}}}|[[Category:5e Reach Weapons]]}}
{{#if: {{{special|}}}|[[Category:5e Special Weapons]]}}
{{#if: {{{thrown|}}}|[[Category:5e Thrown Weapons]]}}
{{#if: {{{twohanded|}}}|[[Category:5e Two-Handed Weapons]]}}
{{#if: {{{vers|}}}|[[Category:5e Versatile Weapons]]}}
{{#if: {{{otherp|}}}|[[Category:5e {{{otherp}}} Weapons]]}}
|}}<!--end if nodb-->
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Tech note:
<!-- Tech note:

Latest revision as of 08:58, 26 December 2021

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[edit]

Use in articles that describe a magic weapon in 5th edition.

Syntax[edit]

{{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[edit]

{{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 Martial Melee  (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) 4 lbs Finesse   Light   Reach  
1Magic bonus is not included in listed damage.