You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Obsidian/00.01 Admin/Templates/🧑🏼‍🍳 Template Recipe.md

1.8 KiB

ServingSize cssclass Alias Tag Date DocType Hierarchy location CollapseMetaTable Meta Recipe Ingredients
recipeTable
<% tp.date.now("YYYY-MM-DD") %> Recipe NonRoot true
IsFavourite Rating
False
Courses Categories Collections Source PreparationTime CookingTime OServingSize

Parent::


name Edit Recipe parameters
type command
action MetaEdit: Run MetaEdit
id EditMetaData

^button-<% tp.file.title %>Edit

name Save
type command
action Save current file
id Save

^button-<% tp.file.title %>NSave

<% tp.file.title %>

style: number


🗒 Practical Informations

list without id
 "<table><tbody><tr><td><a class=heading>🍽 Courses</a></td>"
 +
 "<td><span style='color: var(--footnote);'>" + this.Recipe.Courses + "</span></td></tr>"
+
 "<tr><td><a class=heading>🥘 Categories</a></td>"
 +
 "<td><span style='color: var(--footnote);'>" + this.Recipe.Categories + "</span></td></tr>"
 +
 "<tr><td><a class=heading>📚 Collections</a></td>"
 +
 "<td><span style='color: var(--footnote);'>" + this.Recipe.Collections + "</span></td></tr>"
 +
 "<tr><td><a class=heading>👨‍👨‍👧‍👦 Serving size</a></td>"
 +
 "<td><span style='color: var(--footnote);'>" + this.ServingSize + "</span></td></tr>"
 +
 "<tr><td><a class=heading>⏲ Cooking time</a></td>"
 +
 "<td><span style='color: var(--footnote);'>" + this.Recipe.CookingTime + " min</span></td></tr></tbody></table>"
FROM "03.03 Food & Wine/<% tp.file.title %>"


🧫 Ingredients

dv.view("00.01 Admin/dv-views/query_ingredient", {ingredients: dv.current().Ingredients, originalportioncount: dv.current().Recipe.OServingSize})


🔀 Instructions