ImageRef
Create links to referenced images.
The general form of a markdown image link is: .
You can also use anchors to position the image within the page,
which creates links that look like this: .
Anchor Tags
PermalinkAnchor tags are used to position images within a page and are styled with CSS. Examples:
centercenters the image and constrains its height.galleryconstrains images within a gallery callout.portraitfloats an image to the right.symbolfloats Deity symbols to the right.tokenis a smaller image, also floated to the right. Used in statblocks.
Attributes
PermalinkembeddedLink, shortTitle, title, vaultPath
embeddedLink
PermalinkReturn an embedded markdown link to the image, using an optional
anchor tag to position the image in the page.
For example: {resource.image.getEmbeddedLink("symbol")}
If the title is longer than 50 characters:
,
If the title is 50 characters or less:
,
Links will be generated using "center" as the anchor by default.
shortTitle
PermalinkA shortened image title (max 50 characters) for use in markdown links.
title
PermalinkDescriptive title (or caption) for the image. This can be long.
vaultPath
PermalinkPath of the image in the vault or url for external images.