Template:5e Magic Item: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(24 intermediate revisions by the same user not shown)
Line 4: Line 4:
_table = 5e_Magic_Items
_table = 5e_Magic_Items
|Sort_Text = String
|Sort_Text = String
|Page_Name = Page
|Item_Name = String
|Item_Name = String
|Item_Type = String
|Item_Type = String
|Type_Note = String
|Type_Note = String
|Rarity = String (allowed values=Common,Rare,Very Rare,Legendary,Artifact)
|Rarity = String
|Rarity_Note = String
|Rarity_Note = String
|Attunement = Boolean
|Attunement = Boolean
|Attunement_Note = String
|Attunement_Note = Wikitext String
|Description = wikitext
|Description = wikitext
|Charges = String
|Charges = String
Line 41: Line 40:
|Versatile = String
|Versatile = String
|Other_Prop = String
|Other_Prop = String
|Author = String
|Properties = list (, ) of String
}}
|Artificer_Infused = Boolean
|Prerequisites = Wikitext String
|Artificer_Attuned = Boolean
|Artificer_Canon = Boolean
|Artificer_Item = String
|Hoard_Item = Boolean
}}
}}
</noinclude><includeonly>
</noinclude><includeonly>
<span style="font-size: 1.35em; font-weight:bold;>{{{name}}}</span><br />{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}{{#cargo_store: _table = 5e_Magic_items|Sort_Text = {{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}{{#cargo_store: _table = 5e_Magic_items|Sort_Text = {{PAGENAME}} 5e}} }}[[Category:5e Magic Items]]
<span style="font-size: 1.4em; font-weight:bold;>{{{name}}}</span>&nbsp;{{#if: {{{refs|}}}|{{{refs}}}&nbsp;|}}{{#if: {{{pointer|}}}|([[pointer]])|}}<br />
''Magic {{#switch: {{{type}}}
''Magic {{#switch: {{{type}}}
   |Armor   
   |Armor   
   |armor = {{SRD5|Armor}}{{#cargo_store: _table = 5e_Magic_Items|Item_Type = Armor}}<!--[[Item Type::Armor]]-->[[Category:5e Magic Armor]]
   |armor = {{SRD5|Armor}}
   |Weapon   
   |Weapon   
   |weapon = {{SRD5|Weapon}}{{#cargo_store: _table = 5e_Magic_Itemss|Item_Type = Weapon}}<!--[[Item Type::Weapon]]-->[[Category:5e Magic Weapons]]{{#if: {{{typenote|}}}|<!--{{#set: Weapon Kind={{{typenote}}}}}-->|}}
   |weapon = {{SRD5|Weapon}}
   |Wondrous Item   
   |Wondrous Item   
   |wondrous item   
   |wondrous item   
   |Wondrous item = Wondrous Item{{#cargo_store: _table = 5e_Magic_Items|Item_Type = Wondrous Item}}<!--[[Item Type::Wondrous Item]]-->[[Category:5e Wondrous Items]]
   |Wondrous item = {{SRD5|Wondrous Item}}
   |Potion   
   |Potion   
   |potion = {{SRD5|Potion}}{{#cargo_store: _table = 5e_Magic_Items|Item_Type = Potion}}<!--[[Item Type::Potion]]-->[[Category:5e Magic Potions]]
   |potion = {{SRD5|Potion}}
   |Scroll   
   |Scroll   
   |scroll = {{SRD5|Scroll}}{{#cargo_store: _table = 5e_Magic_Items|Item_Type = Scroll}}<!--[[Item Type::Scroll]]-->[[Category:5e Magic Scrolls]]
   |scroll = {{SRD5|Scroll}}
   |Staff   
   |Staff   
   |staff = {{SRD5|Staff}}{{#cargo_store: _table = 5e_Magic_Items|Item_Type = Staff}}<!--[[Item Type::Staff]]-->[[Category:5e Magic Staves]]
   |staff = {{SRD5|Staff}}
   |Rod   
   |Rod   
   |rod = {{SRD5|Rod}}{{#cargo_store: _table = 5e_Magic_Items|Item_Type = Rod}}<!--[[Item Type::Rod]]-->[[Category:5e Magic Rods]]
   |rod = {{SRD5|Rod}}
   |Wand  
   |Wand  
   |wand = {{#cargo_store: _table = 5e_Magic_Items|Item_Type = Wand}}<!--[[Item Type::Wand]]-->[[Category:5e Magic Wands]]
   |wand = {{SRD5|Wand}}
   |Ring   
   |Ring   
   |ring = {{SRD5|Ring}}{{#cargo_store: _table = 5e_Magic_Items|Item_Type = Ring}}<!--[[Item Type::Ring]]-->[[Category:5e Magic Rings]]
   |ring = {{SRD5|Ring}}
   |#default = {{{type}}}{{#cargo_store: _table = 5e_Magic_Items|Item_Type = {{{type}}}}}[[Item Type::{{ucfirst:{{{type}}}}}]]
   |#default = {{{type}}}
   }}{{#if: {{{typenote|}}}|,&nbsp;({{{typenote}}}){{#cargo_store: _table = 5e_Magic_Items|Type_Note = {{{typenote}}}}}<!--{{#set: Type Note={{{typenote}}}}}-->| }},&nbsp;<!-- avoid cr
   }}{{#if: {{{typenote|}}}|,&nbsp;({{{typenote}}})| }},&nbsp;<!-- avoid cr
-->{{#switch: {{{rarity}}}
-->{{#switch: {{{rarity}}}
   |Common = common{{#cargo_store: _table = 5e_Magic_Items|Rarity = Common}}<!--{{#set: Rarity=Common}}-->[[Category:5e Common Magic Items]]
   |Common = common
   |Uncommon = uncommon{{#cargo_store: _table = 5e_Magic_Items|Rarity = Uncommon}}<!--{{#set: Rarity=Uncommon}}-->[[Category:5e Uncommon Magic Items]]
   |Uncommon = uncommon
   |Rare = rare{{#cargo_store: _table = 5e_Magic_Items|Rarity = Rare}}<!--{{#set: Rarity=Rare}}-->[[Category:5e Rare Magic Items]]
   |Rare = rare
   |Very Rare = very rare{{#cargo_store: _table = 5e_Magic_Items|Rarity = Very Rare}}<!--{{#set: Rarity=Very Rare}}-->[[Category:5e Very Rare Magic Items]]
   |Very Rare = very rare
   |Legendary = legendary{{#cargo_store: _table = 5e_Magic_Items|Rarity = Legendary}}<!--{{#set:Rarity=Legendary}}-->[[Category:5e Legendary Magic Items]]
   |Legendary = legendary
   |Artifact = artifact{{#cargo_store: _table = 5e_Magic_Items|Rarity = Artifact}}<!--{{#set: Rarity=Artifact}}-->[[Category:5e Artifacts]]
   |Artifact = artifact
   |#default = {{lc:{{{rarity}}}<!--[[Rarity::{{{rarity}}}]]-->}}{{#cargo_store: _table = 5e_Magic_Items|Rarity = {{{rarity}}}}}
   |#default = {{lc:{{{rarity}}}}}
   }}{{#if: {{{attunement|}}}|{{#cargo_store: _table = 5e_Magic_Items|Attunement = 1}}<!--{{#set: attunement=true}}-->{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|}})|&nbsp;(requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|}})| }}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}){{#cargo_store: _table = 5e_Magic_Items|Rarity_Note = {{{raritynote}}}}}| }}}}''  
   }}{{#if: {{{attunement|}}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|)}}|&nbsp;(requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}|&nbsp;{{{attunementnote}}})|)}}| }}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''  


{{{desc}}}{{#cargo_store: _table = 5e_Magic_Items|Description = {{{desc}}}}}{{#if: {{{charges|}}}|{{#cargo_store: _table = 5e_Magic_Items|Charges = {{{charges}}}}}<!--{{#set: Charges={{{charges|}}}}}-->| }}{{#if: {{{magicbonus|}}}|{{#cargo_store: _table = 5e_Magic_Items|Magic_Bonus = {{{magicbonus}}}}}<!--{{#set: Magic Bonus=&nbsp;{{{magicbonus|}}}}}-->|}}{{#if: {{{canon|}}}|{{#cargo_store: _table = 5e_Magic_Items|Cannon = 1}}<!--{{#set: Canon=true}}-->[[Category:5e Canon Magic Items]]|}}
{{#if: {{{hoarditem|}}}|''Hoard Magic Item''<br /> <br />|}}{{#if: {{{pointer|}}}|'''Unofficial Description:'''&nbsp;|}}{{{desc}}}{{#if: {{{artificerInfused|}}}|<br />{{5e Replicated Magic Item
|refs={{{artificerrefs|}}}
|prerequisite={{{prerequisite|}}}
|item={{{artificerItem|}}}
|select item={{{artificerSelectItem|}}}
|attunement={{{artificerAttuned|}}}
|artificer canon={{{artificerCanon|}}}}}|}}
{{#if: {{{nodb|}}}|<!--skip-->|<!--
--categories--
-->{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}}}[[Category:5e Magic Items]]
{{#switch: {{{type}}}
  |Armor 
  |armor = [[Category:5e Magic Armor]]
  |Weapon 
  |weapon = [[Category:5e Magic Weapons]]
  |Wondrous Item 
  |wondrous item 
  |Wondrous item = [[Category:5e Wondrous Items]]
  |Hoard Item
  |Hoard item
  |hoard item = [[Category:5e Hoard Magic Items]]
  |Potion 
  |potion = [[Category:5e Magic Potions]]
  |Scroll 
  |scroll = [[Category:5e Magic Scrolls]]
  |Staff 
  |staff = [[Category:5e Magic Staves]]
  |Rod 
  |rod = [[Category:5e Magic Rods]]
  |Wand
  |wand = [[Category:5e Magic Wands]]
  |Ring 
  |ring = [[Category:5e Magic Rings]]
  |#default = [[Category:5e {{ucfirst:{{{type}}}}}]]
  }}{{#switch: {{{rarity}}}
  |Common = [[Category:5e Common Magic Items]]
  |Uncommon = [[Category:5e Uncommon Magic Items]]
  |Rare = [[Category:5e Rare Magic Items]]
  |Very Rare = [[Category:5e Very Rare Magic Items]]
  |Legendary = [[Category:5e Legendary Magic Items]]
  |Artifact = [[Category:5e Artifacts]]
  |#default = [[Category:5e {{lc:{{{rarity}}}}} Magic Items]]
  }}
{{#if: {{{hoarditem|}}}|[[Category:5e Hoard Magic Items]]|}}
{{#if: {{{canon|}}}|[[Category:5e Canon Magic Items]]|}}
<!--
--db--
-->{{#cargo_store:
_table = 5e_Magic_Items
|Sort_Text = {{#if: {{{sorttext|}}}|{{{sorttext}}} 5e|{{PAGENAME}} 5e}}
|Item_Name = {{{name|}}}
|Item_Type = {{{type|}}}
|Type_Note = {{{typenote|}}}
|Rarity = {{{rarity|}}}
|Rarity_Note = {{{raritynote|}}}
|Attunement = {{{attunement|}}}
|Attunement_Note = {{{attunementnote|}}}
<!--|Description = {{{desc|}}}-->
|Charges = {{{charges|}}}
|Magic_Bonus = {{{magicbonus|}}}
|Canon = {{#if: {{{canon|}}}|1}}
|Artificer_Infused = {{#if: {{{artificerInfused|}}}|1|}}
|Prerequisites = {{{prerequisites|}}}
|Artificer_Attuned = {{#if: {{{artificerAttuned|}}}|1|}}
|Artificer_Canon = {{#if: {{{artificerCanon|}}}|1|}}
|Artificer_Item = {{{artificerItem|}}}
|Hoard_Item = {{#if: {{{hoarditem|}}}|1|}}
|Summary = {{{summary|}}}
}}|}}
</includeonly><noinclude>
</includeonly><noinclude>
<!-- Tech note:
<!-- Tech note:

Latest revision as of 08:19, 19 July 2022

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

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 -->
|desc= <!--Description of the magic item, rules, and abilities -->
}}

Optional Entries

|artificerInfused=<!-- 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

{{5e 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 -->
|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