Skip to content
Yamuno
Browse

Templates and variables

Templates are starting points, such as meeting notes, incident postmortems or release checklists, that admins create once and everyone can pick. Templates can contain variables like {{date}} and {{user.name}}, which are filled in when someone picks the template.

Create a template

Templates are managed by Confluence admins and site admins.

  1. Open the app's settings: Settings (gear) > Apps > Markdown Macro+ for Confluence, or click Manage templates next to the template picker.
  2. In Templates, click New template.
  3. Enter a Name. Names must be unique.
  4. Write the template in the editor. Use Insert a variable ({{ }} in the toolbar) to add variables.
  5. Leave Active on to offer the template to everyone, then click Create template.

Each template can be up to 1 MB. To change one, click Edit; to stop offering it without deleting it, turn Active off. Delete removes a template straight away, without asking.

Use a template

Active templates appear under Start from a template in:

Where What happens when you pick one
The macro editor Replaces the content of the editor
Edit with Markdown Inserted at the cursor, or fills an empty editor
New page from Markdown Replaces the content of the editor

Use Reload templates if a template was added while the editor was open.

In Edit with Markdown and New page, the template is converted to the page dialect first: callouts become Confluence panels, [[toc]] becomes Confluence's Table of contents macro, $$ math becomes a code block and images become links.

Variables

Variables are filled in when the template is picked, using the time zone in the person's Confluence profile. Spaces inside the braces are fine, so {{ date }} works too.

Page

Variable Gives Example
{{user.name}} The display name of the person picking the template Jane Doe
{{page.title}} The title of the page being edited Release 2.4 checklist
{{space.key}} The key of the current space ENG

Date and time

Variable Gives Example
{{date}} Date, ISO format 2026-08-22
{{date.long}} Date, written out August 22, 2026
{{time}} Time, 24-hour 14:30
{{weekday}} Day of the week Saturday
{{week}} ISO week number 34
{{month}} Month name August
{{quarter}} Quarter 3
{{year}} Year 2026

Date offsets

Add + or -, a number and a unit to any date and time variable: d for days, w for weeks, m for months and y for years.

Variable Gives
{{date+7d}} The date in 7 days
{{date+1w}} The date next week
{{date+1m}} The date next month
{{date-1d}} Yesterday's date
{{date.long+7d}} The date in 7 days, written out
{{weekday+1d}} Tomorrow's day of the week

Notes

  • A variable with no value, such as {{page.title}} on a page without a title yet, becomes empty.
  • Anything else in double braces stays as written.
  • Variables are also filled in inside code blocks.
  • Page dialect values such as {{date:2026-11-15}} and {{status:DONE green}} are not variables; they stay in the template and publish as a date or status lozenge in Edit with Markdown.

Example

# Weekly sync, {{date.long}}

Notes by {{user.name}}. Next meeting: {{date.long+7d}}.

## Agenda

- [ ] Review last week's actions
- [ ] Updates

> [!NOTE]
> Action items are due by {{date+3d}}.

Guides for Markdown Macro+ for Confluence

Stuck on something this page does not cover? Ask the developers.