QuteRecipe

5eTools recipe attributes (recipe2md.txt)

Extension of Tools5eQuteBase.

Attributes

books, equipment, fluffImages, getAliases, hasImages, hasMoreImages, hasSections, ingredients, instructions, labeledSource, makes, name, noteCook, reprintOf, serves, showAllImages, showMoreImages, showPortraitImage, source, sourceAndPage, sourcesWithFootnote, tags, text, time, vaultPath

books

List of source books using abbreviated name. Fantasy statblocks uses this list format, as an example.

equipment

Equipment list, rendered as a markdown bullet list with placeholders substituted. May be null.

fluffImages

List of images as ImageRef (optional)

getAliases

Aliases for this note, including the note name, as quoted/escaped strings.

Example values:

In templates:

aliases:
{#each resource.aliases}
- {it}
{/each}

hasImages

Return true if any images are present

hasMoreImages

Return true if more than one image is present

hasSections

True if the content (text) contains sections

ingredients

Ingredient list, rendered as a markdown bullet list with placeholders substituted.

instructions

Instructions for preparing the recipe.

labeledSource

Formatted string describing the content's source(s): _Source: <sources>_

makes

How much this recipe makes (exact or min-max count, with optional note), as formatted text. May be null.

name

Note name

noteCook

Cook's notes. May be empty.

reprintOf

List of content superceded by this note (as Reprinted)

serves

How many this recipe serves (exact or min-max count, with optional note), as formatted text. May be null.

showAllImages

Return embedded wikilinks for all images If there is more than one, they will be displayed in a gallery.

showMoreImages

Return embedded wikilinks for all but the first image If there is more than one, they will be displayed in a gallery.

showPortraitImage

Return an embedded wikilink to the first image Will have the "right" anchor tag.

source

String describing the content's source(s)

sourceAndPage

Book sources as list of SourceAndPage

sourcesWithFootnote

Get Sources as a footnote.

Calling this method will return an italicised string with the primary source followed by a footnote listing all other sources. Useful for types that tend to have many sources.

tags

Collected tags for inclusion in frontmatter

text

Formatted text. For most templates, this is the bulk of the content.

time

Lines describing time categories (e.g. total/cooking/preparation), each rendered as plain minutes.

vaultPath

Path to this note in the vault