Template:Infobox Food
The template only requires a single entry for weight (as weight is unaffected by quality) and ★ (lowest quality) scrap value of the item. The template will automatically calculate ★★ and ★★★ scrap values of the item.
This is a merged infobox for foods and meals, only include the relevant parameters (eg, meals aren't included in other meals, so there's no need to add the Rank#Items parameters)
Template Syntax
{{Infobox Food | ItemName = Food Name | Image = Image Filename | Description = Game description for the item | Type = Type of the food (crops, meat, meals etc) - Used for auto-categories | Weight = Weight / Storage (Number) | Value = Scrap Value (Number) | Sustenance = Sustenance value (number) | Rations = Ration value (number) | Tier = Tier (number) | Portions = Portions (number) | Ingredients = (Mutually exclusive with Sources parameter, used only for craftable meals) Qty [[Item Link|Item Name]] {{Icon|Quality1}}<br/> Qty [[Item Link|Item Name]] {{Icon|Quality1}}<br/> Qty [[Item Link|Item Name]] {{Icon|Quality1}}<br/> | Sources = (Mutually exclusive with Ingredients parameter, used only for food crop/meat) [[Source Link|Source Name]]<br/> [[Source Link|Source Name]]<br/> | Rank1Items = [[Item Link|Item Name]]<br/> [[Item Link|Item Name]]<br/> [[Item Link|Item Name]]<br/> | Rank2Items = [[Item Link|Item Name]]<br/> [[Item Link|Item Name]]<br/> [[Item Link|Item Name]]<br/> | Rank3Items = [[Item Link|Item Name]]<br/> [[Item Link|Item Name]]<br/> [[Item Link|Item Name]]<br/> }}
Template call example
Template Call Example (Raw Food) | Template Call Example (Meals) |
---|---|
{{Infobox Food | ItemName = Meat | Image = ItemMeatMeat.webp | Description = The flesh of an animal. | Type = Meat | Weight = 2.5 | Value = 5.0 | Sustenance = - | Rations = - | Sources = [[Object/Snare Trap|Rabbit (Snare Trap)]]<br/> [[Object/Deer Stand|Deer (Deer Stand)]]<br/> [[Expeditions/Hunting|Hunting]]<br/> [[Animals/Bear|Bear]]<br/> [[Animals/Wolf|Wolf]] | Rank1Items = [[Meals/Cooked Meat|Cooked Meat]]<br/> [[Meals/Meat Stew|Meat Stew]] | Rank2Items = [[Meals/Chilli Con Carne|Chilli Con Carne]]<br/> [[Meals/Cottage Pie|Cottage Pie]]<br/> [[Meals/Curry|Curry]] | Rank3Items = [[Meals/Glazed Chops and Vegetables|Glazed Chops and Vegetables]]<br/> [[Meals/Jambalaya|Jambalaya]]<br/> [[Meals/Steak Dinner|Steak Dinner]] }} |
{{Infobox Food | ItemName = Broccoli Soup | Image = ItemMealsBroccoliSoup.webp | Description = [[Crops/Broccoli|Broccoli]] which has been cut up, boiled and reduced down to create a delicious broccoli soup. | Type = Meal | Weight = 1 | Value = 2.5 | Sustenance = 35 | Rations = 11 | Tier = 1 | Portions = 1 | Ingredients = 2x [[Crops/Broccoli|Broccoli]] {{Icon|Quality1}}<br/> 1x [[Consumables/Water|Water]] {{Icon|Quality1}} }} |
|
|
Infobox for edible food items and primary ingredients
Parameter | Description | Type | Status | |
---|---|---|---|---|
ItemName | ItemName | Name of the item
| String | required |
Image | Image | Image file for the item
| File | suggested |
ImageCaption | ImageCaption | Image caption (if any) | String | optional |
Description | Description | In-game description for the item
| String | suggested |
Tier | Tier | Object tier
| Number | required |
Portions | Portions | Portions made by recipe
| Number | required |
Function | Function | Any special function or other information
| String | suggested |
Ingredients | Ingredients | List of ingredients used to craft this food item (mutually exclusive with Sources)
| String | suggested |
Type | Type | Type of food item (crops, meat, meals etc) for category auto-generation
| String | suggested |
Weight | Weight | Weight of the item
| Number | required |
Value | Value | ★ value of this item
| Number | suggested |
Sustenance | Sustenance | Sustenance
| Number | suggested |
Rations | Rations | Travel rations value
| Number | suggested |
Sources | Sources | List of sources to get this food item (mutually exclusive with Ingredients)
| String | suggested |
Rank1Items | Rank1Items | List of items the ★ quality of this is used to craft
| String | suggested |
Rank1Objects | Rank1Objects | List of objects the ★ quality of this is used to craft
| String | suggested |
Rank2Items | Rank2Items | List of items crafted with the ★★ quality of this
| String | suggested |
Rank2Objects | Rank2Objects | List of objects the ★★ quality of this is used to craft
| String | suggested |
Rank3Items | Rank3Items | List of items crafted with the ★★★ quality of this
| String | suggested |
Rank3Objects | Rank3Objects | List of objects crafted with the ★★★ quality of this
| String | suggested |