Difference between revisions of "Template:5e Magic Weapon"

From Dungeons and Dragons Wiki
Jump to: navigation, search
(sort text)
m
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{|
+
{{{name}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e Magic Items]][[Category:5e Magic Weapon]]<br />
!align="left" style="font-size: larger; white-space:nowrap;" |{{{name}}}{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e Magic Items]]
+
{{#set:weap={{{name|}}}|}}[[Category:5e Weapons]][[Category:5e Magic Weapons]]<!-- avoid cr
|-
 
|{{#set:weap={{{name|}}}|}}[[Category:5e Weapons]][[Category:5e Homebrew Weapons]][[Category:5e Magic Weapons]]<!-- avoid cr
 
 
-->'''{{#switch: {{{smo}}}
 
-->'''{{#switch: {{{smo}}}
 
   |s = [[Proficiency::Simple]] [[Category:5e Simple Weapons]]  
 
   |s = [[Proficiency::Simple]] [[Category:5e Simple Weapons]]  
Line 17: Line 15:
 
}}&nbsp;[[Item Type::Weapon]]''{{#if: {{{typenote|}}}|&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr
 
}}&nbsp;[[Item Type::Weapon]]''{{#if: {{{typenote|}}}|&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr
 
-->{{#switch: {{{rarity}}}
 
-->{{#switch: {{{rarity}}}
   |Common = {{lc:[[Rarity::Common]]}}
+
   |Common = {{lc:[[Rarity::Common]]}}[[Category:5e Common Magic Items]]
   |Uncommon = [[Rarity::Uncommon]]
+
   |Uncommon = {{lc:[[Rarity::Uncommon]]}}[[Category:5e Uncommon Magic Items]]
   |Rare = [[Rarity::Rare]]
+
   |Rare = {{lc:[[Rarity::Rare]]}}[[Category:5e Rare Magic Items]]
   |Very Rare = [[Rarity::Very Rare]]
+
   |Very Rare = {{lc:[[Rarity::Very Rare]]}}[[Category:5e Very Rare Magic Items]]
   |Legendary = [[Rarity::Legendary]]
+
   |Legendary = {{lc:[[Rarity::Legendary]]}}[[Category:5e Legendary Magic Items]]
   |Artifact = [[Rarity::Artifact]]
+
   |Artifact = {{lc:[[Rarity::Artifact]]}}[[Category:5e Artifacts]]
   |#default = [[Rarity::{{{rarity}}}]]
+
   |#default = {{lc:[[Rarity::{{{rarity}}}]]}}
 
   }}{{#if: {{{attunement|}}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}})|&nbsp;(requires {{srd5lc|Attunement}})| }}{{#set: attunement=yes}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''<br />
 
   }}{{#if: {{{attunement|}}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}})|&nbsp;(requires {{srd5lc|Attunement}})| }}{{#set: attunement=yes}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''<br />
 
{{#if: {{{desc|}}}|{{{desc}}}| }}
 
{{#if: {{{desc|}}}|{{{desc}}}| }}
{| class="zebra d20"
+
{| class="d20 zebra"
 
!Name
 
!Name
 
!Magic<br />Bonus<sup>1</sup>
 
!Magic<br />Bonus<sup>1</sup>
Line 34: Line 32:
 
|-
 
|-
 
|{{{name}}}
 
|{{{name}}}
|{{#if: {{{magicbonus|}}}| [[Magic Bonus::&nbsp;+{{{magicbonus|}}}&nbsp;]]| }}
+
|align="center"|{{#if: {{{magicbonus|}}}| [[Magic Bonus::&nbsp;{{{magicbonus|}}}&nbsp;]]| }}
|{{{damage}}}{{#set:Damage={{{damage}}}}}{{#if: {{{magicbonus|}}}|&nbsp;+{{{magicbonus}}}&nbsp;|&nbsp;}}{{#switch: {{{dtype}}}
+
|{{{damage}}}{{#set:Damage={{{damage}}}}}{{#if: {{{magicbonus|}}}|&nbsp;{{{magicbonus}}}&nbsp;|&nbsp;}}{{#switch: {{{dtype}}}
 
   |b = [[SRD5:Bludgeoning{{!}}Bludgeoning]]{{#set:DamageType=Bludgeoning}}-->
 
   |b = [[SRD5:Bludgeoning{{!}}Bludgeoning]]{{#set:DamageType=Bludgeoning}}-->
 
   |p = [[SRD5:Piercing{{!}}Piercing]]{{#set:DamageType=Piercing}}
 
   |p = [[SRD5:Piercing{{!}}Piercing]]{{#set:DamageType=Piercing}}
Line 44: Line 42:
 
}}{{#if: {{{addldamage|}}}|&nbsp;({{{addldamage}}})| }}
 
}}{{#if: {{{addldamage|}}}|&nbsp;({{{addldamage}}})| }}
 
|align="center"|{{#if: {{{weight|}}} | [[Weight::{{{weight}}}]]&nbsp;lbs | [[Weight::—]]}}
 
|align="center"|{{#if: {{{weight|}}} | [[Weight::{{{weight}}}]]&nbsp;lbs | [[Weight::—]]}}
| {{#if: {{{ammo|}}} | [[SRD5:Ammunition{{!}}Ammunition]] [[Category:5e Ammunition Weapons]] {{#set:Ammo=Ammunition}} &nbsp;}} {{#if: {{{fine|}}} | [[SRD5:Finesse{{!}}Finesse]] [[Category:5e Finesse Weapons]]{{#set:Fine=Finesse}} &nbsp;}} {{#if: {{{heavy|}}} | [[SRD5:Heavy{{!}}Heavy]] [[Category:5e Heavy Weapons]]{{#set:Heavy=Heavy}} &nbsp;}} {{#if: {{{light|}}} | [[SRD5:Light Weapon{{!}}Light]] [[Category:5e Light Weapons]]{{#set:Light=Light}} &nbsp;}} {{#if: {{{load|}}}  | [[SRD5:Loading{{!}}Loading]] [[Category:5e Loading Weapons]]{{#set:Load=Loading}} &nbsp;}} {{#if: {{{range|}}} | [[SRD5:Range{{!}}Range]] ({{{range}}}) {{#set:Range=Range ({{{range}}})}}&nbsp;}} {{#if: {{{reach|}}} | [[SRD5:Reach{{!}}Reach]] [[Category:5e Reach Weapons]] &nbsp;}} {{#if: {{{special|}}} | [[SRD5:Special{{!}}Special]] [[Category:5e Special Weapons]] &nbsp;}} {{#if: {{{thrown|}}} | [[SRD5:Thrown{{!}}Thrown]] [[Category:5e Thrown Weapons]]{{#set:Thrown=Thrown}} &nbsp;}} {{#if: {{{twohand|}}}  | [[SRD5:Two-Handed{{!}}Two-Handed]] [[Category:5e Two-Handed Weapons]]{{#set:Twohand=Two-Handed}} &nbsp;}} {{#if: {{{vers|}}} | [[SRD5:Versatile{{!}}Versatile]] ({{{vers}}})[[Category:5e Versatile Weapons]]{{#set:Vers=Versatile}} &nbsp;}} {{#if: {{{otherp|}}} | {{{otherp}}} {{#set:OtherP={{{otherp}}} }} {}}
+
| {{#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}}} }} {}}
 
|-
 
|-
 
|colspan=5 style="font-size:8pt;"|<sup>1</sup>Magic bonus '''is''' included in listed damage.
 
|colspan=5 style="font-size:8pt;"|<sup>1</sup>Magic bonus '''is''' included in listed damage.
 
|}
 
|}
 
&nbsp;
 
&nbsp;
{{#set:Properties={{{Ammo}}} {{{Fine}}} {{{heavy}}} {{{Light}}} {{{load}}} {{{range}}} {{{reach}}} {{{special}}} {{{thrown}}} {{{twohand}}} {{{vers}}} {{{otherp}}} }}
+
{{#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|}}}|Special|}}{{#if: {{{thrown|}}}|&nbsp;Thrown|}}{{#if: {{{twohand|}}}|&nbs;Two-handed|}}{{#if: {{{vers|}}}|Versatle {{{vers}}}|}}{{#if: {{{otherp|}}}|&nbsp;{{{otherp}}}|}} }}
|}
+
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
<!-- Tech note:
 
<!-- Tech note:

Revision as of 17:18, 7 May 2018

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-->
|refs= <!--references-->
|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-->
|refs=<ref name="fgtn.33">{{Cite Pub|Foo's Guide to Nothing|pages=33}} Licensed: [[Public Domain]].</ref>
|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 [1]
Martial Melee 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) 4 lbs Finesse   Light   Reach  
1Magic bonus is not included in listed damage.