Templates are pre-defined page structures. New pages start from a template; have predictable sections.
Done well, templates make wikis consistent. Done poorly, they're cargo-cult forms nobody fills in correctly.
Describes a thing.
# {{ConceptName}}
## What it is
[brief description]
## Why it matters
[context]
## How it works
[technical details]
## Examples
[concrete examples]
## See Also
[related pages]
For documentation wikis, this is the workhorse template.
Step-by-step guide for a specific task.
# How to {{Task}}
## Prerequisites
- [list]
## Steps
1. [step]
2. [step]
3. [step]
## Verification
[how to confirm it worked]
## Troubleshooting
[common issues]
Detailed technical reference.
# {{API}} Reference
## Overview
[summary]
## Parameters
[table or list]
## Returns
[description]
## Examples
[examples]
## Errors
[error conditions]
# ADR-{{number}}: {{title}}
## Status
[Proposed | Accepted | Deprecated]
## Context
[why this came up]
## Decision
[what we decided]
## Consequences
[implications]
# {{Meeting}} - {{Date}}
## Attendees
[list]
## Agenda
[items]
## Decisions
[items]
## Action Items
[owner: action]
# Runbook: {{Alert/Issue}}
## Symptoms
[how you know this is happening]
## Initial actions
[immediate response]
## Common causes
[list]
## Resolution
[per-cause fixes]
## Escalation
[when and to whom]
The template should match how the content actually wants to be structured. Don't force "How to" template onto a "Concept" page.
Not every section applies to every page. Templates should accommodate that — some sections are optional, marked as such.
Templates often include standard frontmatter:
---
title: ...
type: concept | howto | reference | adr | meeting | runbook
status: draft | published
last_reviewed: YYYY-MM-DD
---
Frontmatter type field enables filtering, indexing, sorting.
Show what each section should look like. Example fills the template; users replace with their content.
Templates encode style choices: heading hierarchy; list style; code block formatting. Consistency across pages.
Pages following templates look similar. Easier to navigate.
Some content doesn't fit any template. Forcing fit creates awkward pages.
For new contributors, templates show "this is the format" — reduces guesswork.
Templates are friction. For low-stakes content, may slow down contribution.
Many wikis support templates: MediaWiki templates, Confluence templates, etc. Use the platform's mechanism.
For markdown-based wikis: skeleton files copied when creating new pages. Tools support this (e.g., Hugo, Jekyll).
Schema validation that frontmatter has required fields. Pages without proper frontmatter rejected.
A "child template" extends a "parent template" — reduces duplication when templates have common structure.
The template itself serves as documentation: "this is the structure we use."
The pattern: when you've seen the same structure 3+ times across pages, it's a template candidate.
Don't preemptively design 20 templates. Let usage show what's needed.
Some content doesn't fit a structure. Don't force.
For a wiki with 50 pages, individual variation is fine.
If most pages are unique in shape, templates don't help.
Created; nobody fills them in. Maybe wrong structure; maybe undiscoverable.
Use analytics: are templates being used? If not, why?
Author fills sections without thinking. "Examples: TBD" everywhere.
Templates should guide thought, not just provide structure to fake-fill.
10 templates for slightly different page types. Author can't decide; uses wrong one; gives up.
Fewer templates with more flexibility usually wins.
Template hasn't been updated; uses old style. Pages from this template look dated.
Periodic template review.
Templates don't match what good pages on this wiki actually look like. Authors use templates and produce inferior pages.
Look at the best existing pages; templates derive from them.
Make templates discoverable. The "create new page" flow lists templates.
Some metadata can be auto-filled: author (the creator); date (today); template (chosen).
Automated checks: frontmatter complete; required sections present; no "TBD" in published pages.
When template changes, mark when. New pages use new version; old pages may be outdated.
For new wikis:
For existing wikis without templates: extract patterns from existing high-quality pages; codify.