Difference between revisions of "Template:MagicItem"

From Epic Paths
Jump to navigation Jump to search
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:Name|Type|Slot|Aura|CL (label=Caster Level)|Price|Weight|Description|Construction|ConstructionCost|OGL|Fluff|Rarity}}
{{#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)|Aura=Wikitext|CL=Integer|Price=Float|Weight=Float|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}}<!--
{{#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.}}}}<!--


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


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


-->{{#if:{{{Fluff|}}}|''{{{Fluff}}}''<br>|}}<!--
-->{{#!:{| class="wikitable"
|-
! {{#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 || {{#ifeq:{{{Weight|}}}|0|—|{{#number_format:{{{Weight}}}|_}} lb.|}} || {{#ifeq: {{{Aura|}}}|none|| {{{Aura}}} {{#!:||}}}} {{#ifeq: {{{CL|}}}|0|| {{{CL}}} {{#!:||}}}}{{{Rarity|—}}}
|}}}


-->{{#if:{{{Aura|}}}|'''Aura''' {{{Aura}}}; <wbr>}}'''CL''' {{{CL|—}}} '''Rarity''' {{{Rarity|—}}}<!--
{{#if:{{{Fluff|}}}|''{{{Fluff}}}''{{Break}}|}}<!--
-->{{#if:{{{Slot|}}}{{{Price|}}}{{{Weight|}}}|<br>}}<!--
-->{{#if:{{{Slot|}}}|'''Slot''' {{{Slot}}}; <wbr>}}{{#if:{{{Price|}}}|'''Price''' {{#number_format:{{{Price}}}|_}} gp; <wbr>}}{{#if:{{{Weight|}}}|'''Weight''' {{{Weight}}} lb.}}<!--
-->{{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}}}|}}|}}
{{{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.