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

118 lines
1.8 KiB

---
ServingSize:
cssclass: recipeTable
Alias: []
Tag: []
Date: <% tp.date.now("YYYY-MM-DD") %>
DocType: "Recipe"
Hierarchy: "NonRoot"
location:
CollapseMetaTable: true
Meta:
IsFavourite: False
Rating:
Recipe:
Courses:
Categories:
Collections:
Source:
PreparationTime:
CookingTime:
OServingSize:
Ingredients:
-
---
Parent::
---
&emsp;
```button
name Edit Recipe parameters
type command
action MetaEdit: Run MetaEdit
id EditMetaData
```
^button-<% tp.file.title %>Edit
```button
name Save
type command
action Save current file
id Save
```
^button-<% tp.file.title %>NSave
&emsp;
# <% tp.file.title %>
&emsp;
```toc
style: number
```
&emsp;
---
&emsp;
### 🗒 Practical Informations
```dataview
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 %>"
```
&emsp;
---
&emsp;
### 🧫 Ingredients
&emsp;
```dataviewjs
dv.view("00.01 Admin/dv-views/query_ingredient", {ingredients: dv.current().Ingredients, originalportioncount: dv.current().Recipe.OServingSize})
```
&emsp;
---
&emsp;
### 🔀 Instructions
&emsp;