Template:Infobox Food

From Sheltered 2 Wiki
Jump to navigation Jump to search


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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
ItemNameItemName

Name of the item

Default
Unnamed Food
Example
Cooked Desperate Meat
Stringrequired
ImageImage

Image file for the item

Default
ItemMealsCookedDesperateMeat.webp
Example
ItemMealsCookedDesperateMeat.webp
Filesuggested
ImageCaptionImageCaption

Image caption (if any)

Stringoptional
DescriptionDescription

In-game description for the item

Default
Someone forgot to fill the description.
Example
This item is used to do things with stuff
Stringsuggested
TierTier

Object tier

Default
Nothing
Numberrequired
PortionsPortions

Portions made by recipe

Default
Nothing
Numberrequired
FunctionFunction

Any special function or other information

Default
Nothing
Stringsuggested
IngredientsIngredients

List of ingredients used to craft this food item (mutually exclusive with Sources)

Default
Nothing
Stringsuggested
TypeType

Type of food item (crops, meat, meals etc) for category auto-generation

Default
None
Stringsuggested
WeightWeight

Weight of the item

Default
0
Example
2, 4, 300 etc
Numberrequired
ValueValue

★ value of this item

Default
0
Example
1, 10, 100 etc
Numbersuggested
SustenanceSustenance

Sustenance

Example
10, 20, 50 etc
Numbersuggested
RationsRations

Travel rations value

Example
5, 10, 20 etc
Numbersuggested
SourcesSources

List of sources to get this food item (mutually exclusive with Ingredients)

Default
Nothing
Stringsuggested
Rank1ItemsRank1Items

List of items the ★ quality of this is used to craft

Default
Nothing
Stringsuggested
Rank1ObjectsRank1Objects

List of objects the ★ quality of this is used to craft

Default
Nothing
Stringsuggested
Rank2ItemsRank2Items

List of items crafted with the ★★ quality of this

Default
None
Stringsuggested
Rank2ObjectsRank2Objects

List of objects the ★★ quality of this is used to craft

Default
None
Stringsuggested
Rank3ItemsRank3Items

List of items crafted with the ★★★ quality of this

Default
Nothing
Stringsuggested
Rank3ObjectsRank3Objects

List of objects crafted with the ★★★ quality of this

Default
Nothing
Stringsuggested