Template:5e24 Magic Item: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<noinclude> <!-- Cargo Table --> {{#cargo_declare: _table = 5e24_Magic_Items |Sort_Text = String |Item_Name = String |Item_Type = String |Type_Note = String |Rarity = String |Rarity_Note = String |Attunement = Boolean |Attunement_Note = Wikitext String |Description = wikitext |Charges = String |Magic_Bonus = String |Canon = Boolean |Summary = Wikitext |Armor_Type = String |LightMedHeavy = String |AC = String |Strength = String |Stealth = String |Weight = String |SimpleMa...")
 
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 12: Line 12:
|Attunement_Note = Wikitext String
|Attunement_Note = Wikitext String
|Description = wikitext
|Description = wikitext
|Consumable = Boolean
|Charges = String
|Charges = String
|Magic_Bonus = String
|Magic_Bonus = String
Line 41: Line 42:
|Other_Prop = String
|Other_Prop = String
|Properties = list (, ) of String
|Properties = list (, ) of String
|Artificer = Boolean
|Magic_Item_Plan = String
|Prerequisites = Wikitext String
|Prerequisites = Wikitext String
|Artificer_Attuned = Boolean
|Artificer_Canon = Boolean
|Artificer_Item = String
|Hoard_Item = Boolean
|Hoard_Item = Boolean
}}
}}
Line 72: Line 70:
   |#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
Consumable: True{{#if: {{{charges|}}}|<br />
  |Uncommon = uncommon
Uses: {{{charges}}}|}}<!--endif charges-->|<!--not consumable-->{{#if: {{{charges|}}}|<br />
  |Rare = rare
Charges: {{{charges}}}|}}<!--endif charges-->|}}<!--end if consumable-->{{#if: {{{magicbonus|}}}|<br />
  |Very Rare = very rare
Magic Bonus: {{{magicbonus}}}|}}<!--endif magicbonus-->{{#if: {{{artificerplan|}}}|<br />
  |Legendary = legendary
Magic Item Plan (Artificer Level): {{{artificerplan}}}+|}}<!--endif artificerplan-->
  |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: {{{hoarditem|}}}|''Hoard Magic Item''<br /> <br />|}}{{#if: {{{pointer|}}}|'''Unofficial Description:''' |}}{{{desc}}}{{#if: {{{artificer|}}}|<br />{{5e24 Artificer Magic Item
{{#if: {{{hoarditem|}}}|''Hoard Magic Item''<br /> <br />|}}{{#if: {{{pointer|}}}|'''Unofficial Description:''' |}}{{{desc}}}
|refs={{{artificerrefs|}}}
|prerequisite={{{prerequisite|}}}
|item={{{artificerItem|}}}
|select item={{{artificerSelectItem|}}}
|attunement={{{artificerAttuned|}}}
|artificer canon={{{artificerCanon|}}}}}|}}
{{#if: {{{nodb|}}}|<!--skip-->|<!--
{{#if: {{{nodb|}}}|<!--skip-->|<!--
  --categories--
  --categories--
Line 125: Line 114:
   |#default = [[Category:5e24 {{lc:{{{rarity}}}}} Magic Items]]
   |#default = [[Category:5e24 {{lc:{{{rarity}}}}} Magic Items]]
   }}
   }}
{{#if: {{{hoarditem|}}}|[[Category:5e24 Hoard Magic Items]]|}}
{{#if: {{{consumable|}}}|[[Category:5e24 Consumable Magic Item]]|}}{{#if: {{{hoarditem|}}}|[[Category:5e24 Hoard Magic Items]]|}}{{#if: {{{canon|}}}|[[Category:5e24 Canon Magic Items]]|}}
{{#if: {{{canon|}}}|[[Category:5e24 Canon Magic Items]]|}}
<!--
<!--
  --db--
  --db--
Line 140: Line 128:
|Attunement_Note = {{{attunementnote|}}}
|Attunement_Note = {{{attunementnote|}}}
<!--|Description = {{{desc|}}}-->
<!--|Description = {{{desc|}}}-->
|Consumable = {{#if: {{{consumable|}}}|1}}
|Charges = {{{charges|}}}
|Charges = {{{charges|}}}
|Magic_Bonus = {{{magicbonus|}}}
|Magic_Bonus = {{{magicbonus|}}}
|Canon = {{#if: {{{canon|}}}|1}}
|Canon = {{#if: {{{canon|}}}|1}}
|Artificer = {{#if: {{{artificer|}}}|1|}}
|Magic_Item_Plan = {{{artificerplan|}}}
|Prerequisites = {{{prerequisites|}}}
|Prerequisites = {{{prerequisites|}}}
|Artificer_Attuned = {{#if: {{{artificerAttuned|}}}|1|}}
|Artificer_Canon = {{#if: {{{artificerCanon|}}}|1|}}
|Artificer_Item = {{{artificerItem|}}}
|Hoard_Item = {{#if: {{{hoarditem|}}}|1|}}
|Hoard_Item = {{#if: {{{hoarditem|}}}|1|}}
|Summary = {{{summary|}}}
|Summary = {{{summary|}}}
Line 173: Line 159:
|attunement= <!-- Yes if requires attunement, otherwise blank -->
|attunement= <!-- Yes if requires attunement, otherwise blank -->
|attunementnote= <!-- blank unless attunement note -->
|attunementnote= <!-- blank unless attunement note -->
|consumable= <!--blank or true-->
|charges= <!-- # of charges or uses, otherwise blank -->
|charges= <!-- # of charges or uses, otherwise blank -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
Line 180: Line 167:
===Optional Entries===
===Optional Entries===
<pre>
<pre>
|artificer=<!-- blank, true if Artificer Infused -->
|artificerplan= <!-- blank, Artificer level for magi item plan -->
|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-->
|hoarditem= <!--blank, true if hoard magic item-->
|nodb= <!--blank, true to skip db and categories-->
|nodb= <!--blank, true to skip db and categories-->
Line 202: Line 183:
|attunement=Yes <!-- Yes if requires attunement, otherwise blank -->
|attunement=Yes <!-- Yes if requires attunement, otherwise blank -->
|attunementnote= <!-- blank unless attunement note -->
|attunementnote= <!-- blank unless attunement note -->
|consumable= <!--blank or true-->
|charges= <!-- # of charges or uses, otherwise blank -->
|charges= <!-- # of charges or uses, otherwise blank -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
Line 220: Line 202:
|attunement= Yes<!-- Yes if requires attunement, otherwise blank -->
|attunement= Yes<!-- Yes if requires attunement, otherwise blank -->
|attunementnote= <!-- blank unless attunement note -->
|attunementnote= <!-- blank unless attunement note -->
|consumable= <!--blank or true-->
|charges= <!-- # of charges or uses, otherwise blank -->
|charges= <!-- # of charges or uses, otherwise blank -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|magicbonus= <!-- blank; or +1, +2, +3 -->
|hoarditem=
|hoarditem=
|desc= blah, blah, blah<!--Description of the magic item, rules, and abilities -->
|desc= blah, blah, blah
|nodb=true
}}
}}
[[Category:5e24 Templates]]</noinclude>
[[Category:5e24 Templates]]</noinclude>

Latest revision as of 14:11, 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

|artificerplan= <!-- blank, Artificer level for magi item plan -->
|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