Difference between revisions of "Template:MagicItem"

From Epic Paths
Jump to navigation Jump to search
 
(35 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,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|Weight={{#if:{{{Weight}}}|-|0|{{{Weight}}}}}}}}<!--


-->{{BreadCrumbs|Equipment,Equipment/{{{Category}}}}}{{DISPLAYTITLE:{{SUBPAGENAME}}}}<!--
{{#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: {{{Rarity|}}}|advanced|'''Advanced:''' Yes{{Break}}}}<!--
-->{{#ifeq:{{{Type}}}|gear<!--
-->|{{BreadCrumbs|Magic Items,Magic Items/{{{Type}}},Magic Items/{{{Type}}}/{{{Slot}}}}}{{DISPLAYTITLE:{{SUBPAGENAME}}}}<!--
-->|{{BreadCrumbs|Magic Items,Magic Items/{{{Type}}}}}{{DISPLAYTITLE:{{SUBPAGENAME}}}}<!--
-->}}<!--


-->{{#if:{{{Fluff|}}}|''{{{Fluff}}}''<br>|}}<!--
-->{{#ifeq: {{{Rarity|}}}|advanced|'''Advanced:''' Yes}}<!--


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