Files
Miranda Limonczenko 6c1a220c28 docs: add the reference template to the style guide (#54454)
Closes DOCS-1612

## Problem

Lookup pages, such as a table of limits or a list of error codes, have
no template, so they vary widely. Some put 81 codes in tables with no
anchors, and others list every code in the table of contents.

## Solution

- Add `templates/reference.md`. It covers the intro, choosing a table or
headings, grouping many entries, notes, and a required Related resources
section, with one full example cut down from Realtime limits.
- Require a lead-in sentence before every list and table in
`02-elements.md`.
- Add the reference row to the template router, a title rule for
reference pages, and a Reference entry in the write-the-docs
content-type gate.

## Preview links

The style guide isn't served on the docs site, so these link to the
rendered files on the branch.

| File | Preview |
| --- | --- |
| Reference template |
[`templates/reference.md`](https://github.com/supabase/supabase/blob/docs/reference-template/apps/docs/style-guide/templates/reference.md)
|
| Lead-in rule |
[`02-elements.md`](https://github.com/supabase/supabase/blob/docs/reference-template/apps/docs/style-guide/02-elements.md#introduce-every-list-with-a-lead-in-sentence)
|
| Template router |
[`03-page-structure.md`](https://github.com/supabase/supabase/blob/docs/reference-template/apps/docs/style-guide/03-page-structure.md#choose-a-template)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [x] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open the reference template preview and read it top to bottom.
2. Compare its example with the [Realtime limits page in
#54484](https://docs-git-docs-reference-rework-supabase.vercel.app/docs/guides/realtime/limits),
which follows the template.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 14:45:07 -08:00
..