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

From Dungeons and Dragons Wiki
Jump to: navigation, search
m (Template: 5e Magic Weapon)
m
Line 24: Line 24:
 
   |ring = [[Item Type::Ring]]
 
   |ring = [[Item Type::Ring]]
 
   |#default = [[Item Type::{{ucfirst:{{{type}}}}}]]
 
   |#default = [[Item Type::{{ucfirst:{{{type}}}}}]]
   }}''{{#if: {{{typenote|}}}|({{{typenote}}}| }},&nbsp;<!-- avoid cr
+
   }}''{{#if: {{{typenote|}}}|,&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr
 
-->{{#switch: {{{rarity}}}
 
-->{{#switch: {{{rarity}}}
 
   |Common = {{lc:[[Rarity::Common]]}}
 
   |Common = {{lc:[[Rarity::Common]]}}
   |Uncommon = [[Rarity::Uncommon]]
+
   |Uncommon = {{lc:[[Rarity::Uncommon]]}}
   |Rare = [[Rarity::Rare]]
+
   |Rare = {{lc:[[Rarity::Rare]]}}
   |Very Rare = [[Rarity::Very Rare]]
+
   |Very Rare = {{lc:[[Rarity::Very Rare]]}}
   |Legendary = [[Rarity::Legendary]]
+
   |Legendary = {{lc:[[Rarity::Legendary]]}}
   |#default = [[Rarity::{{{rarity}}}]]
+
   |#default = {{lc:[[Rarity::{{{rarity}}}]]}}
   }}{{#if: {{{raritynote|}}}|, ({{{raritynote}}})| }}
+
   }}{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}{{#ifeq: {{{attunement|}}}|requires attunement|[[Attunement::True|:True]]| }}  
 
|-
 
|-
|{{#if: {{{desc|}}}|{{{desc}}}| }}
+
|} [[Category:5e Magic Weapon|{{Title Only|{{BASEPAGENAME}}}}]]
|} [[Category:5e Magic Weapon|{{Title Only|{{BASEPAGENAME}}}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
<!-- Tech note:
 
<!-- Tech note:

Revision as of 04:03, 11 November 2016

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