Difference between revisions of "Template:Infobox Food"

From UnReal World Wiki
Jump to: navigation, search
 
(79 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px; vertical-align:top; text-align:left;" align="right"
+
{| class="infobox" align="right" style="width:300px;"
! colspan="3" style="background-color:#307B30; color:#ffffff; font-size:120%; padding:1em; text-align:center;" | {{{name|{{PAGENAME}}}}}
+
! class="namebox bgimage6" colspan="3" | <span class="textshadow">{{{name|{{PAGENAME}}}}}</span>
 
|- style="text-align:center;"
 
|- style="text-align:center;"
| colspan="3" style="padding:0.5em;" | [[{{{image|Image:{{PAGENAME}}.png}}}]]<br/>''{{{caption| }}}''
+
| class="imagebox"  colspan="3" style="padding:0.5em" | [[{{{image|Image:{{PAGENAME}}.png}}}|300x100px]]<br/>''{{{caption| }}}''
 
|-
 
|-
! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" | Basic Info
+
! class="sectionbox" colspan="3"| Basic Info
 
|- style="vertical-align:top; text-align:left;"
 
|- style="vertical-align:top; text-align:left;"
 
| '''Type:'''
 
| '''Type:'''
| {{{type}}}
+
| '''{{{type}}}'''
 
|-
 
|-
 
| '''Weight:'''
 
| '''Weight:'''
| {{{weight}}}
+
| '''{{{weight}}}'''
 
|-
 
|-
 
| '''Source:'''
 
| '''Source:'''
| {{{source}}}
+
| '''{{{source}}}'''
 
|-
 
|-
| '''Base Spoil Time:'''
+
| '''Trade Value:'''
| {{{spoilTime}}}
+
| '''{{{value}}}'''
 
|-
 
|-
 +
| '''Spoil Time:'''
 +
| '''{{{spoilTime}}}'''
 +
|-
 +
| '''Must Cook:'''
 +
| '''{{{mustCook}}}'''
 +
|-
 
{{#if: {{#ask: [[requires::{{PAGENAME}}]]}}  
 
{{#if: {{#ask: [[requires::{{PAGENAME}}]]}}  
 
  | {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
 
  | {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
     | {{!}} colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}, and {{#ask: [[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
+
     | {{!}} colspan=2 {{!}} '''{{#ask: [[requires::{{PAGENAME}}]]}}, and {{#ask: [[requires::{{#show: {{PAGENAME}}''' | ?specific | link=none}}]]}}
 
       {{!}}-
 
       {{!}}-
 
     | {{!}} '''Required By:'''
 
     | {{!}} '''Required By:'''
       {{!}}  colspan=2 {{!}} {{#ask: [[requires::{{PAGENAME}}]]}}
+
       {{!}}  colspan=2 {{!}} '''{{#ask: [[requires::{{PAGENAME}}]]}}'''
 
       {{!}}-
 
       {{!}}-
 
   }}
 
   }}
 
  | {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
 
  | {{#if: {{#show: {{PAGENAME}} | ?specific | link=none}}
 
     | {{!}} '''Required By:'''
 
     | {{!}} '''Required By:'''
       {{!}}  colspan=2 {{!}} {{#ask:[[requires::{{#show: {{PAGENAME}} | ?specific | link=none}}]]}}
+
       {{!}}  colspan=2 {{!}} '''{{#ask:[[requires::{{#show: {{PAGENAME}}''' | ?specific | link=none}}]]}}
 
       {{!}}-
 
       {{!}}-
 
   }}
 
   }}
 
}}
 
}}
! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" | Nutrition
+
! class="sectionbox" colspan="3" | Nutrition
 
|-
 
|-
 
| '''Carb'''
 
| '''Carb'''
| {{{carb}}}
+
| '''{{{carb}}}'''
 
|-
 
|-
 
|style="width:150px;"| '''Fat'''
 
|style="width:150px;"| '''Fat'''
| {{{fat}}}
+
| '''{{{fat}}}'''
 
|-
 
|-
 
| '''Protein'''
 
| '''Protein'''
| {{{protein}}}
+
| '''{{{protein}}}'''
 
|-
 
|-
 
| '''Water'''
 
| '''Water'''
| {{{water}}}
+
| '''{{{water}}}'''
 
|-  
 
|-  
{{#Ifeq: {{{type|}}} | Mushroom
+
|
     | ! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" {{!}} Medicinal Info
+
| style="text-align:right;" |<small>[[Nutrition|more on nutrition]]</small>
 +
|-
 +
{{#Ifeq: {{{type}}} | [[:Category:Mushroom{{!}}Mushroom]]
 +
     | ! class="sectionbox" colspan="3"{{!}} Medicinal Info
 
       {{$}}
 
       {{$}}
       {{!}} Poisonous:  
+
       {{!}} '''Poisonous:'''
       {{!}} {{{Poisonous}}}
+
       {{!}} '''{{{poisonous}}}'''
 
       {{$}}
 
       {{$}}
       {{!}} Effects:
+
       {{!}} '''Effects:'''
       {{!}} {{{Effects}}}
+
       {{!}} '''{{{effectRaw}}}'''
     | {{#Ifeq: {{{type}}} | Herb
+
     | {{#Ifeq: {{{type}}} | [[:Category:Flower{{!}}Flower]]
           |  ! colspan="3" style="background-color:#307B30; color:#ffffff; vertical-align:top; text-align:center;" {{!}} Medicinal Info
+
           |  ! class="sectionbox" colspan="3" {{!}} '''Medicinal Info'''
 
               {{$}}
 
               {{$}}
               {{!}} Poisonous:  
+
               {{!}} '''Poisonous:'''
               {{!}} {{{poisonous}}}
+
               {{!}} '''{{{poisonous}}}'''
 
               {{$}}
 
               {{$}}
               {{!}} Effects Raw:
+
               {{!}} '''Effects Raw:'''
               {{!}} {{{effects}}}
+
               {{!}} '''{{{effectRaw}}}'''
 
               {{$}}
 
               {{$}}
               {{!}} Effects Boiled:
+
               {{!}} '''Effects Boiled:'''
               {{!}} {{{effectsBoiled}}}
+
               {{!}} '''{{{effectsBoiled}}}'''
           |
+
              {{$}}
 +
              {{!}} '''Effects Topical:'''
 +
              {{!}} '''{{{effectsTopical}}}'''
 +
           | {{#Ifeq: {{{type}}} | [[:Category:Root{{!}}Root]]
 +
          | ! class="sectionbox" colspan="3" {{!}} '''Medicinal Info'''
 +
              {{$}}
 +
              {{!}} '''Poisonous:'''
 +
              {{!}} '''{{{poisonous}}}'''
 +
              {{$}}
 +
              {{!}} '''Effects Raw:'''
 +
              {{!}} '''{{{effectRaw}}}'''
 +
              {{$}}
 +
              {{!}} '''Effects Boiled:'''
 +
              {{!}} '''{{{effectsBoiled}}}'''
 +
              {{$}}
 +
              {{!}} '''Effects Topical:'''
 +
              {{!}} '''{{{effectsTopical}}}'''
 +
          |  {{#Ifeq: {{{type}}} | [[:Category:Leaf{{!}}Leaf]]
 +
          |  ! class="sectionbox" colspan="3"{{!}} '''Medicinal Info'''
 +
              {{$}}
 +
              {{!}} '''Poisonous:'''
 +
              {{!}} '''{{{poisonous}}}'''
 +
              {{$}}
 +
              {{!}} '''Effects Raw:'''
 +
              {{!}} '''{{{effectRaw}}}'''
 +
              {{$}}
 +
              {{!}} '''Effects Boiled:'''
 +
              {{!}} '''{{{effectsBoiled}}}'''
 +
              {{$}}
 +
              {{!}} '''Effects Topical:'''
 +
              {{!}} '''{{{effectsTopical}}}'''
 +
          | 
 +
          }}
 +
          }}
 
     }}
 
     }}
 
}}
 
}}
 
{{#if: {{{ingredients|}}} |
 
{{#if: {{{ingredients|}}} |
   ! colspan="3" style="background-color:#307B30; color:#ffffff; text-align:center;" {{!}} Recipe
+
   ! class="sectionbox" colspan="3" {{!}} Recipe
 
   {{$}} style="vertical-align:top;"
 
   {{$}} style="vertical-align:top;"
 
   {{!}} '''Ingredients:'''
 
   {{!}} '''Ingredients:'''
   {{!}} {{{ingredients}}}
+
   {{!}} '''{{{ingredients}}}'''
 
   {{$}}  
 
   {{$}}  
 
   {{!}} '''Tools Required:'''
 
   {{!}} '''Tools Required:'''
   {{!}} {{{tools}}}
+
   {{!}} '''{{{tools}}}'''
 
   {{$}}
 
   {{$}}
 
   {{!}} '''Process:'''
 
   {{!}} '''Process:'''
   {{!}} {{{process}}}
+
   {{!}} '''{{{process}}}'''
 
   {{$}}
 
   {{$}}
 
   {{!}} '''Prepare Time:'''
 
   {{!}} '''Prepare Time:'''
   {{!}} {{{prepareTime}}}
+
   {{!}} '''{{{prepareTime}}}'''
 
   {{$}}
 
   {{$}}
 
   {{!}} '''Cook Time:'''
 
   {{!}} '''Cook Time:'''
   {{!}} {{{cookTime}}}
+
   {{!}} '''{{{cookTime}}}'''
 
   {{$}}
 
   {{$}}
 
   |
 
   |
 
}}
 
}}
 
|}
 
|}
 +
 +
<includeonly>[[Category:Food]]
 +
{{#switch: {{{type}}}
 +
  | [[:Category:Mushroom{{!}}Mushroom]] = [[Category:Mushroom]]
 +
  | [[:Category:Flower{{!}}Flower]] = [[Category:Flower]]
 +
  | [[:Category:Root{{!}}Root]] = [[Category:Root]]
 +
  | [[:Category:Leaf{{!}}Leaf]] = [[Category:Leaf]]
 +
  | [[:Category:Berry{{!}}Berry]] = [[Category:Berry]]
 +
}}
 +
</includeonly>

Latest revision as of 06:44, 16 July 2016

Infobox Food
Infobox Food.png
Basic Info
Type: {{{type}}}
Weight: {{{weight}}}
Source: {{{source}}}
Trade Value: {{{value}}}
Spoil Time: {{{spoilTime}}}
Must Cook: {{{mustCook}}}
Nutrition
Carb {{{carb}}}
Fat {{{fat}}}
Protein {{{protein}}}
Water {{{water}}}
more on nutrition