Difference between revisions of "Template:Food Infobox"

From Glitch Forever
Jump to navigation Jump to search
(New template)
 
 
(13 intermediate revisions by one other user not shown)
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>}}<!--
+
|image1 = {{{image|{{{image1}}}}}}
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]]
 +
|header6 = When Consumed
 +
|label7 = Grants
 +
|data7 = [[{{{buff}}}]]
 +
|label8 = Energy Gained
 +
|data8 = {{{energy}}}
  
}} }}<!--
 
Image1
 
-->{{#if:{{{image|{{{image|}}}}}}|{{Infobox/row
 
|data={{{image|{{{image}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="font-size:80%;">
 
}} }}
 
<!--
 
-->{{Infobox/row
 
|label={{{Max Stack Size:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data={{{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={{{Street Price:|}}}  |labelstyle={{{style="text-align:left;"}}}
 
|data={{{data4|}}} 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>
+
<noinclude>
{{documentation}}
+
To use:
 +
<pre style="float:left;">
 +
{{Food_Infobox
 +
|title = {{PAGENAME}}
 +
|image1=
 +
|stack =
 +
|favor =
 +
|madeusing =
 +
|ingredients =
 +
|price =
 +
|buff =
 +
|energy =
 +
}}
 +
</pre>[[Category:Templates]][[Category:Infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:02, 6 May 2019

Food Infobox
{{{image1}}}
Max Stack Size {{{stack}}}
Favor when donated {{{favor}}}
Made Using [[{{{madeusing}}}]]
Ingredients {{{ingredients}}}
Street Price {{{price}}} currants
When Consumed
Grants [[{{{buff}}}]]
Energy Gained {{{energy}}}

To use:

{{Food_Infobox
|title = {{PAGENAME}}
|image1=
|stack = 
|favor = 
|madeusing = 
|ingredients =
|price = 
|buff = 
|energy = 
}}