Skip to content

Stats

Stats are a generic card components that can be used to display all kinds of data like:

  • Armor Class
  • Initiative
  • Spell Save DC
  • Or really anything you'd like

Rendered Example

Note that the example is two stat grids stacked on top of each other

Dynamic Content

Stats support dynamic content using template variables with {{ }} style templates. This allows creating badges with data from the frontmatter or even calculations based off abilities or skills. This is great for things like

  • Armor Class
  • Attack Bonus
  • Initiative

Using dynamic content helps keep your character sheet updated as you level up.

See the Dynamic Content page for more information on using templates.

Example

yaml
```stats
items:
  - label: Armor Class
    sublabel: Mage Armor (16)
    value: 13
  - label: Initiative
    value: '+{{ modifier abilities.dexterity }}'
  - label: Spell DC
    value: 14

grid:
  columns: 3
```

Configuration

PropertyTypeDescription
itemsArrayList of stat items to display
gridObjectGrid configuration options
denseBooleanRenders a denser card

Item Object

PropertyTypeDescription
labelStringThe main label for the stat
valueString/NumberThe value to display
sublabelStringOptional additional text below the value

Grid Object

PropertyTypeDefaultDescription
columnsNumber2Number of columns in the grid layout