Pf2eTools Ability attributes (ability2md.txt
or inline-ability2md.txt
).
Abilities are rendered both standalone and inline (as an admonition block). The default template can render both. It contains some special syntax to handle the inline case.
Use %%--
to mark the end of the preamble (frontmatter and other leading content only appropriate to the standalone case).
Extension of Pf2eQuteNote
activity, bareTraitList, components, cost, embedded, frequency, hasActivity, hasAttributes, hasDetails, hasEffect, hasSections, labeledSource, name, note, requirements, source, sourceAndPage, special, tags, text, traitList, traits, trigger, vaultPath
Ability (activity/activation details)
Return a comma-separated list of de-styled trait links (no title attributes)
Formatted string. Components required to activate this ability (embedded/inline only)
The cost of using this ability
True if this ability is embedded in another note (admonition block). When this is true, the inline-ability
template is used.
How often this ability can be used/activated
True if an activity (with text), components, or traits are present.
True if hasActivity is true, hasEffect is true or cost is present. In other words, this is true if a list of attributes could have been rendered. Use this to test for the end of those attributes (add whitespace or a special character ahead of ability text)
True if getHasAttributes is true or special is present. In other words, this is true if there is more than just a name and text. Use this to test to choose between a detailed or simple rendering.
True if frequency, trigger, and requirements are present. In other words, this is true if the ability has an effect.
True if the content (text) contains sections
Formatted string describing the content's source(s): _Source: <sources>_
Note name
Caveats related to using this ability (embedded/inline only)
Formatted string. Requirements for activating this ability
String describing the content's source(s)
Book sources as list of SourceAndPage
Special characteristics of this ability (embedded/inline only)
Collected tags for inclusion in frontmatter
Formatted text. For most templates, this is the bulk of the content.
Return a comma-separated list of trait links
Collection of trait links. Use {#for}
or {#each}
to iterate over the collection. See traitList or bareTraitList.
Formatted string. Trigger to activate this ability
Path to this note in the vault