Template:5e Magic Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 45: | Line 45: | ||
}} | }} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<span style="font-size: 1.35em; font-weight:bold;>{{{name}}}</span><br />{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}} | <span style="font-size: 1.35em; font-weight:bold;>{{{name}}}</span><br />{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e Magic Items]] | ||
''Magic {{#switch: {{{type}}} | ''Magic {{#switch: {{{type}}} | ||
|Armor | |Armor | ||
|armor = {{SRD5|Armor}} | |armor = {{SRD5|Armor}}[[Category:5e Magic Armor]] | ||
|Weapon | |Weapon | ||
|weapon = {{SRD5|Weapon}} | |weapon = {{SRD5|Weapon}}[[Category:5e Magic Weapons]] | ||
|Wondrous Item | |Wondrous Item | ||
|wondrous item | |wondrous item | ||
|Wondrous item = {{SRD5|Wondrous Item}} | |Wondrous item = {{SRD5|Wondrous Item}}[[Category:5e Wondrous Items]] | ||
|Potion | |Potion | ||
|potion = {{SRD5|Potion}} | |potion = {{SRD5|Potion}}[[Category:5e Magic Potions]] | ||
|Scroll | |Scroll | ||
|scroll = {{SRD5|Scroll}} | |scroll = {{SRD5|Scroll}}[[Category:5e Magic Scrolls]] | ||
|Staff | |Staff | ||
|staff = {{SRD5|Staff}} | |staff = {{SRD5|Staff}}[[Category:5e Magic Staves]] | ||
|Rod | |Rod | ||
|rod = {{SRD5|Rod}} | |rod = {{SRD5|Rod}}[[Category:5e Magic Rods]] | ||
|Wand | |Wand | ||
|wand = {{SRD5|Wand}} | |wand = {{SRD5|Wand}}[[Category:5e Magic Wands]] | ||
|Ring | |Ring | ||
|ring = {{SRD5|Ring}} | |ring = {{SRD5|Ring}}[[Category:5e Magic Rings]] | ||
|#default = {{{type}}} | |#default = {{{type}}}[[Item Type::{{ucfirst:{{{type}}}}}]] | ||
}}{{#if: {{{typenote|}}}|, ({{{typenote}}}) | }}{{#if: {{{typenote|}}}|, ({{{typenote}}})| }}, <!-- avoid cr | ||
-->{{#switch: {{{rarity}}} | -->{{#switch: {{{rarity}}} | ||
|Common = common | |Common = common[[Category:5e Common Magic Items]] | ||
|Uncommon = uncommon | |Uncommon = uncommon[[Category:5e Uncommon Magic Items]] | ||
|Rare = rare | |Rare = rare[[Category:5e Rare Magic Items]] | ||
|Very Rare = very rare | |Very Rare = very rare[[Category:5e Very Rare Magic Items]] | ||
|Legendary = legendary | |Legendary = legendary[[Category:5e Legendary Magic Items]] | ||
|Artifact = artifact | |Artifact = artifact[[Category:5e Artifacts]] | ||
|#default = {{lc:{{{rarity}}}<!--[[Rarity::{{{rarity}}}]]-->}}<!--{{#cargo_store: _table = 5e_Magic_Items|Rarity = {{{rarity}}}}}--> | |#default = {{lc:{{{rarity}}}<!--[[Rarity::{{{rarity}}}]]-->}}<!--{{#cargo_store: _table = 5e_Magic_Items|Rarity = {{{rarity}}}}}--> | ||
}}{{#if: {{{attunement|}}}|<!--{{#cargo_store: _table = 5e_Magic_Items|Attunement = 1}}--><!--{{#set: attunement=true}}-->{{#if: {{{raritynote|}}}| ({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}})|}})| (requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}})|}})| }}|{{#if: {{{raritynote|}}}| ({{{raritynote}}})<!--{{#cargo_store: _table = 5e_Magic_Items|Rarity_Note = {{{raritynote}}}}}-->| }}}}'' | }}{{#if: {{{attunement|}}}|<!--{{#cargo_store: _table = 5e_Magic_Items|Attunement = 1}}--><!--{{#set: attunement=true}}-->{{#if: {{{raritynote|}}}| ({{{raritynote}}}, requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}})|}})| (requires {{srd5lc|Attunement}}{{#if: {{{attunementnote|}}}| {{{attunementnote}}})|}})| }}|{{#if: {{{raritynote|}}}| ({{{raritynote}}})<!--{{#cargo_store: _table = 5e_Magic_Items|Rarity_Note = {{{raritynote}}}}}-->| }}}}'' |
Revision as of 11:03, 25 February 2020
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
Magic Wondrous Item, (not so wondrous), common (requires attunement)
blah, blah, blah {{#cargo_store: _table = 5e_Magic_Items |where Page_Name=[[FULLPAGENAME}} |Sort_Text = 5e |Page_Name = Template:5e Magic Item |Item_Name = Foo |Item_Type = Wondrous Item |Type_Note = not so wondrous |Rarity = Common |Rarity_Note = |Attunement = Yes |Attunement_Note = |Description = blah, blah, blah |Charges = |Magic_Bonus = |Canon = |Summary = }}
Visit Template:5e Magic Item/doc to edit this text! (How does this work?)