# Encyclopedia Fact: Section title element for AI agents

> A reference page (generic encyclopedia layout): title over a hairline, the lead paragraph with links and the bold subject, and an "At a glance" facts box. The pen underlines the quoted line, then a ring draws round the one figure that matters.

Canonical page: https://agentframes.ai/elements/receipts/encyclopedia-fact/
Markdown: https://agentframes.ai/elements/receipts/encyclopedia-fact.md

## Overview

- Name: Encyclopedia Fact (`encyclopediaFact`), an element: one HyperFrames block per size
- Part of: the [Receipts](https://agentframes.ai/packs/receipts.md) pack (7 of 50). Available only through the All-access subscription.
- Category: Section title
- Purpose: A reference page (generic encyclopedia layout): title over a hairline, the lead paragraph with links and the bold subject, and an "At a glance" facts box. The pen underlines the quoted line, then a ring draws round the one figure that matters.
- Pack: [Receipts](https://agentframes.ai/packs/receipts.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Ember (graphite desk, red-orange pen) (`ember`), Ink (midnight desk, blue pen) (`ink`), Marker (warm stone desk, yellow highlighter) (`marker`); avoid none
- Typical duration: 11.5s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/receipts/encyclopedia-fact.mp4
- Poster: https://agentframes.ai/media/receipts/encyclopedia-fact.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Receipts pack. Add a `encyclopediaFact` beat to plan.json on a `ember` canvas with slots `title`, `sub`, `text`, `factsTitle`, `facts`, `pick`, `url`, `date`, `cues` and `pace` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | title | {"type":"string","minLength":1,"maxLength":40} | Four-day week |
| `sub` | string | sub | {"type":"string","minLength":0,"maxLength":50} | From the encyclopedia |
| `text` | string | text | {"type":"string","minLength":20,"maxLength":600} | A **four-day week** is a working pattern in which staff work four days instead of five, usually for the {{same pay}}. In the most common model, [[people keep 100% of their pay for 80% of the time]], in return for keeping 100% of their output. Trials have run in {{several countries}} since the 2010s. |
| `factsTitle` | string | factsTitle | {"type":"string","minLength":0,"maxLength":24} | At a glance |
| `facts` | string | facts | JSON string. {"type":"array","maxItems":5,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":22},"value":{"type":"string","minLength":1,"maxLength":26}},"required":["label","value"]}} | [{"label":"Common model","value":"100 : 80 : 100"},{"label":"Typical trial","value":"6 months"},{"label":"Firms in pilot","value":"61"},{"label":"Kept it","value":"9 in 10"}] |
| `pick` | number | pick | {"type":"integer","minimum":0,"maximum":4} | 3 |
| `url` | string | url | {"type":"string","minLength":0,"maxLength":70} | encyclopedia.example/wiki/four-day-week |
| `date` | string | date | {"type":"string","minLength":0,"maxLength":24} | Mar 2026 |
| `cues` | string | cues | start time (s, from the scene start) of each [[quote]], in order; empty = spaced automatically. JSON string. {"type":"array","items":{"type":"number","minimum":0,"maximum":40},"maxItems":8} | [] |
| `pace` | number | pace | spoken words per second (default 2.4); each underlined word draws in its own 1/pace slot. {"type":"number","minimum":1,"maximum":6} | 2.4 |

## What your agent can change

**Encyclopedia Fact**. Native 1920×1080, 11.5s at 30fps.

A reference page (generic encyclopedia layout): title over a hairline, the lead paragraph with links and the bold subject, and an "At a glance" facts box. The pen underlines the quoted line, then a ring draws round the one figure that matters.

**Motion.** Window rises; the pen draws the quote; the hand-drawn ring loops round the picked fact (ease in-out); the facts box sits beside the text in 16:9 and below it in the other sizes.
**Why it moves.** attention: definition first, then the single number the narration hangs on.

### Mount

Copy every manifest file into your project (plus `af-receipts-runtime`). Mount with a unique host id, `data-composition-id="af-receipts-encyclopedia-fact-16x9"`,
`data-composition-src="compositions/af-receipts-encyclopedia-fact-16x9.html"`, `data-duration` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `title` (required): {"type":"string","minLength":1,"maxLength":40}
- `sub`: {"type":"string","minLength":0,"maxLength":50}
- `text` (required): {"type":"string","minLength":20,"maxLength":600}
- `factsTitle`: {"type":"string","minLength":0,"maxLength":24}
- `facts`: {"type":"array","maxItems":5,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":22},"value":{"type":"string","minLength":1,"maxLength":26}},"required":["label","value"]}}
- `pick`: {"type":"integer","minimum":0,"maximum":4}
- `url`: {"type":"string","minLength":0,"maxLength":70}
- `date`: {"type":"string","minLength":0,"maxLength":24}
- `cues`: start time (s, from the scene start) of each [[quote]], in order; empty = spaced automatically. {"type":"array","items":{"type":"number","minimum":0,"maximum":40},"maxItems":8}
- `pace`: spoken words per second (default 2.4); each underlined word draws in its own 1/pace slot. {"type":"number","minimum":1,"maximum":6}

- `facts` 0-5 rows; `pick` (0-based) rings one value after the underline.
- Markup: `**bold**` for the subject, `{{links}}`, `[[quote]]`.

Style: `colourway` (ember, ink, marker), `accent` (optional pen hex), `mark` (underline or highlight), `page` (paper, cream, night), `exit` (drop or cut), `duration` (seconds).

### Syncing to the narration

Give `cues` the second (from the scene start) at which the speaker starts each quote, and `pace` their speaking rate in
words per second; each quoted word then draws its stroke in its own 1/pace slot, so the line keeps time with the voice. Raise
`duration` (and the mount's `data-duration`) to fit long narration: every reveal must land by 60% of the scene, which leaves the rest
as a still, readable hold.

### Timing

11.5s by default. The window rises in the first 0.7 s, the reveals land by 60%, the lamp glow keeps breathing during the hold (text stays still), and with `exit: drop` the window sinks off the desk over the last 0.45 s.

### Example

```json
{
  "title": "Four-day week",
  "sub": "From the encyclopedia",
  "text": "A **four-day week** is a working pattern in which staff work four days instead of five, usually for the {{same pay}}. In the most common model, [[people keep 100% of their pay for 80% of the time]], in return for keeping 100% of their output. Trials have run in {{several countries}} since the 2010s.",
  "factsTitle": "At a glance",
  "facts": "[{\"label\":\"Common model\",\"value\":\"100 : 80 : 100\"},{\"label\":\"Typical trial\",\"value\":\"6 months\"},{\"label\":\"Firms in pilot\",\"value\":\"61\"},{\"label\":\"Kept it\",\"value\":\"9 in 10\"}]",
  "pick": 3,
  "url": "encyclopedia.example/wiki/four-day-week",
  "date": "Mar 2026",
  "cues": "[]",
  "pace": 2.4
}
```

## FAQ

### What can my AI agent change in Encyclopedia Fact?

Your agent fills the `title`, `sub`, `text`, `factsTitle`, `facts`, `pick`, `url`, `date`, `cues` and `pace` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Receipts look.

### Which aspect ratios does Encyclopedia Fact support?

Encyclopedia Fact is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 11.5s.

### How do I get Encyclopedia Fact?

Encyclopedia Fact is included in the Receipts pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Receipts

- [Headline Hit](https://agentframes.ai/elements/receipts/headline-hit.md): Opens a source: the outlet's masthead, the section, a big serif headline the pen sweeps under as it is read, the dek, the byline and the top of the lead image.
- [Article Quote](https://agentframes.ai/elements/receipts/article-quote.md): Signature device. The source passage, typeset in a browser window from the article's own words, with the pen drawing under each quoted run of words as the speaker reads it. The page follows the voice: if a quote is lower down, the page scrolls it up to the reading line.
- [Page Scroll](https://agentframes.ai/elements/receipts/page-scroll.md): A long page with two to four quotes far apart: the page scrolls from one to the next as each is read, a scroll thumb tracks the position, and every underline stays, so the receipts visibly come from one source.
- [Post Card](https://agentframes.ai/elements/receipts/post-card.md): A short social post rebuilt as a clean, generic card from the post's real text (no platform logos or layouts), with name, handle, an optional verified tick, time, views and counts. The pen underlines the quoted words as they are read.

## Community

Coming soon.
