Difference between revisions of "Template:Item Infobox"
Jump to navigation
Jump to search
(Ladyceres moved page Template:Item Infobox to Template:Tool Infobox) |
(testing template) |
||
Line 1: | Line 1: | ||
− | # | + | {| 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|}}} }} | ||
+ | |||
+ | |- | ||
+ | {{#if:{{{image<includeonly>|</includeonly>}}} | | ||
+ | {{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}<br /><span style="font-size:80%;"> | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{category<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Category''': | ||
+ | {{!}} {{{category}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{maxstack<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Max Stack Size''': | ||
+ | {{!}} {{{maxstack}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{favor<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Donation Favor''': | ||
+ | {{!}} {{{favor}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{durability<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Uses per item''': | ||
+ | {{!}} {{{durability}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | |- | ||
+ | ! colspan="2" style="background:#007a99; color:white;" | Details | ||
+ | |- | ||
+ | {{#if: {{{unlock<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Unlock''': | ||
+ | {{!}} {{{unlock}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{getItem<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Get Item''': | ||
+ | {{!}} {{{getItem}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{growthTime<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Growth Time''': | ||
+ | {{!}} {{{growthTime}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{vendor<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Vendors''': | ||
+ | {{!}} {{{vendor}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{purchasePrice<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Purchase''': | ||
+ | {{!}} {{{purchasePrice}}} {{C}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{sellPrice<includeonly>|</includeonly>}}} | | ||
+ | {{!}} style="text-align:left;" {{!}} '''Sell Price''': | ||
+ | {{!}} {{{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 | ||
+ | |||
+ | |||
+ | -->{{#if:{{{consume|}}}| | ||
+ | {{!}}- | ||
+ | ! 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]]''': | ||
+ | {{!}} {{{img}}} {{iMG}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{favor<includeonly>{{!}}</includeonly>}}} {{!}} | ||
+ | {{!}} style="text-align:left;" {{!}} '''[[Favor]]''': | ||
+ | {{!}} {{{1}}} with [[{{{2}}}]] | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{mood<includeonly>{{!}}</includeonly>}}} {{!}} | ||
+ | {{!}} style="text-align:left;" {{!}} '''[[Mood]]''': | ||
+ | {{!}} {{{mood}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{energy<includeonly>{{!}}</includeonly>}}} {{!}} | ||
+ | {{!}} style="text-align:left;" {{!}} '''[[Energy]]''': | ||
+ | {{!}} {{{energy}}} {{E}} | ||
+ | {{!}}- | ||
+ | }}<!-- end of if consume statement | ||
+ | |||
+ | -->|'''Not consumable'''}} | ||
+ | |- | ||
+ | |} | ||
+ | <includeonly></includeonly><noinclude>[[Category:Infobox|{{PAGENAME}}]]{{documentation}}</noinclude> |
Revision as of 03:32, 6 May 2019
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}}} | |
---|---|
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 |
Sell Price: | 100 |
- Sample 2
{{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}}} | |
---|---|
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 |
Sell Price: | 100 |
When Consumed |