Difference between revisions of "Template:Meal Comparison Row"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>{| class="wikitable sortable" |- ! Name !! data-sort-type=number | Market Value !! data-sort-type=number | Ingredient Count !! data-sort-type=number | Nutrients Req...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{| class="wikitable sortable"
+
<includeonly>
 
|-
 
|-
! Name !! data-sort-type=number | Market Value !! data-sort-type=number | Ingredient Count !! data-sort-type=number | Nutrients Required !! data-sort-type=number | Nutrient Yield !! data-sort-type=number | Nutrient Efficiency !! Taste !! data-sort-type=number | Work To Make
+
| {{DLC Icons|{{{1}}}}}   
{{Meal Comparison Row|Simple meal}}
+
| {{Icon Small|silver||{{Market Value | {{Q|{{{1}}}|Market Value Base}}}}}}
{{Meal Comparison Row|Fine meal}}
+
| {{#if: {{Q|{{{1}}}|Resource 3 Amount}}|3|{{#if: {{Q|{{{1}}}|Resource 2 Amount}}|2|{{#if: {{Q|{{{1}}}|Resource 1 Amount}}|1|''n/a''}}}}}}
{{Meal Comparison Row|Lavish meal}}
+
| {{#ifexpr:{{#vardefineecho: nutritionIn |{{#expr: {{Q|{{{1}}}|Resource 1 Amount|0}} + {{Q|{{{1}}}|Resource 2 Amount|0}}}}}}>0|{{#var:nutritionIn}}|''n/a''}}  
|}
+
| {{#vardefineecho: nutritionOut|{{#expr:{{Q|{{{1}}}|Nutrition}}*{{Q|{{{1}}}|Product Amount|1}}}}}}
</noinclude><includeonly>
+
| {{#ifexpr:{{#var:nutritionIn}}>0|{{%|{{#var:nutritionOut}}/{{#var:nutritionIn}}}}|''n/a''}}
|-
+
| {{Q|{{{1}}}|Taste}}  
| {{DLC Icons|{{{1}}}}}  || {{Icon Small|silver||{{Market Value | {{Q|{{{1}}}|Market Value Base}}}}}}
+
| {{#ifeq:{{{1}}}|Chocolate|data-sort-value="{{Q|Cocoa tree|Minimum Required Growing Skill}}" {{!}} Planting {{Q|Cocoa tree|Minimum Required Growing Skill}}|{{#if:{{Q|{{{1}}}|Skill 1}}| data-sort-value="{{Q|{{{1}}}|Skill 1 Level}}" {{!}} {{Q|{{{1}}}|Skill 1}} {{Q|{{{1}}}|Skill 1 Level}}{{#if: {{Q|{{{1}}}|Skill 2}}| + {{Q|{{{1}}}|Skill 2}} {{Q|{{{1}}}|Skill 2 Level}} }} | data-sort-value="0" {{!}} ''None''}}}}
| {{#if: {{Q|{{{1}}}|Resource 3 Amount}}|3|{{#if: {{Q|{{{1}}}|Resource 2 Amount}}|2|1}}}} || {{#vardefineecho: nutritionIn |{{#expr: {{Q|{{{1}}}|Resource 1 Amount}} + {{Q|{{{1}}}|Resource 2 Amount}} - 0}}}} || {{#vardefineecho: nutritionOut|{{Q|{{{1}}}|Nutrition}}}}|| {{%|{{#var:nutritionOut}}/{{#var:nutritionIn}}}} || {{Q|{{{1}}}|Taste}} || {{Ticks|{{Q|{{{1}}}|Work To Make}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
| {{#if:{{#vardefineecho:workToMake|{{Q|{{{1}}}|Work To Make}}}}|{{Ticks|{{#var:workToMake}}}}|''n/a''}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 08:18, 22 October 2023

Documentation icon Template documentation[view] [edit] [history] [purge]

Makes the rows for the table below:

Name Market Value Ingredient Count Nutrients Required Nutrient Yield Nutrient Efficiency Taste Skill Work To Make
Simple meal Silver 15 1 0.5 0.9 180% Simple None 300 ticks (5 secs)
Fine meal Silver 20 2 0.5 0.9 180% Fine Cooking 6 450 ticks (7.5 secs)
Lavish meal Silver 40 2 1 1 100% Lavish Cooking 8 800 ticks (13.33 secs)
Packaged survival meal Silver 24 2 0.6 0.9 150% Simple Cooking 8 450 ticks (7.5 secs)
Carnivore fine meal Silver 20 1 0.75 0.9 120% Fine Cooking 6 450 ticks (7.5 secs)
Carnivore lavish meal Silver 40 1 1.25 1 80% Lavish Cooking 8 800 ticks (13.33 secs)
Vegetarian fine meal Silver 20 1 0.75 0.9 120% Fine Cooking 6 450 ticks (7.5 secs)
Vegetarian lavish meal Silver 40 1 1.25 1 80% Lavish Cooking 8 800 ticks (13.33 secs)
Nutrient paste meal Silver 10 1 0.3 0.9 300% Awful None ticks (0 secs)
Pemmican Silver 1.4 2 0.5 0.8 160% Simple None 700 ticks (11.67 secs)
Kibble Silver 1.1 2 2 2.5 125% Raw None 450 ticks (7.5 secs)
Chocolate Silver 3 n/a n/a 0.1 n/a Fine Planting 8 n/a
Baby food Content added by the Biotech DLC Silver 1.25 1 0.25 0.5 200% Terrible None 450 ticks (7.5 secs)