Template:Ingredient: Difference between revisions
Appearance
0.010 T016: deploy 0.009 recipe and ingredient contract, 0.007 techniques, and template sandboxes (dbbad33) |
m Protected "Template:Ingredient": 0.010 T017: configuration page, deployed from version control ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
(No difference)
| |
Latest revision as of 19:28, 23 September 2026
This template defines the table "Ingredients". View table.
Ingredient record
One page per ingredient. Its page title is its Name. The infobox is the record; recipes link to it and the computed layer reads it for calories, allergens and substitutions.
{{Ingredient
|form=Unsalted, solid
|role=Fat · structure, flavor, creaming
|storage=Fridge, 1–3 months
|season=Year-round
|kcal100=717
|g_tsp=4.7 |g_tbsp=14.2 |g_cup=227 |g_each=
|allergens=dairy
|pantry=no
|price=4.49 |price_per=1 lb
|description=A paragraph or two about what this ingredient does in a kitchen and what can stand in for it.
}}
description is the preferred name for the visible description.
The existing summary name remains supported for existing pages and
forms. When both are supplied, description wins.
Then add substitution rules in a table using Template:Substitution. Grams per unit and kcal per 100 g drive every calculation; enter them from a source you trust and cite it in the summary.
Test any change at Template:Ingredient/testcases through Template:Ingredient/sandbox before deploying it.