Template:5e Magic Armor: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(wip)
 
No edit summary
Line 43: Line 43:
}}-->
}}-->
</noinclude><includeonly>
</noinclude><includeonly>
'''<big>{{{name}}}</big>{{#set: Magic=Yes}}<br />{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}} }}[[Category:5e Magic Items]][[Category:Armor]][[Category:5e]][[Category:Magic Item]]
'''<big>{{{name}}}</big>{{#set: Magic=Yes}}<br />{{#if:{{{sorttext|}}}|{{DEFAULTSORTKEY:{{{sorttext}}} 5e}}{{#cargo_store: _table = 5e_Monsters|Sort_Text = {{{sorttext}}}}} 5e|{{DEFAULTSORTKEY:{{PAGENAME}} 5e}}{{#cargo_store: _table = 5e_Monsters|Sort_Text = {{PAGENAME}}}} }}[[Category:5e Magic Items]][[Category:Armor]][[Category:5e]][[Category:Magic Item]]
''Magic [[Item Type::Armor]]{{#if: {{{kind|}}}|&nbsp;({{lc:{{{kind}}}}})|}}, {{#switch: {{{rarity}}}
''Magic Armor {{#cargo_store: _table = 5e_Monsters|Item_Type = Armor}}<!--[[Item Type::Armor]]-->{{#if: {{{kind|}}}|&nbsp;({{lc:{{{kind}}}}})|}}{{#cargo_store: _table = 5e_Monsters|Type_Note = {{{kind}}}}}, {{#switch: {{{rarity}}}
   |Common = common {{#set: Rarity=Common}}[[Category:5e Common Magic Items]]
   |Common = common{{#cargo_store: _table = 5e_Monsters|Rarity = Common}}<!--{{#set: Rarity=Common}}-->[[Category:5e Common Magic Items]]
   |Uncommon = uncommon{{#set: Rarity=Uncommon}}[[Category:5e Uncommon Magic Items]]
   |Uncommon = uncommon{{#cargo_store: _table = 5e_Monsters|Rarity = Uncommon}}<!--{{#set: Rarity=Uncommon}}-->[[Category:5e Uncommon Magic Items]]
   |Rare = rare{{#set: Rarity=Rare}}[[Category:5e Rare Magic Items]]
   |Rare = rare{{#cargo_store: _table = 5e_Monsters|Rarity = Rare}}<!--{{#set: Rarity=Rare}}-->[[Category:5e Rare Magic Items]]
   |Very Rare = very rare{{#set: Rarity=Very Rare}}[[Category:5e Very Rare Magic Items]]
   |Very Rare = very rare{{#cargo_store: _table = 5e_Monsters|Rarity = Very rare}}<!--{{#set: Rarity=Very Rare}}-->[[Category:5e Very Rare Magic Items]]
   |Legendary = legendary{{#set:Rarity=Legendary}}[[Category:5e Legendary Magic Items]]
   |Legendary = legendary{{#cargo_store: _table = 5e_Monsters|Rarity = Legendary}}<!--{{#set:Rarity=Legendary}}-->[[Category:5e Legendary Magic Items]]
   |Artifact = artifact{{#set: Rarity=Artifact}}[[Category:5e Artifacts]]
   |Artifact = artifact{{#cargo_store: _table = 5e_Monsters|Rarity = Artifact}}<!--{{#set: Rarity=Artifact}}-->[[Category:5e Artifacts]]
   |#default = {{lc:[[Rarity::{{{rarity}}}]]}}
   |#default = {{lc:{{{rarity}}}}}{{#cargo_store: _table = 5e_Monsters|Rarity = {{{rarity}}}}}<!--[[Rarity::{{{rarity}}}| ]]-->
   }}{{#if: {{{attunement|}}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}})|&nbsp;(requires {{srd5lc|Attunement}})| }}{{#set: attunement=yes}}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''<br />  
   }}{{#if: {{{attunement|}}}|{{#cargo_store: _table = 5e_Monsters|Attunement = 1}}<!--{{#set: attunement=yes}}-->{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}}, requires {{srd5lc|Attunement}})|&nbsp;(requires {{srd5lc|Attunement}})| }}|{{#if: {{{raritynote|}}}|&nbsp;({{{raritynote}}})| }}}}''{{#if: {{{raritynote|{{#cargo_store: _table = 5e_Monsters|Rarity_Note = {{{raritynote}}}}}|}}<br />  
{{{desc}}}
{{{desc}}}
{| class="zebra" style="border-style:solid; border-width:1px; border-radius:0.5em;"
{| class="zebra" style="border-style:solid; border-width:1px; border-radius:0.5em;"
Line 65: Line 65:
|-
|-
|[[Name::{{{name}}}]]
|[[Name::{{{name}}}]]
|align="center"|{{#if: {{{kind|}}}|[[Armor Type::{{{kind}}}]]|kind missing}}
|align="center"|{{#if: {{{kind|}}}|{{{kind}}}{{#cargo_store: _table = 5e_Monsters|Armor_Type = {{{kind}}}}}<!--[[Armor Type::{{{kind}}}]]-->|kind missing}}
|align="center"|{{#if: {{{armortype|}}}|[[Type::{{{armortype}}}]]|armortype missing}}
|align="center"|{{#if: {{{armortype|}}}|{{{armortype}}}{{#cargo_store: _table = 5e_Monsters|LightMedHeavy = {{{armortype}}}}}<!--[[Type::{{{armortype}}}]]-->|armortype missing}}
|align="center"|{{#if: {{{magicbonus|}}}|&nbsp;[[Magic Bonus::&nbsp;{{{magicbonus}}}]]|&nbsp;[[Magic Bonus:: — ]]}}  
|align="center"|{{#if: {{{magicbonus|}}}|&nbsp;{{{magicbonus}}}&nbsp;{{#cargo_store: _table = 5e_Monsters|Magic_Bonus = &nbsp;{{{magicbonus}}}}}<!--{{#set: attunement=yes}}--><!--[[Magic Bonus::&nbsp;{{{magicbonus}}}]]-->|&nbsp;&mdash;<!--[[Magic Bonus:: — ]]-->}}  
|align="center"|{{#if: {{{AC|}}}|&nbsp;[[AC::{{{AC}}}]]|AC missing}}
|align="center"|{{#if: {{{AC|}}}|&nbsp;{{{AC}}}{{#cargo_store: _table = 5e_Monsters|AC = {{{AC}}}}}<!--[[AC::{{{AC}}}]]-->|AC missing}}
|align="center"|{{#if: {{{strength|}}}|[[Strength::{{{strength}}}]]|—}}
|align="center"|{{#if: {{{strength|}}}|{{{strength}}}{{#cargo_store: _table = 5e_Monsters|Strength = {{{strength}}}}}<!--[[Strength::{{{strength}}}]]-->|—}}
|align="center"|{{#if: {{{stealth|}}}|[[Stealth::{{{stealth}}}]]|—}}
|align="center"|{{#if: {{{stealth|}}}|{{{steatlth}}{{#cargo_store: _table = 5e_Monsters|Stealth = {{{stealth}}}}}<!--[[Stealth::{{{stealth}}}]]-->|—}}
|align="center"|{{#if: {{{weight|}}}|[[Weight::{{{weight}}} lbs]]|weight missing}}
|align="center"|{{#if: {{{weight|}}}|{{{weight}}} lbs{{#cargo_store: _table = 5e_Monsters|Weight = {{{weight}}} lbs}}<!--[[Weight::{{{weight}}} lbs]]-->|weight missing}}
|-
|-
|colspan=8 style="font-size:8pt; text-align:center;"|<sup>1</sup>Magic bonus '''not''' included in listed AC.
|colspan=8 style="font-size:8pt; text-align:center;"|<sup>1</sup>Magic bonus '''not''' included in listed AC.

Revision as of 21:20, 3 February 2020

This template adds rows to the table "5e_Magic_Items", which is declared by the template 5e Magic Item. View table.

Template documentation (for the above template, sometimes hidden or invisible)

Syntax

{{5e Magic Armor
|name=
|sorttext= <!--blank, or category sort-->
|rarity= <!-- Common, Uncommon, Rare, Very Rare, Legendary, Artifact-->
|raritynote= <!-- Note following rarity, other than requires attunement. -->
|attunement= <!-- Yes if requires attunement, otherwise blank -->
|charges= <!-- # of charges or uses, otherwise blank -->
|armortype= <!--Light, Medium, Heavy-->
|kind= <!--Leather Armor, Brestplate, etc.-->
|magicbonus= <!-- +1, +2, etc.; blank if no bonus -->
|AC=
|strength= <!--Strength necessary to wear it-->
|stealth= <!--Does it give a disadvantage on stealth)-->
|weight=
|desc=
}}

Example

{{5e Magic Armor
|name=Foo Scale Armor
|sorttext= <!--blank, or category sort-->
|rarity=Uncommon <!-- Common, Uncommon, Rare, Very Rare, Legendary, Artifact-->
|raritynote= <!-- Note following rarity, other than requires attunement. -->
|attunement=Yes <!-- Yes if requires attunement, otherwise blank -->
|charges= <!-- # of charges or uses, otherwise blank -->
|armortype=Medium <!--Light, Medium, Heavy-->
|kind=Scale Mail <!--Leather Armor, Brestplate, etc.-->
|magicbonus= +1
|AC=14 + Dex modifier (max. +2)
|strength= <!--Strength necessary to wear it-->
|stealth= <!--Does it give a disadvantage on stealth)-->
|weight=25
|desc=Made of from the scales of Foo, when enchanted, it provides excellent protection.

When making {{SRD5|Dexterity}} ({{SRD5|Stealth}}) checks against being heard, the wearer has {{srd5lc|Advantage}}.
}}

produces...


Foo Scale Armor{{#set: Magic=Yes}}
Magic Armor  (scale mail), uncommon (requires attunement){{#if: {Template:Raritynote
Made of from the scales of Foo, when enchanted, it provides excellent protection.

When making Dexterity (Stealth) checks against being heard, the wearer has advantage.

Armor Kind Type Magic Bonus1 AC Strength Stealth Weight
Name::Foo Scale Armor Scale Mail Medium  +1   14 + Dex modifier (max. +2) 25 lbs
1Magic bonus not included in listed AC.