Difference between revisions of "Template:MagicItem"

From Epic Paths
Jump to navigation Jump to search
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|Aura|CL (label=Caster Level)|Cost|Weight|Description|Construction|ConstructionCost|OGL|Fluff|Rarity}}
{{#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)}}
{{#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|Cost=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}}<!--
</noinclude><includeonly>{{#cargo_store:_table=MagicItems}}<!--


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


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

Revision as of 19:37, 15 January 2022

This is the "MagicItem" template.

It should be called in the following format:

{{MagicItem
|Name=
|Type=
|Slot=
|Aura=
|CL=
|Cost=
|Weight=
|Description=
|Construction=
|ConstructionCost=
|OGL=
|Fluff=
|Rarity=
}}

Edit the page to see the template text.

This template defines the table "MagicItems". View table.