Difference between revisions of "Template:Item Infobox"

From Glitch Forever
Jump to navigation Jump to search
(testing template)
Line 65: Line 65:
 
-->{{#if:{{{consume|}}}|
 
-->{{#if:{{{consume|}}}|
 
{{!}}-
 
{{!}}-
!  colspan="2" style="font-family:'VAG Rounded','Arial Rounded MT Bold',sans-serif; font-size:110%; text-align:center;" {{!}} When Consumed <br />
+
!  colspan="2" style="font-family:'VAG Rounded','Arial Rounded MT Bold',sans-serif; font-size:110%; text-align:center;" {{!}} When Consumed |'''Not Consumable'''
 +
{{!}}-
 +
}}
 
{{!}}-
 
{{!}}-
 
{{#if: {{{img<includeonly>{{!}}</includeonly>}}} {{!}}
 
{{#if: {{{img<includeonly>{{!}}</includeonly>}}} {{!}}
Line 86: Line 88:
 
{{!}} {{{energy}}} {{E}}
 
{{!}} {{{energy}}} {{E}}
 
{{!}}-
 
{{!}}-
}}<!-- end of if consume statement
+
}}
 
 
-->|'''Not consumable'''}}
 
 
|-
 
|-
 
|}
 
|}
 
<includeonly></includeonly><noinclude>[[Category:Infobox|{{PAGENAME}}]]{{documentation}}</noinclude>
 
<includeonly></includeonly><noinclude>[[Category:Infobox|{{PAGENAME}}]]{{documentation}}</noinclude>

Revision as of 03:44, 6 May 2019

{{{Name}}}
{{{image}}}
Category: {{{category}}}
Max Stack Size: {{{maxstack}}}
Donation Favor: {{{favor}}}
Uses per item: {{{durability}}}
Details
Unlock: {{{unlock}}}
Get Item: {{{getItem}}}
Growth Time: {{{growthTime}}}
Vendors: {{{vendor}}}
Purchase: {{{purchasePrice}}} Currant
Sell Price: {{{sellPrice}}} Currant
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Item_Infobox/doc to edit this documentation. (How does this work?)

Description

This template is used to display basic information and pictures for item pages.

Syntax

Type
{{Item Infobox
|image = 
|name = {{PAGENAME}}
|category = 
|maxstack =
|favor =
|durability =
|unlock =
|getItem =
|growthTime =
|vendor = 
|purchasePrice = 
|sellPrice = 
|consume =
|img = 
|grantfavor= 
|mood = 
|energy = 
}} 

somewhere.

Samples

{{Item Infobox
|image = [[File:PlainBubble209.png|200px]]
|name = {{PAGENAME}}
|category = Resource
|maxstack = 20
|favor = 5
|durability = 5 
|unlock = Level 1
|getItem = Harvest [[Bubble Tree]]
|growthTime = 3 mins
|vendor = [[Alchemical Goods Vendor]]
|purchasePrice = 100 
|sellPrice = 100
|consume =
|img = 
|grantfavor= 
|mood = 
|energy = 
}}

results in...

{{{Name}}}
PlainBubble209.png
Category: Resource
Max Stack Size: 20
Donation Favor: 5
Uses per item: 5
Details
Unlock: Level 1
Get Item: Harvest Bubble Tree
Growth Time: 3 mins
Vendors: Alchemical Goods Vendor
Purchase: 100 Currant
Sell Price: 100 Currant


Sample 2
When an item can be consumed use
{{Item Infobox
|image = [[File:PlainBubble209.png|200px]]
|name = {{PAGENAME}}
|category = Resource
|maxstack = 20
|favor = 5
|durability = 5 
|unlock = Level 1
|getItem = Harvest [[Bubble Tree]]
|growthTime = 3 mins
|vendor = [[Alchemical Goods Vendor]]
|purchasePrice = 100 
|sellPrice = 100
|consume = yes
|img = 5
|grantfavor= 10
|mood = 15
|energy = 20
}}

Which results in...

{{{Name}}}
PlainBubble209.png
Category: Resource
Max Stack Size: 20
Donation Favor: 5
Uses per item: 5
Details
Unlock: Level 1
Get Item: Harvest Bubble Tree
Growth Time: 3 mins
Vendors: Alchemical Goods Vendor
Purchase: 100 Currant
Sell Price: 100 Currant
When Consumed