Template:5e Magic Weapon: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(wip)
 
(wip)
Line 43: Line 43:
}}-->
}}-->
</noinclude><includeonly>
</noinclude><includeonly>
'''{{{name}}}'''{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e Magic Items]][[Category:5e Magic Weapons]]<br />
'''{{{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 />
{{#set:weap={{{name|}}}|}}[[Category:5e Weapons]][[Category:Weapon]][[Category:5e]][[Category:Magic Item]]{{#if: {{{canon|}}}|[[Category:5e Canon Magic Items]]{{#set: Canon=true}}|}}<!-- avoid cr
{{#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
-->''{{#switch: {{{smo}}}
-->''{{#switch: {{{smo}}}
   |s = [[Proficiency::Simple]] [[Category:5e Simple Weapons]]  
   |s = {{#cargo_store: _table = 5e_Monsters|SimpleMartial = Simple}}<!--[[Proficiency::Simple]]-->[[Category:5e Simple Weapons]]  
   |m = [[Proficiency::Martial]] [[Category:5e Martial Weapons]]
   |m = {{#cargo_store: _table = 5e_Monsters|SimpleMartial = Martial}}<!--[[Proficiency::Martial]]-->[[Category:5e Martial Weapons]]
   |#default = [[Proficiency::{{{smo}}}]]
   |#default = [[Proficiency::{{{smo}}}]]{{#cargo_store: _table = 5e_Monsters|SimpleMartial = {{{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 = [[Type::Melee]] [[Category:5e Melee Weapons]]
   |m = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = Melee}}<!--[[Type::Melee]]--> [[Category:5e Melee Weapons]]
   |r = [[Type::Ranged]][[Category:5e Ranged Weapons]]
   |r = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = Ranged}}<!--[[Type::Ranged]]-->[[Category:5e Ranged Weapons]]
   |none = {{#set:Type=—}}
   |none = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = &mdash;}}<!--{{#set:Type=—}}-->
   |#default = [[Type::{{{mr}}}]]
   |#default = {{#cargo_store: _table = 5e_Monsters|MeleeRanged = {{{mr}}}}}<!--[[Type::{{{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;[[Item Type::Weapon]]{{#if: {{{typenote|}}}|&nbsp;({{{typenote}}}){{#set: Type Note={{{typenote}}}}}| }},&nbsp;<!-- avoid cr
}}&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
-->{{#switch: {{{rarity}}}
-->{{#switch: {{{rarity}}}
   |Common = common {{#set: Rarity=Common}}[[Category:5e Common Magic Items]]
   |Common = common{{#cargo_store: _table = 5e_Monsters|Rarity = Common}}<!--{{#set: Rarity=Common}}-->[[Category:5e Common Magic Items]]
   |Uncommon = uncommon{{#set: Rarity=Uncommon}}[[Category:5e Uncommon Magic Items]]
   |Uncommon = uncommon{{#cargo_store: _table = 5e_Monsters|Rarity = Uncommon}}<!--{{#set: Rarity=Uncommon}}-->[[Category:5e Uncommon Magic Items]]
   |Rare = rare{{#set: Rarity=Rare}}[[Category:5e Rare Magic Items]]
   |Rare = rare{{#cargo_store: _table = 5e_Monsters|Rarity = Rare}}<!--{{#set: Rarity=Rare}}-->[[Category:5e Rare Magic Items]]
   |Very Rare = very rare{{#set: Rarity=Very Rare}}[[Category:5e Very Rare Magic Items]]
   |Very Rare = very rare{{#cargo_store: _table = 5e_Monsters|Rarity = Very Rare}}<!--{{#set: Rarity=Very Rare}}-->[[Category:5e Very Rare Magic Items]]
   |Legendary = legendary{{#set:Rarity=Legendary}}[[Category:5e Legendary Magic Items]]
   |Legendary = legendary{{#cargo_store: _table = 5e_Monsters|Rarity = Legendary}}<!--{{#set:Rarity=Legendary}}-->[[Category:5e Legendary Magic Items]]
   |Artifact = artifact{{#set: Rarity=Artifact}}[[Category:5e Artifacts]]
   |Artifact = artifact{{#cargo_store: _table = 5e_Monsters|Rarity = Artifact}}<!--{{#set: Rarity=Artifact}}-->[[Category:5e Artifacts]]
   |#default = {{lc:[[Rarity::{{{rarity}}}]]}}
   |#default = {{lc:{{{rarity}}}}}{{#cargo_store: _table = 5e_Monsters|Rarity = {{{rarity}}}}}<!--[[Rarity::{{{rarity}}}]]-->
   }}{{#if: {{{attunement|}}}|{{#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: {{{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: {{{desc|}}}|{{{desc}}}| }}
{{#if: {{{desc|}}}|{{{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;"

Revision as of 05:18, 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 5e}}|}}

5e}}|}}  (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 Magic Bonus:: +1  1d6{{#set:Damage=1d6}} Piercing{{#set:DamageType=Piercing}} (and 2d8 Force damage) Weight::4 lbs Finesse{{#set:Finesse=true}}   Light{{#set:Light=true}}   Reach  {{#set: Reach=true}}
1Magic bonus is not included in listed damage.

  {{#set:Properties= Finesse  Light Reach }}