Difference between revisions of "Template:Food Infobox"

From Glitch Forever
Jump to navigation Jump to search
(WIP)
Line 1: Line 1:
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:22em; text-align:left; font-size:88%; line-height:1.5em; {{{bodystyle|}}}"><!--
+
{{Infobox
Caption
+
|title        = {{PAGENAME}}
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size:125%; font-weight:bold; {{{titlestyle|}}}">{{{title}}}</caption>}}<!--
+
|image =
Header
+
|label1 = Max Stack Size
-->{{#if:{{{above|}}}|{{Infobox/row
+
|data1 = {{stack}}
|header={{{above}}} |headerstyle=text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}
+
|label2 = Favor when donated
|class={{{aboveclass|}}} |rowclass={{{aboverowclass|}}}
+
|data2 = {{favor}}
}} }} }}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}
+
|label3 = Made Using
 +
|data3 = {{madeusing}}
 +
|label4 = Ingredients
 +
|data4 = {{ingredients}}
 +
|label5 = Street Price
 +
|data5 = {{price}} [[currants]]
 +
|header1 = When Consumed
 +
|label6 = Grants
 +
|data6 = {{buff}}
 +
|label7 = Energy Gained
 +
|data7 = {{energy}}
  
}} }}<!--
 
Image1
 
-->
 
{{#if:{{{image<includeonly>|</includeonly>}}} |
 
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}<br /><span style="font-size:80%;">
 
{{!}}-
 
 
}}
 
}}
|-
+
<noinclude>
{{#if: {{{stack<includeonly>|</includeonly>}}} |
+
Info to come
{{!}} style="text-align:left;" {{!}} '''Max Stack Size''':
 
{{!}} {{{stack}}}
 
{{!}}-
 
}}{{Infobox/row
 
|label={{{Favor when Donated:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data={{{favor|}}}   
 
}}{{Infobox/row
 
|label={{{Made From:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data=[[{{{tool|}}}]]   
 
}}{{Infobox/row
 
|label={{{Ingredients:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data={{{ingredients|}}}    |datastyle={{{datastyle|}}}
 
}}{{Infobox/row
 
|label={{{Street Price:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data={{{price|}}} currants    |datastyle={{{datastyle|}}}
 
}}{{Infobox/row
 
|header={{{When Consumed|}}} |headerstyle={{{style="text-align:center; font-weight:bold;"}}}
 
}}{{Infobox/row
 
|label={{{Grants:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data={{{grants|}}}   
 
}}{{Infobox/row
 
|label={{{Energy Gained:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data={{{energy|}}}    |datastyle={{{datastyle|}}}
 
}}
 
}}<noinclude>
 
{{documentation}}
 
 
</noinclude>
 
</noinclude>

Revision as of 20:28, 1 December 2017

Food Infobox
When Consumed
Favor when donated Template:Favor
Made Using Template:Madeusing
Ingredients
[[]]
[[]]
[[]]
[[]]
[[]]
[[]]
Street Price Template:Price currants
Grants Template:Buff
Energy Gained Template:Energy

Info to come