User:Veerserif/Sandbox/Food infobox: Difference between revisions
From Vintage Story Wiki
< User:Veerserif | Sandbox
m (ce) |
(seeing if i can get lcfirst: working) |
||
Line 5: | Line 5: | ||
{{User:Veerserif/Sandbox/Infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }} | {{User:Veerserif/Sandbox/Infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }} | ||
{{User:Veerserif/Sandbox/Infobox row|label=Edible|field={{ #if: {{{edible|}}} | {{{edible}}} | N/A }} }} | {{User:Veerserif/Sandbox/Infobox row|label=Edible|field={{ #if: {{{edible|}}} | {{{edible}}} | N/A }} }} | ||
{{User:Veerserif/Sandbox/Infobox row|label=Satiety|field={{ #if: {{{satiety|}}} | {{{satiety}}} {{#if: {{{category|}}}| | {{User:Veerserif/Sandbox/Infobox row|label=Satiety|field={{ #if: {{{satiety|}}} | {{{satiety}}} {{#if: {{{category|}}}| {{ll|Satiety|{{lcfirst:{{{category|}}}}}}} }} | N/A }} }} | ||
{{User:Veerserif/Sandbox/Infobox row|label=Ingredient|field={{ #if: {{{ingredient|}}} | Yes ({{{ingredient}}}) | No }} }} | {{User:Veerserif/Sandbox/Infobox row|label=Ingredient|field={{ #if: {{{ingredient|}}} | Yes ({{{ingredient}}}) | No }} }} | ||
{{User:Veerserif/Sandbox/Infobox row|label=Shelf life|field={{{FreshTime|}}}, turns into {{#if:{{{TransitionRatio|}}} |{{{TransitionRatio|}}}x}} {{#if: {{{TransitionOutput|}}} | {{{TransitionOutput}}}|[[rot]] }} {{#if: {{{TransitionTime|}}} | over {{{TransitionTime|}}} }} }} | {{User:Veerserif/Sandbox/Infobox row|label=Shelf life|field={{{FreshTime|}}}, turns into {{#if:{{{TransitionRatio|}}} |{{{TransitionRatio|}}}x}} {{#if: {{{TransitionOutput|}}} | {{{TransitionOutput}}}|[[rot]] }} {{#if: {{{TransitionTime|}}} | over {{{TransitionTime|}}} }} }} |
Revision as of 16:27, 30 August 2023
Food-specific infobox, and by "food" I mean "anything edible with or without processing". So as of 1.18.8 that includes honeycomb and cattail roots, but not, I don't know, sticks.
Parameters
Parameter | Type | Notes |
---|---|---|
stackable | number | Required. maximum stack size |
edible | string | Required. Whether or not the item is edible - I suggest the values "Raw", "Cooked (Firepit)", "Cooked (Meal)", "Cooked (Oven)" |
satiety | number | Required. Satiety number |
category | string | Only displays if satiety exists. Satiety category - vegetable, protein, dairy, fruit
|
ingredient | string | What the food can be used to make - meals, pies, soup, etc. |
FreshTime | string | Required. Shelf life of the item |
TransitionRatio | number | Optional. Ratio of transition (i.e. a TransitionRatio of 0.5 means "0.5 of the stack of the original item becomes the TransitionOutput after TransitionTime") |
TransitionOutput | string | Optional. Output of transition - defaults to "rot" |
TransitionTime | string | Optional. Time taken, after FreshTime expires, for the item to fully transition into TransitionOutput. |