Skip to content

Add 'tax_table' format to tax block#661

Open
edavey wants to merge 2 commits into
mainfrom
cm-932-add-tax-table-format-to-tax
Open

Add 'tax_table' format to tax block#661
edavey wants to merge 2 commits into
mainfrom
cm-932-add-tax-table-format-to-tax

Conversation

@edavey
Copy link
Copy Markdown
Collaborator

@edavey edavey commented May 18, 2026

See Jira CM-932:


User story

  • So that an editor can easily embed a table of tax rates and bands
  • As a content editor
  • I want to embed a tax table with a single embed code using a format

We now offer a "tax_table" format to display a table of bands and rates using a single embed code, e.g.

{{embed:content_block_tax:income-tax#tax_table}}

Given a tax object for income tax as per https://www.gov.uk/income-tax-rates this will render a table of 12 values like:


| Band               | Taxable income      | Tax rate |
| ------------------ | ------------------- | -------- |
| Personal Allowance | Up to £12,570       | 0%       |
| Basic rate         | £12,571 to £50,270  | 20%      |
| Higher rate        | £50,271 to £125,140 | 40%      |
| Additional rate    | over £125,140       | 45%      |

generic_tax_table

See Content Block Tools PR 155 for the tax table format

We now offer a "tax_table" format to display a table of bands and rates
using a single embed code, e.g.

```
{{embed:content_block_tax:income-tax#tax_table}}
```

Given a tax object for income tax as per https://www.gov.uk/income-tax-rates
this will render a table of 12 values like:

```

| Band               | Taxable income      | Tax rate |
| ------------------ | ------------------- | -------- |
| Personal Allowance | Up to £12,570       | 0%       |
| Basic rate         | £12,571 to £50,270  | 20%      |
| Higher rate        | £50,271 to £125,140 | 40%      |
| Additional rate    | over £125,140       | 45%      |

```

See [Content Block Tools PR 155][] for the tax table format

[Content Block Tools PR 155]:
alphagov/govuk_content_block_tools#155
@edavey edavey force-pushed the cm-932-add-tax-table-format-to-tax branch from 06e7b01 to 4c19ad4 Compare May 18, 2026 13:12
This version provides the "tax_table" format.
@edavey edavey force-pushed the cm-932-add-tax-table-format-to-tax branch from 4c19ad4 to ee8bd4a Compare May 18, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant