Difference between revisions of "Template:Infobox Food"

From UnReal World Wiki
Jump to: navigation, search
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:400px;" align="right"
+
{| class="infobox" style="font-size:89%; width:300px; vertical-align:top; text-align:left;" align="right"
! colspan="2" style="background-color:#307B30; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
+
! colspan="3" style="background-color:#307B30; color:#ffffff; font-size:120%; padding:1em; text-align:center;" | {{{name|{{PAGENAME}}}}}
 
|- style="text-align:center;"
 
|- style="text-align:center;"
| colspan="2" style="padding:0.5em;" | [[{{{image|Image:{{PAGENAME}}.png}}}]]<br/>''{{{caption| }}}''
+
| colspan="3" style="padding:0.5em;" | [[{{{image|Image:{{PAGENAME}}.png}}}]]<br/>''{{{caption| }}}''
 
|-
 
|-
 
+
! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" | Basic Info
<!--Food Values-->
+
|- style="vertical-align:top; text-align:left;"
 
+
| '''Type:'''
! colspan="2" style="background-color:#307B30; color:#ffffff;" | Food Values
+
| {{{type}}}
 
|-
 
|-
| style="width:100px" | '''Fat'''
+
| '''Weight:'''
| {{{fat}}}
+
| {{{weight}}}
 +
|-
 +
| '''Source:'''
 +
| {{{source}}}
 +
|-
 +
| '''Base Spoil Time:'''
 +
| {{{spoilTime}}}
 +
|-
 +
{{#if: {{#ask: [[requires::{{PAGENAME}}]]}}
 +
| {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
 +
    | {{!}} colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}, and {{#ask: [[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
 +
      {{!}}-
 +
    | {{!}} '''Required By:'''
 +
      {{!}}  colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}
 +
      {{!}}-
 +
  }}
 +
| {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
 +
    | {{!}} '''Required By:'''
 +
      {{!}}  colspan=2 {{!}} {{#ask:[[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
 +
      {{!}}-
 +
  }}
 +
}}
 +
! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" | Nutrition
 
|-
 
|-
 
| '''Carb'''
 
| '''Carb'''
 
| {{{carb}}}
 
| {{{carb}}}
 +
|-
 +
|style="width:150px;"| '''Fat'''
 +
| {{{fat}}}
 
|-
 
|-
 
| '''Protein'''
 
| '''Protein'''
Line 20: Line 45:
 
| '''Water'''
 
| '''Water'''
 
| {{{water}}}
 
| {{{water}}}
|-
+
|-  
! colspan="3" style="background-color:#307B30; color:#ffffff;" | Other Data
+
{{#Ifeq: {{{type}}} | Mushroom 
|-
+
    | ! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" {{!}} Medicinal Info
{{#If: {{{growTime|}}}
+
      {{$}}
   | {{!}}'''Grow Time'''
+
      {{!}} Poisonous:
}}  
+
      {{!}} {{{Poisonous}}}
{{#If: {{{sourceAnimal|}}}
+
      {{$}}
   | {{!}}'''Source Animal'''
+
      {{!}} Effects:
 +
      {{!}} {{{Effects}}}
 +
    | {{#Ifeq: {{{type}}} | Herb
 +
          | ! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" {{!}} Medicinal Info
 +
              {{$}}
 +
              {{!}} Poisonous:
 +
              {{!}} {{{poisonous}}}
 +
              {{$}}
 +
              {{!}} Effects:
 +
              {{!}} {{{effects}}}
 +
          |
 +
    }}
 +
}}
 +
{{#if: {{{ingredients|}}} |
 +
  ! colspan="3" style="background-color:#307B30; color:#ffffff; text-align:center;" {{!}} Recipe
 +
  {{$}} style="vertical-align:top;"
 +
   {{!}} '''Ingredients:'''
 +
  {{!}} {{{ingredients}}}
 +
  {{$}}
 +
  {{!}} '''Tools Required:'''
 +
  {{!}} {{{tools}}}
 +
   {{$}}
 +
  {{!}} '''Process:'''
 +
  {{!}} {{{process}}}
 +
  {{$}}
 +
  {{!}} '''Prepare Time:'''
 +
  {{!}} {{{prepareTime}}}
 +
  {{$}}
 +
  {{!}} '''Cook Time:'''
 +
  {{!}} {{{cookTime}}}
 +
  {{$}}
 +
  |
 
}}
 
}}
|{{#If: {{{growTime|}}}|{{{growTime}}} }} {{#If: {{{sourceAnimal|}}}|{{{sourceAnimal}}} }}
 
|-
 
| '''Growing Month'''
 
| {{{growMonth}}}
 
|-
 
| '''Found In'''
 
| {{{foundIn}}}
 
 
|}
 
|}

Revision as of 22:28, 22 September 2014

Infobox Food
Infobox Food.png
Basic Info
Type: {{{type}}}
Weight: {{{weight}}}
Source: {{{source}}}
Base Spoil Time: {{{spoilTime}}}
Nutrition
Carb {{{carb}}}
Fat {{{fat}}}
Protein {{{protein}}}
Water {{{water}}}