Difference between revisions of "Template:MagicItem"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
{{#template_params:Name|Type|Slot|IsAbility|Aura|CL (label=Caster Level)|Cost|Weight|Rarity|Fluff|Description|Construction|ConstructionCost|OGL}} | {{#template_params:Name|Type|Slot|IsAbility|Aura|CL (label=Caster Level)|Cost|Weight|Rarity|Fluff|Description|Construction|ConstructionCost|OGL}} | ||
{{#cargo_declare:_table=MagicItems|Name=Wikitext|Type=Text (allowed values=gear,marvelous item,oil,potion,powder,spell engine,scroll)|Slot=Text (allowed values=armor,belt,body,chest,eyes,feet,hands,head,headband,implement,neck,ring,shield,shoulders,weapon,wrists, | {{#cargo_declare:_table=MagicItems|Name=Wikitext|Type=Text (allowed values=gear,marvelous item,oil,potion,powder,spell engine,scroll)|Slot=Text (allowed values=armor,belt,body,chest,eyes,feet,hands,head,headband,implement,neck,ring,shield,shoulders,weapon,wrists,other)|IsAbility=Boolean|Aura=Wikitext|CL=Integer|Cost=Float|CostGp=Text|Weight=Float|WeightLbs=Text|Description=Wikitext|Construction=Wikitext|ConstructionCost=Integer|OGL=Text|Fluff=Wikitext|Rarity=Text (allowed values=common,uncommon,rare,advanced,unique)}} | ||
</noinclude><includeonly>{{#cargo_store:_table=MagicItems|CostGp={{#ifeq:{{{Cost}}}|0|—|{{#number_format:{{{Cost}}}|_}} gp}}|WeightLbs={{#ifeq:{{{Weight}}}|0|—|{{#number_format:{{{Weight}}}|_}} lb.}}}}<!-- | </noinclude><includeonly>{{#cargo_store:_table=MagicItems|CostGp={{#ifeq:{{{Cost}}}|0|—|{{#number_format:{{{Cost}}}|_}} gp}}|WeightLbs={{#ifeq:{{{Weight}}}|0|—|{{#number_format:{{{Weight}}}|_}} lb.}}}}<!-- | ||
Revision as of 03:09, 16 January 2022
This is the "MagicItem" template.
It should be called in the following format:
{{MagicItem |Name= |Type= |Slot= |IsAbility= |Aura= |CL= |Cost= |Weight= |Rarity= |Fluff= |Description= |Construction= |ConstructionCost= |OGL= }}
Edit the page to see the template text.
This template defines the table "MagicItems". View table.