Template:5e24 Magic Item: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 73: Line 73:
   |#default = {{{type}}}
   |#default = {{{type}}}
   }}{{#if: {{{typenote|}}}|,&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr
   }}{{#if: {{{typenote|}}}|,&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr
-->{{#switch: {{{rarity}}}
-->{{{rarity|}}}{{#if: {{{attunement|}}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{5e24lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|)}}|&nbsp;(requires {{5e24lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|)}}| }}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''{{#if: {{{consumable|}}}|<br />
  |Common = common
  |Uncommon = uncommon
  |Rare = rare
  |Very Rare = very rare
  |Legendary = legendary
  |Artifact = artifact
  |#default = {{lc:{{{rarity}}}}}
  }}{{#if: {{{attunement|}}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{5e24lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|)}}|&nbsp;(requires {{5e24lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|)}}| }}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''{{#if: {{{consumable|}}}|<br />
Consumable: True{{#if: {{{charges|}}}|<br />
Consumable: True{{#if: {{{charges|}}}|<br />
Uses: {{{charges}}}|}}<!--endif charges-->|<!--not consumable-->{{#if: {{{charges|}}}|<br />
Uses: {{{charges}}}|}}<!--endif charges-->|<!--not consumable-->{{#if: {{{charges|}}}|<br />

Revision as of 07:59, 11 December 2025

This template defines the table "5e24_Magic_Items". View table.

 Template    

Use

Use in articles that describe a magic items in 5th (2024) edition.

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

Syntax

{{5e24 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 -->
|consumable= <!--blank or true-->
|charges= <!-- # of charges or uses, otherwise blank -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|desc= <!--Description of the magic item, rules, and abilities -->
}}

Optional Entries

|artificer=<!-- blank, true if Artificer Infused -->
|artificerrefs=<!-- blank or refs for artificer infusion -->
|prerequisites=<!-- blank or prerequisites -->
|artificerAttuned=<!-- blank, true if requires artificer attunement -->
|artificerCanon=<!-- blank, true if Artificer canon item -->
|artificerItem=<!-- blank, nonmagical item Artificer infuses -->
|artificerSelectItem=<!-- blank, if multiple magic items specify which -->
|hoarditem= <!--blank, true if hoard magic item-->
|nodb= <!--blank, true to skip db and categories-->

Example

{{5e24 Magic Item
|name= Foo<!-- name of magic item -->
|sorttext= <!--blank, or category sort-->
|refs=<ref>{{Cite Pub|Foo's Guide to Nothing|pages=3}} Licensed: [[Public Domain]].</ref>
|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 -->
|consumable= <!--blank or true-->
|charges= <!-- # of charges or uses, otherwise blank -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|desc= blah, blah, blah<!--Description of the magic item, rules, and abilities -->
}}

produces...


Foo [1] 
Magic Wondrous Item, (not so wondrous), Common (requires attunement)

blah, blah, blah