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

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (categories)
m (categories)
Line 4: Line 4:
 
|-
 
|-
 
| colspan="2" | ''Magic {{#switch: {{{type}}}
 
| colspan="2" | ''Magic {{#switch: {{{type}}}
   |Armor = [[Item Type::Armor]]
+
   |Armor =
  |armor = [[Item Type::Armor]]
+
  |armor = [[Item Type::Armor]][[Category:5e Magic Armor]]
   |Weapon = [[Item Type::Weapon]]
+
   |Weapon =
  |weapon = [[Item Type::Weapon]]
+
  |weapon = [[Item Type::Weapon]][[Category:5e Magic Weapons]]
 
   |Wondrous Item = [[Item Type::Wondrous Item]]
 
   |Wondrous Item = [[Item Type::Wondrous Item]]
 
   |wondrous item = [[Item Type::Wondrous Item]]
 
   |wondrous item = [[Item Type::Wondrous Item]]
 
   |Wondrous item = [[Item Type::Wondrous Item]]
 
   |Wondrous item = [[Item Type::Wondrous Item]]
   |Potion = [[Item Type::Potion]]
+
   |Potion = [[Item Type::Potion]][[Category:5e Magic Potions]]  
   |potion = [[Item Type::Potion]]
+
   |potion = [[Item Type::Potion]][[Category:5e Magic Potions]]
   |Scroll = [[Item Type::Scroll]]
+
   |Scroll = [[Item Type::Scroll]][[Category:5e Magic Scrolls]]  
   |scroll = [[Item Type::Scroll]]
+
   |scroll = [[Item Type::Scroll]][[Category:5e Magic Scrolls]]
   |Staff = [[Item Type::Staff]]
+
   |Staff = [[Item Type::Staff]][[Category:5e Magic Staves]]  
   |staff = [[Item Type::Staff]]
+
   |staff = [[Item Type::Staff]][[Category:5e Magic Staves]]
   |Rod = [[Item Type::Rod]]
+
   |Rod = [[Item Type::Rod]][[Category:5e Magic Rods]]  
   |rod = [[Item Type::Rod]]
+
   |rod = [[Item Type::Rod]][[Category:5e Magic Rods]]
   |Wand = [[Item Type::Wand]]
+
   |Wand = [[Item Type::Wand]][[Category:5e Magic Wands]]  
   |wand = [[Item Type::Wand]]
+
   |wand = [[Item Type::Wand]][[Category:5e Magic Wands]]
   |Ring = [[Item Type::Ring]]
+
   |Ring = [[Item Type::Ring]][[Category:5e Magic Rings]]  
   |ring = [[Item Type::Ring]]
+
   |ring = [[Item Type::Ring]][[Category:5e Magic Rings]]
 
   |#default = [[Item Type::{{ucfirst:{{{type}}}}}]]
 
   |#default = [[Item Type::{{ucfirst:{{{type}}}}}]]
 
   }}{{#if: {{{typenote|}}}|,&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr
 
   }}{{#if: {{{typenote|}}}|,&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr

Revision as of 16:07, 7 June 2018

Template documentation (for the above template, sometimes hidden or invisible)

Use

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

Note!!! If you want to make a magic armor or weapon, you should use a different template:

Syntax

{{5e Magic Item
|name= <!-- name of magic item -->
|sorttext= <!--blank, or category sort-->
|refs= <!--references-->
|type= <!-- Weapon, Armor, Wondrous Item, Staff, Wand -->
|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 -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|hoarditem= <!-- blank, Yes if hoard item -->
|desc= <!--Description of the magic item, rules, and abilities -->
}}

<--Description and rules for the magic item-->

Example

{{5e Magic Item
|name= Foo<!-- name of magic item -->
|sorttext= <!--blank, or category sort-->
|type= Wondrous Item<!-- Weapon, Armor, Wondrous Item, Staff, Wand -->
|typenote= not so wondrous<!-- Note following type. ex. ammunition -->
|rarity= Common<!-- Common, Uncommon, Rare, Very Rare, Legendary -->
|raritynote= <!-- Note following rarity, other than requires attunement. -->
|attunement=Yes <!-- Yes if requires attunement, otherwise blank -->
|attunementnote= <!-- blank unless attunement note -->
|charges= <!-- # of charges or uses, otherwise blank -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|hoarditem=
|desc= blah, blah, blah<!--Description of the magic item, rules, and abilities -->
}}

produces...


Foo 
Magic Wondrous Item, (not so wondrous), common (requires attunement)

blah, blah, blah