Difference between revisions of "Template:Item Infobox"

From Glitch Forever
Jump to navigation Jump to search
(testing template)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{| class="infobox" style="font-size:89%; width:300px;" align="right"
 
{| class="infobox" style="font-size:89%; width:300px;" align="right"
 
|-
 
|-
! colspan="2" style="background:#005C73; color:white; !important; font-size:150%; padding:0.25em;" | {{{Name}}} <br> {{#if: {{{Name|}}} }}
+
! colspan="2" style="background:#005C73; color:white; !important; font-size:150%; padding:0.25em;" | {{{name}}} <br> {{#if: {{{name|}}} }}
  
 
|-
 
|-
Line 60: Line 60:
 
{{!}} {{{sellPrice}}} {{C}}
 
{{!}} {{{sellPrice}}} {{C}}
 
{{!}}-
 
{{!}}-
}} <!-- If statement to add details for items that are consumable below. If this left blank, it will post "Not Consumable" and nothing else
+
}}  
 
+
|-
 
+
!  colspan="2" style="font-family:'VAG Rounded','Arial Rounded MT Bold',sans-serif; font-size:110%; text-align:center;" |{{#if:{{{consume|}}}| When Consumed |'''Not Consumable'''}}
-->{{#if:{{{consume|}}}|
+
|-
{{!}}-
+
{{#if: {{{img<includeonly>|</includeonly>}}} |
!  colspan="2" style="font-family:'VAG Rounded','Arial Rounded MT Bold',sans-serif; font-size:110%; text-align:center;" {{!}} When Consumed <br />
 
{{!}}-
 
{{#if: {{{img<includeonly>{{!}}</includeonly>}}} {{!}}
 
 
{{!}} style="text-align:left;" {{!}} '''[[iMG]]''':  
 
{{!}} style="text-align:left;" {{!}} '''[[iMG]]''':  
 
{{!}} {{{img}}} {{iMG}}
 
{{!}} {{{img}}} {{iMG}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{favor<includeonly>{{!}}</includeonly>}}} {{!}}
+
|-
{{!}} style="text-align:left;" {{!}} '''[[Favor]]''':  
+
{{#if: {{{grantfavor<includeonly>|</includeonly>}}} |
{{!}} {{{1}}} with [[{{{2}}}]]
+
{{!}} style="text-align:left;" {{!}} '''[[Favor]] Bonus''':  
 +
{{!}} {{{grantfavor}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{mood<includeonly>{{!}}</includeonly>}}} {{!}}
+
|-
 +
{{#if: {{{mood<includeonly>|</includeonly>}}} |
 
{{!}} style="text-align:left;" {{!}} '''[[Mood]]''':
 
{{!}} style="text-align:left;" {{!}} '''[[Mood]]''':
 
{{!}} {{{mood}}}
 
{{!}} {{{mood}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{energy<includeonly>{{!}}</includeonly>}}} {{!}}
+
{{#if: {{{energy<includeonly>|</includeonly>}}} |
 
{{!}} style="text-align:left;" {{!}} '''[[Energy]]''':  
 
{{!}} style="text-align:left;" {{!}} '''[[Energy]]''':  
 
{{!}} {{{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>

Latest revision as of 21:38, 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
Not Consumable
iMG: {{{img}}} iMG
Favor Bonus: {{{grantfavor}}}
Mood: {{{mood}}}
Energy: {{{energy}}} Energy
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...

Item Infobox
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
Not Consumable


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...

Item Infobox
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
iMG: 5 iMG
Favor Bonus: 10
Mood: 15
Energy: 20 Energy