Jump to content

Template:Ingredient/testcases: Difference between revisions

From Recipedius
0.010 T016: deploy 0.009 recipe and ingredient contract, 0.007 techniques, and template sandboxes (dbbad33)
 
m Protected "Template:Ingredient/testcases": 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

Cases for Template:Ingredient/sandbox. Each one states what it is meant to show. Check them after any change to the ingredient template, and before that change is committed for deployment.

The sandbox does not write Cargo rows, so the "Used in" and "Can stand in for" sections below query against this page's title and will be empty. That is expected here and is not a failure.

Preferred parameter name

Ingredient/testcases
Form Unsalted, solid
Role Fat · structure, flavor
Storage Fridge, 1–3 months
Season Year-round
Allergens dairy
Pantry staple no
Price $4.49 / 1 lb
Nutrition
Per teaspoon 34 kcal
Per tablespoon 102 kcal
Per cup 1628 kcal · 227 g
Per 100 g 717 kcal
Approximate; enter values from a source you trust.

Description

Written with the preferred description name.

Find out more

Used in

No recipes use this yet.

Can stand in for

Nothing yet.


Must show the infobox, a Description section carrying that text, and a Find out more section with both search links. Per-teaspoon, per-tablespoon and per-cup calories must be computed; the Each row must not appear.

Legacy parameter name

Ingredient/testcases
Form Large, whole
Role Bind
Storage
Season
Allergens egg
Pantry staple no
Price —
Nutrition


Each 72 kcal · 50 g
Per 100 g 143 kcal
Approximate; enter values from a source you trust.

Description

Written with the legacy summary name.

Find out more

Used in

No recipes use this yet.

Can stand in for

Nothing yet.


Must render the description from summary, so existing pages and the Page Forms keep working. Only the Each row should appear in the nutrition block.

Preferred name wins over legacy

Ingredient/testcases
Form
Role
Storage
Season
Allergens none flagged
Pantry staple no
Price —
Nutrition



Per 100 g 100 kcal
Approximate; enter values from a source you trust.

Description

This preferred description must be the one shown.

Find out more

Used in

No recipes use this yet.

Can stand in for

Nothing yet.


No description

Ingredient/testcases
Form Fine, white
Role
Storage
Season
Allergens none flagged
Pantry staple no
Price —
Nutrition


Per cup 774 kcal · 200 g
Per 100 g 387 kcal
Approximate; enter values from a source you trust.

Description

No description yet.

Find out more

Used in

No recipes use this yet.

Can stand in for

Nothing yet.


The Description heading must still appear with its placeholder text, and the allergens row must read that none are flagged.

Multiword title encoding

The search links are built from Ingredient/testcases, which on this page is Ingredient/testcases. On a page such as All-purpose flour both links must carry the whole name as a single URL-encoded query value, so check them there as well as here.

Empty call

Ingredient/testcases
Form
Role
Storage
Season
Allergens none flagged
Pantry staple no
Price —
Nutrition



Per 100 g kcal
Approximate; enter values from a source you trust.

Description

No description yet.

Find out more

Used in

No recipes use this yet.

Can stand in for

Nothing yet.


Must not raise an error, and must not show calorie rows for units it has no weight for.