Difference between revisions of "Template:MagicItem"

From Epic Paths
Jump to navigation Jump to search
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#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=apparatus,charm,gear,implement of power,marvelous item,oil,potion,powder,ritual scroll,spell engine,spell scroll)|Slot=Text (allowed values=armor,belt,body,chest,eyes,feet,hands,head,headband,neck,ring,shield,shoulders,wrists,none)|IsAbility=Boolean|Aura=Wikitext|CL=Integer|Cost=Float|Weight=Float|Description=Wikitext|Construction=Wikitext|ConstructionCost=Integer|OGL=Text|Fluff=Wikitext|Rarity=Text (allowed values=common,uncommon,rare,advanced,unique)}}
{{#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|Name={{{Name}}}|Type={{{Type}}}|Slot={{{Slot}}}|IsAbility={{{IsAbility}}}|Aura={{{Aura}}}|CL={{{CL}}}|Cost={{{Cost}}}|Weight={{{Weight}}}|Rarity={{{Rarity}}}|Fluff={{{Fluff}}}|Description={{{Description}}}|Construction={{{Construction}}}|ConstructionCost={{{ConstructionCost}}}|OGL={{{OGL}}}}}<!--
</noinclude><includeonly>{{#cargo_store:_table=MagicItems|CostGp={{#ifeq:{{{Cost}}}|0|—|{{#number_format:{{{Cost}}}|_}} gp}}|WeightLbs={{#ifeq:{{{Weight}}}|0||{{#number_format:{{{Weight}}}|_}} lb.}}}}<!--


-->{{#ifeq:{{{Type}}}|gear<!--
-->{{#ifeq:{{{Type}}}|gear<!--
Line 9: Line 10:
-->}}<!--
-->}}<!--


-->{{#ifeq: {{{Rarity|}}}|advanced|'''Advanced:''' Yes{{Break}}}}<!--
-->{{#ifeq: {{{Rarity|}}}|advanced|'''Advanced:''' Yes}}<!--


-->{{#!:{| class="wikitable"
-->{{#!:{| class="wikitable"
|-
|-
! {{#if: {{{Slot|}}}| Slot !!|}} {{#ifeq: {{{IsAbility|}}}|Yes| Is Ability !!|}} Cost !! Weight !! {{#if: {{{Aura|}}}| Aura !!|}} CL !! Rarity
! {{#if: {{{Slot|}}}| Slot !!|}} {{#ifeq: {{{IsAbility|}}}|Yes| Is Ability !!|}} Cost !! Weight !! {{#ifeq: {{{Aura|}}}|none|| Aura !!}} {{#ifeq: {{{CL|}}}|0|| CL!!}} Rarity
|-
|-
| {{#if: {{{Slot|}}}| {{{Slot}}} {{#!:||}}|}} {{#ifeq: {{{IsAbility|}}}|Yes| yes {{#!:||}}|}} {{#number_format:{{{Cost}}}|_}} gp || {{{Weight|—}}} lb. || {{#if: {{{Aura|}}}| {{{Aura}}} {{#!:||}}|}} {{{CL|—}}} || {{{Rarity|—}}}
| {{#if: {{{Slot|}}}| {{{Slot}}} {{#!:||}}|}} {{#ifeq: {{{IsAbility|}}}|Yes| yes {{#!:||}}|}} {{#number_format:{{{Cost}}}|_}} gp || {{#ifeq:{{{Weight|}}}|0|—|{{#number_format:{{{Weight}}}|_}} lb.|}} || {{#ifeq: {{{Aura|}}}|none|| {{{Aura}}} {{#!:||}}}} {{#ifeq: {{{CL|}}}|0|| {{{CL}}} {{#!:||}}}}{{{Rarity|—}}}
|}}}
|}}}


{{#if:{{{Fluff|}}}|''{{{Fluff}}}''{{Break}}|}}<!--
{{#if:{{{Fluff|}}}|''{{{Fluff}}}''{{Break}}|}}<!--


-->{{#if: {{{Description|}}}|'''Description'''<br>
-->{{#if: {{{Description|}}}|{{{Description|}}}{{Break}}}}<!--
{{{Description|}}}{{Break}}}}<!--


-->{{#if: {{{Construction|}}}|'''Construction Requirements'''<br>
-->{{#if: {{{Construction|}}}|'''Construction Requirements'''<br>
{{{Construction|}}}{{#if: {{{ConstructionCost|}}}|&#59; '''Cost''' {{{ConstructionCost}}}|}} gp|}}
{{{Construction|}}}; '''Cost''' {{#number_format:{{{ConstructionCost}}}|_}} gp}}


{{OGL|{{{OGL|}}}}}
{{OGL|{{{OGL|}}}}}

Latest revision as of 14:03, 29 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.