Jump to content

Template:Recipe: Difference between revisions

From Recipedius
Recipedius seed
 
m Protected "Template:Recipe": 0.010 T017: configuration page, deployed from version control ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
{{#cargo_attach:_table=RecipeIngredients}}
{{#cargo_attach:_table=RecipeIngredients}}
== Recipe ==
== Recipe ==
One page per recipe. Ingredient lines are written one per line as <code>Ingredient; quantity; unit; role; preparation</code>. The ingredient must match the name of an [[:Category:Ingredients|ingredient record]]; the role is the job it does here and decides which substitution rules apply.
One page per recipe. The reader-facing sections are Description, Ingredients,
and Instructions. Ingredient lines are written one per line as
<code>page title; quantity; unit; role; preparation</code>. The page title can
name an [[:Category:Ingredients|ingredient record]] or another Recipe, such as
<code>Simple syrup</code>. Every title is an internal wiki link; a red link is
valid while the target is being created. Only Ingredient records participate in
nutrition and substitution calculations.


<pre>
<pre>
Line 21: Line 27:
|tags=dessert, baking, cookie
|tags=dessert, baking, cookie
|contributor=Marta O.
|contributor=Marta O.
|lede=Three ingredients and a hot oven.
|description=Three ingredients and a hot oven.
|ingredients=
|ingredients=
Butter; 1; cup; creaming; softened
Butter; 1; cup; creaming; softened
Line 27: Line 33:
All-purpose flour; 2; cup; structure
All-purpose flour; 2; cup; structure
Kosher salt; 1/4; tsp; season
Kosher salt; 1/4; tsp; season
|method=
|instructions=
# Beat the butter and sugar until pale.
# Beat the butter and sugar until pale.
# Stir in the flour and salt.
# Stir in the flour and salt.
Line 33: Line 39:
}}
}}
</pre>
</pre>
<code>description</code> and <code>instructions</code> are the preferred
parameter names. The existing <code>lede</code> and <code>method</code> names
remain supported for existing pages and forms. When both are supplied, the
preferred name wins.
The computed <code>Substitutions for this recipe</code> section, when present,
is supplemental content after Instructions.
Units the calculator understands (quantities may be decimals, fractions like 1/2, or mixed like 1 1/2): <code>tsp</code>, <code>tbsp</code>, <code>cup</code>, <code>each</code>. Roles in use: creaming, melted, cutin, cooking, dressing, leaven, bind, liquid, sweet, structure, finish, juice, zest, aroma, season, inclusion, protein, starch, moisture, body, leaven-dry.
Units the calculator understands (quantities may be decimals, fractions like 1/2, or mixed like 1 1/2): <code>tsp</code>, <code>tbsp</code>, <code>cup</code>, <code>each</code>. Roles in use: creaming, melted, cutin, cooking, dressing, leaven, bind, liquid, sweet, structure, finish, juice, zest, aroma, season, inclusion, protein, starch, moisture, body, leaven-dry.
Test any change at [[Template:Recipe/testcases]] through [[Template:Recipe/sandbox]] before deploying it.
[[Category:Recipedius templates]]
[[Category:Recipedius templates]]
</noinclude><includeonly>{{#invoke:Recipedius|recipe}}</includeonly>
</noinclude><includeonly>{{#invoke:Recipedius|recipe}}</includeonly>

Latest revision as of 19:28, 23 September 2026

This template defines the table "Recipes". View table. This template adds rows to the table "RecipeIngredients", which is declared by the template RecipeIngredient. View table.

Recipe

One page per recipe. The reader-facing sections are Description, Ingredients, and Instructions. Ingredient lines are written one per line as page title; quantity; unit; role; preparation. The page title can name an ingredient record or another Recipe, such as Simple syrup. Every title is an internal wiki link; a red link is valid while the target is being created. Only Ingredient records participate in nutrition and substitution calculations.

{{Recipe
|serves=24
|time=50 min
|tags=dessert, baking, cookie
|contributor=Marta O.
|description=Three ingredients and a hot oven.
|ingredients=
Butter; 1; cup; creaming; softened
Granulated sugar; 1/2; cup; sweet
All-purpose flour; 2; cup; structure
Kosher salt; 1/4; tsp; season
|instructions=
# Beat the butter and sugar until pale.
# Stir in the flour and salt.
# Bake at 325°F for 30 minutes.
}}

description and instructions are the preferred parameter names. The existing lede and method names remain supported for existing pages and forms. When both are supplied, the preferred name wins.

The computed Substitutions for this recipe section, when present, is supplemental content after Instructions. Units the calculator understands (quantities may be decimals, fractions like 1/2, or mixed like 1 1/2): tsp, tbsp, cup, each. Roles in use: creaming, melted, cutin, cooking, dressing, leaven, bind, liquid, sweet, structure, finish, juice, zest, aroma, season, inclusion, protein, starch, moisture, body, leaven-dry. Test any change at Template:Recipe/testcases through Template:Recipe/sandbox before deploying it.