# Document types

The value of type in a document's frontmatter, for each game Dunjii supports, and the sections each type suggests.

## How a document gets its type

A document's type decides the sections Dunjii suggests while you write, the filters it shows up under, and whether it prints as a page or as a card. A document takes its type from its own frontmatter. Without one, it takes the `defaultType` of the nearest folder above it that sets one. See [Folder settings](https://dunjii.com/docs/organizing/folder-settings.md).

```markdown
---
type: npc
---
# Eldric Vael
```

- `type: npc`: This document is an NPC, wherever it lives.

Which values are valid depends on the folder's `ruleset`. The suggested sections are suggestions: Dunjii never requires them. On your computer, `dunjii shape <type>` prints the full shape of a type, with what to write in each section.

## D&D 5e

The `5e-srd` ruleset.

| Type | Value | Suggested sections |
| --- | --- | --- |
| Ability | `ability` | Card Description |
| Card Sheet | `card-sheet` | None |
| Class | `class` | None |
| Coin Sheet | `coin-sheet` | None |
| Item | `item` | Card Description |
| NPC | `npc` | First Impression, Voice, Secrets |
| PC | `pc` | None |
| Rule | `rule` | Card Description |
| Scene | `scene` | Situation, Cast, Clues, Notes |
| Shop | `shop` | None |
| Species | `species` | Card Description |
| Spell | `spell` | Card Description |
| Subclass | `subclass` | None |

## Draw Steel

The `draw-steel` ruleset.

| Type | Value | Suggested sections |
| --- | --- | --- |
| Ability | `ability` | None |
| Card Sheet | `card-sheet` | None |
| Coin Sheet | `coin-sheet` | None |
| Condition | `condition` | None |
| Malice | `malice` | None |
| Monster | `monster` | None |
| Monster Family | `monster-family` | None |
| NPC | `npc` | First Impression, Voice, Secrets |
| PC | `pc` | None |
| Rule | `rule` | None |
| Scene | `scene` | Situation, Cast, Clues, Notes |
| Title | `title` | None |
| Treasure | `treasure` | None |

## Pathfinder 2E

The `pf2e` ruleset.

| Type | Value | Suggested sections |
| --- | --- | --- |
| Action | `action` | None |
| Card Sheet | `card-sheet` | None |
| Coin Sheet | `coin-sheet` | None |
| Condition | `condition` | None |
| Creature | `creature` | None |
| Feat | `feat` | None |
| Hazard | `hazard` | None |
| Item | `item` | None |
| Item Family | `item-family` | None |
| NPC | `npc` | First Impression, Voice, Secrets |
| PC | `pc` | None |
| Rule | `rule` | None |
| Scene | `scene` | Situation, Cast, Clues, Notes |
| Spell | `spell` | None |
