Visual Editors
Both cards have point-and-click editors, so you can build and use templates without writing YAML by hand.
The template editor
Add a Custom: Decluttering Template Plus card to a view (+ Add card, search declutter). Its editor has a tab strip, then the example strip, then whichever tab is open. Beside it is a live preview, outlined in blue and labelled with the template name, drawn from the template’s defaults or the example you pick. Give every variable a default, or the template an example, and the preview shows what you are building as you type.

The example strip (v2.6.0+)

Preview with picks what the preview is drawn from: the template’s defaults, or one of its examples:, each listed with a hint of what it sets. The pick is not saved; it only changes the preview, and the Try a placeholder tool below follows it.
Beside it, the badge says how many of the examples build cleanly, the same check dashboard health runs. It goes amber when one fails, and with a failing example picked, the strip says why underneath. The + adds the values the preview is using as a new example, which is the quickest way to keep a set of values you have just got working.
It sits above every tab, so the example stays in view while you edit the card on the Card tab.
Settings
From v2.6.0 the Settings tab is three panels: Describe, Variables and Tools. Describe and Variables start open, Tools starts folded.
Describe, and category (v2.6.0+)
The first panel says what the template is: its name, what kind of thing it builds, what it is for, and now its category, which used to be YAML-only. category: groups templates in the card editor’s picker, shown as Lighting · room_tile, which helps once a dashboard has more than a handful.
room_tile:
description: A light tile for one room
category: Lighting
| Field | Meaning |
|---|---|
| Template to define | The name other cards will use. Must be unique on the dashboard. |
| Type of thing to template | Card, Badge, Row or Element. Switching this swaps the body for a starter of the new type. A group: template shows as Card, and keeps its group. |
| Description | What the template is for. Shown to whoever uses it, and carried with it when shared. |
| Category | category:, the group it is listed under in the picker. |
Help beside each field (v2.6.0+)

The ? beside a field opens the paragraph this wiki has for that setting, with its YAML example and a link to the page. The text is fetched once from the documentation site, so it is always the current wording rather than a second copy inside the card. Without a connection it says so and still offers the link. Esc closes it.
Variables: the declarations editor (v2.6.0+)

Each declared variable is a row: Name, Type, Label, Default and Required. The ⋯ button at the top right of a row opens the rest of its settings: description, group, pattern, and whatever goes with its type (domain and device class for an entity, min, max, step and unit for a number, allowed values for a select, or whenever allowed: is set). Rows under a group: sit under its heading. See Describing Variables for what each setting does.
- Add a variable puts an empty row at the end.
- Drag a row by its handle, or use its up and down arrows, to change the order the card editor shows them in. Reordering a mapping writes the declarations back as a list, because Home Assistant does not notice a mapping whose keys only moved; the editor says so when it happens.
- Take one from the dashboard’s shared declarations appears when the dashboard has
decluttering_variables. It writes just the name; the shared declaration supplies the rest. - Edit as YAML swaps the rows for the declarations as YAML, for anything the rows do not cover, such as a full
selector:orshow_if:. Edit as a list swaps back.
Below the rows, Default values is the template’s default: list, as YAML.
Underneath are the warnings: placeholders that will not work, below, variables declared but never used, and names declared twice. A variable read only through one of its keys, as in [[dims.width]], counts as used (v2.6.0+).
Placeholders that will not work (v2.0.0+)

hall_tile has a mistyped step, an or: that never runs, an unclosed bracket and a mistyped if: name.
A wrong placeholder is never an error. The card renders, the brackets stay visible, and the console mentions it once the card is on a dashboard. So the Settings tab lists the mistakes under the form while you write, worked out again on every edit:
- a
[[that is never closed, or a]]that closes nothing - a step the card does not know, such as
[[room|slgu]], with the step it was probably meant to be (slug;defualt:Hallisdefault:Hall) - an
or:or a seconddefault:after adefault:with text in it, which never gets a turn - an
if:oror:naming a variable the template never declares, defaults, works out inlet:or reads anywhere else, with a did-you-mean from the names it does have - as information, the variables read but neither declared nor defaulted, which every card then has to set
- a
show_if:orhide_if:condition it cannot read, and aneditor_hide:name it does not know (v2.6.0+)
Each says where it is, as a path like card.entities[0].name. Only the parts that get
substituted are read, so a description mentioning [[name]] is left alone, and names the
template gets from a parent it extends or from decluttering_defaults count as known.
They are warnings only and never stop a save.
Tools, and Try a placeholder (v2.6.0+)
| ![The Tools panel with Try a placeholder open under example 1: [[room | slug | upper]] traced step by step from Living Room to living_room to LIVING_ROOM, the result a text](/decluttering-card-plus/images/v260-tools.png) |
The Tools panel holds the things you reach for now and then: Turn a setting into a variable, the group’s card order, Declutter an existing card, and Try a placeholder.
Try a placeholder runs one placeholder through the template’s values and shows each step’s result: where the value came from, what each step turned it into, and what goes into the card, a text, a number, a mapping or the option taken out. Pick one of the placeholders the template already uses, or type your own; the chips under it add a step to the end. It uses the defaults, or the example picked in the strip above, so you can see why [[room|slug]] is empty for one example and not another without saving anything. It is the same engine as the Try a placeholder on the docs site, with this template’s values.
Card
When the type is Card, a second tab gives you Home Assistant’s own card editor for the body:

You get the real editor for whichever card type you chose — entity pickers, feature
pickers, interaction settings, the lot. Show code editor at the bottom left drops to
YAML whenever the visual editor cannot express what you want, which is where you put your
[[variables]].
A group: template has no Card tab, and no
Change card type tab either, because it holds several cards rather than one. Edit its cards
under Settings → Show code editor, and put them in order with
the list on Settings.
“Unknown entity selected” is normal here. The entity field shows
[[light]], which is a placeholder, not an entity. The editor does not know that. Ignore the warning — the preview below shows the real card built from your defaults.
A template that builds on another (v2.8.0+)
A template with extends: often writes no card type of its own, only
what it changes: extends: base_tile and color: amber. The Card tab then shows the card as
its parents leave it, with a note naming them, instead of an editor that cannot open a card
with no type. Opening the tab changes nothing. The first edit you make there writes the whole
card into this template, over the parents’ version, which is what the note warns about.
A menu on every field: make it a variable (v2.8.0+)

Each field on the Card tab that holds a plain value gets a ⋮ button at its right edge:
- Make this a variable asks for a name, a label, a default and whether it is required,
all filled in from the field. The field becomes
[[name]]and the value it had becomes the default, so every card using the template looks the same as before. It is the same rewrite as Turn a setting into a variable, started from the field itself. - Use an existing variable lists the template’s declared variables and points the field at the one you pick.
- Copy value copies what is in the field.
A field that already holds a placeholder has no button, and neither does one whose value is not part of the card, such as a feature’s own editor.
Placeholders in the code editor: colours and completion (v2.8.0+)

With Show code editor on, every placeholder in the card’s YAML is shaded by what it will do: amber when it resolves, grey when nothing sets it but it has a default or is optional, red when it will not work (a misspelt step, say). Hover one for its value under the current example, or for what is wrong. A legend sits under the editor.
Type [[ and a list of the template’s variables, its let: names and the dashboard’s shared
ones opens at the cursor. After a | it lists the steps, the most used first, and after a
step’s colon the values that step takes; for an entity it shows what each step would give for
the example entity. Arrow keys move through it, Enter or Tab puts the choice in, Escape closes
it.
Change card type
Swaps the template body for a different card type, using the standard card picker.
Row
When the type is Row, you get Home Assistant’s row editor instead.
Badge and Element templates have no dedicated tab — edit them under Settings → Show code editor.
Turning a card you already have into a template
The hard part of the first conversion is deciding which parts of a card change between copies. The editor can work that out for you.
Declutter an existing card (v1.7.0+)

Pick any plain card already on the dashboard from the Card dropdown on the Settings tab and it becomes this template’s card, ready for Suggest variables below. Once the template is saved, Replace the original with a card using this template swaps that card for one using the template — so the dashboard ends up one card shorter in configuration and identical on screen. It asks twice, because it writes the dashboard straight away rather than waiting for Save.
Declutter a whole section (v2.1.0+)

Below the card picker, Section lists the sections of the dashboard’s sections views, each
with the view, its heading if it has one, and how many cards it holds. Pick one and its cards
become this template’s group:, in the
order they are in, so one template now stands for the heading and every card under it.
Once the template is saved, Replace the section’s cards with a card using this template swaps them for a single card using it, so the section looks the same and holds one card instead of several. Like the single-card replace it asks twice and saves straight away, and Undo takes it back. If the section has been changed since you picked it, nothing is replaced and the editor asks you to pick it again, rather than throwing away cards it never saw.
Suggest variables from the card
Put the card into the template — build it on the Card tab, paste it in through Share, or declutter one as above — then press Suggest variables from the card on the Settings tab.
Every entity, name, title, heading and icon in it becomes a variable, described with
the right control and defaulting to the value it replaced, so the template renders exactly
what the card did until you pass something else in.
# before
card:
type: vertical-stack
cards:
- {type: tile, entity: light.hall, name: Hall, icon: mdi:lamp}
- {type: tile, entity: light.hall, name: Hall again}
# after
variables:
- {name: entity, label: Entity, selector: {entity: {}}, default: light.hall}
- {name: name, label: Name, selector: {text: {}}, default: Hall}
- {name: icon, label: Icon, selector: {icon: {}}, default: 'mdi:lamp'}
- {name: name_2, label: Name 2, selector: {text: {}}, default: Hall again}
card:
type: vertical-stack
cards:
- {type: tile, entity: '[[entity]]', name: '[[name]]', icon: '[[icon]]'}
- {type: tile, entity: '[[entity]]', name: '[[name_2]]'}
- The same value in the same kind of place becomes one variable.
light.hallappears twice above and is one thing to fill in, not two. - Values that are already variables are left alone, as are names the template already declares — so pressing it again after adding another card is safe.
- A list of entities is left alone rather than half replaced.
- Because it rewrites your card, it asks twice before doing anything.
Turn a setting into a variable (v2.1.0+)

Suggest variables guesses at the settings that usually change from copy to copy. For the rest there is Turn a setting into a variable, a panel on the Settings tab. Setting lists every value in the template, each with what it is set to now. Pick one, and the editor offers the setting’s own name as the variable’s name; change it if you like, and press Make it a variable.
The value in the template becomes the placeholder, and the variable is declared with the old
value as its default and a type: to match it (an entity, an icon, a number, on or off, or
text), so every card using the template still builds exactly what it did until
one of them passes something else. Picking color = amber on a tile:
# before
card:
type: tile
entity: '[[light]]'
color: amber
# after
variables:
- name: color
type: text
default: amber
card:
type: tile
entity: '[[light]]'
color: '[[color]]'
A name the template already has is refused, as is one with anything but letters, digits, _
and - in it. Nothing is written to the dashboard until you save, as with any other edit.
Where used (v1.1.0+)
Lists every view on this dashboard that uses the template and how many times, plus any other template that calls it.
Worth a look before changing a template, because what a change affects is not visible from the template card itself — the cards using it can be anywhere, including inside stacks, grids and conditional cards, all of which are counted. A template card defines rather than uses, so it is not counted. Each view in the list is a link, opened in a new tab so the editor — and anything you have not saved yet — stays exactly where it is.
Counts on the tabs (v2.9.0+)
The tab names carry what is behind them, so there is no need to open each one to find out:
- Where used shows how many times the template is used, the same count the page under it
starts from, plus the templates that build on it with
extends:. A template nothing uses shows a grey 0. When cards using it leave a declared variable unset, an amber pill says how many: 1 unset. - Share shows a dot when Check for updates found a newer version of the post it was installed from, and a grey trash 2 when the trash holds copies of a template with this name.
The family it belongs to (v2.9.0+)

A template built with extends:
is one layer of several, and the YAML only ever shows its own. When a template has a parent or
a child, Where used draws the whole family as a tree: the template at the top, every template
built on it below. Each says how many cards use it directly and what it
does to the one above: sets for the top’s own keys, then changes, adds and
drops (a key set to null). A deprecated template says so, and a parent that extends:
names but that is nowhere to be found is pointed out.
Each other name is a link to the view holding that template, opened in a new tab; the
template you are editing has none, and neither does one written under
decluttering_templates, which has no view. The line above
the tree counts the templates and the cards using any of them, which is everything an edit to
the top one reaches.
How warm_light_tile is built shows the card as the family leaves it for this template, one
layer after another, each under a # from comment naming the template it came from. That is
the answer to “why does my tile have that icon”.
Other dashboards using the name (v1.6.0+)

Underneath the list, the editor says which other dashboards use a template of the same name, and how many times each: “Other dashboards use this name too: kitchen (3), shed (1).”
It is read-only and deliberately so. Renaming or changing the template here does not touch them, because they are separate dashboards that happen to use the same name — the note is there so a rename is not a surprise to somebody else’s dashboard. A dashboard that cannot be read simply does not appear.
What one card becomes (v1.6.0+)

Knowing that a change affects twelve cards is not the same as knowing what it does to them. This panel takes the first real card using the template and builds it against the template as it stands in the editor — unsaved edits and all — so you can see what one of them turns into before saving anything.
It is a preview of the built card’s YAML, not a rendered card, and it disappears if the template is not used anywhere or the edit in hand cannot be built.
As a line diff (v2.0.0+)

The edit renamed the tile and added a feature and an icon; the rest of the card is unchanged.
The card is built twice, from the template as the dashboard has it saved and again with the edits in the editor, and the two are shown as a diff: removed lines on red, added lines on green, and long unchanged stretches folded into an “unchanged lines” marker. Both builds take in a parent template and the dashboard’s shared values. The whole before and after are still there under Before and after in full.
Dashboard health (v1.6.0+)

Everything the browser console would have muttered about this dashboard, gathered into one panel:
- Cards pointing at a template that does not exist, with how many.
- Cards leaving a variable unset that the template declares, with the names.
- Templates nothing on this dashboard uses.
- Cards passing a variable the template never reads (v2.0.0+) — see below.
- Templates built on each other in a loop through
extends:(v2.0.0+), naming the path round it. Take one out of the other’sextends— see Several parents at once. - Deprecated templates still in use (v2.0.0+), with the views and templates using them and the template’s message if it has one — see Retiring a template.
- Examples that do not build cleanly (v2.0.0+): every template’s
examples:are built and any that leave a value unset, use a missing template or break a declaration are named, with why — see Showing how it is used.
When there is nothing to report it says so. The sweep is cheap, so it simply runs rather than asking to be turned on. It looks at this dashboard only, and it never changes anything — an unused template is a fact, not a recommendation to delete it.
In the card editor too (v2.4.0+)

The panel is also at the foot of the ordinary card editor, under Advanced (v2.5.0+; under Result before). Before v2.4.0, it was only
in a template card’s editor, so a dashboard that keeps every template under
decluttering_templates needed a throwaway template card just to see it.
Variables nothing reads (v2.0.0+)

One card on Rooms passes rooom, so the template uses its default room name.
A card can pass a variable its template has no use for: a typo like entitiy:, a name the
template has since renamed, something copied from a card using another template. Nothing
breaks, the template falls back on its default, and the card looks almost right. The panel
lists them, grouped by view, template and name so a hundred copies of one mistake are one
line, with a did-you-mean from the template’s own names.
A name counts as read when the template declares it, defaults it, or a placeholder anywhere
in it reads it, including through or:, if:, a lookup, and the card’s own on_error:
card. The card’s variables:, each for_each item and each for_each_from override are
checked. A name the template works out in let: is reported, because let: wins and the
card’s value is ignored. A card using a borrowed template is checked once that template has
been fetched.
Template keys nothing reads (v3.2.0+)

Template camera_card has variblees:, which no template reads, so it is ignored.
A misspelt key in a template’s definition, variblees: for variables:, used to pass in
silence and the template simply went without it. The health panel, the card editor’s note for
the chosen template and the command-line linter now name it, with a
did-you-mean when there is a close match. The YAML schema flags it
too, in an editor that reads it. Only decluttering_templates is checked: a card and a template
card stay open, because Home Assistant and card-mod add keys of their own.
Slowest builds (v2.0.0+)

Four builds of room_tile on this visit, the biggest a repeat of five copies.
Under the findings, the panel lists where the page has spent its time filling in templates:
the templates with the most time altogether, with their build count and slowest build, the
slowest single builds, and the biggest repeats by copies. A card with a
name: is shown by it.
It covers the last 500 builds since the page was loaded and is kept for this visit only;
nothing is stored. Use it to find which of forty cards is the heavy one before reaching for
debug: console.
Statistics (v2.9.0+)

Under the slowest builds, Statistics counts what this page has built since it loaded: the cards built, the templates in use, the total build time, and how many builds were a card building again because something it rebuilds on changed. The table lists each template with the views it was built in, how many times, the total with a bar to compare by, and its slowest build. Click a heading to sort by it.
Since last reload compares each template’s total with the same table the last time this tab reloaded the page, and says fewer builds or more builds when the count is why it moved. It is kept in the tab’s session storage, so it is empty on the first load and goes when the tab is closed. Reset starts the count again from now, and empties the slowest builds above too, since they come from the same log. Copy as table copies the table as Markdown, for an issue or a forum post. Nothing leaves the browser.
Builds that happened while a view was off the screen are counted but not timed.
Said while building, this page load lists the warnings the cards gave while they were
building, newest first, with the card each came from and how long after the page loaded it was
said: a placeholder refused, a state read without rebuild_on, a deprecated template built.
It shows the last 50 and says how many came before. None of those can be found by checking the dashboard’s configuration, because they only happen
while a card builds.
The same panel opens from the health card’s Open the full panel.
Renaming a template (v1.1.0+)
Renaming a template on the Settings tab offers to rename every use of it on the dashboard at the same time, so a rename does not leave a trail of cards pointing at a name that no longer exists.
Renaming a variable (v2.0.0+)

The first press: three cards here and three on a dashboard that borrows the template, and the template’s own diff.
A variable’s name is written in the template and again in every card that uses it, so renaming it in the template alone leaves those cards passing a value nothing reads. Rename a variable on the Where used tab changes it everywhere at once. Pick the variable, type the new name, and press Rename variable. The first press counts what it would change and shows the diff of this template; the second saves.
It rewrites every placeholder reading the variable, its declaration, its default: and
let: entries, every template built on this one with extends:, and every card using any
of them: their variables:, for_each items, for_each_from overrides and name:. Cards
on other dashboards are reached too, where they borrow this template through
decluttering_templates_from or from the
library dashboard,
as long as they have no template of that name of their own.
The new name can use letters, digits, _ and -, and must not already be a variable of any
template the rename reaches. A card already passing the new name, which nothing read, loses
that entry rather than keeping two. A nested card with inherit_variables: true inside
another template, decluttering_defaults and strategy repeats are not changed, since they
belong to every template. The whole rename can be undone
as one step.
Similar cards (v2.0.0+)

Three temperature tiles differing only in entity and name, offered as one template.
The dashboards that most need templates are the ones with thirty copy-pasted tiles. The Similar cards panel on the Where used tab finds them: sets of two or more plain cards with the same type and the same structure that differ only in their values, saying where they differ and which cards they are.
Make a template turns a set into one. The first card becomes a template with a variable
in each place the cards differ, it is added under decluttering_templates, and every card in
the set is replaced where it stands by a decluttering card passing its own values. The first
press shows the template and what the first card becomes; the second saves.
Variables are named after the key the value sits under, such as entity or name, and the
template name offered says what it is, such as light_tile_card. Where a card sits
(grid_options, visibility, view_layout) stays on the card that replaces it. A set
differing in more than eight places is not offered, nor are exact copies or cards inside a
template.
Finding cards that pass a value (v2.0.0+)

light.landing is passed by a card here and one on a borrowing dashboard, and written straight into one template.
“Which cards show light.kitchen?” is the question a renamed entity or a replaced bulb asks,
and Home Assistant’s own search cannot answer it when the entity is a value passed to a
template. Find cards using a value on the Where used tab reads every dashboard when you
press Search, and only then.
It lists every decluttering card with the value in its variables, its for_each items, its
for_each_from overrides or its own card: block, with the dashboard, a link to the view,
the template and the variable. Templates with the value written straight in are listed
separately, with where inside the template. The match is any part of the value, ignoring
case, and the first fifty of each are shown.
Undoing the last rewrite (v2.0.0+)

The toast after making a template from similar cards.
Several tools here save the dashboard straight away, because the cards they change are not the one open in the dialog: renaming a template or a variable, replacing a card with a template, making a template from similar cards, giving each copy its own section, installing from the library or shared templates, updating a shared template, importing, duplicating, and moving off the original card’s names. Each now keeps the dashboards as they were, and a toast offers Undo straight away.

The same undo, kept in the health panel.
The Dashboard health panel keeps an Undo button for as long as there is something to undo. Only the last operation is kept, for this browser tab; it is a way out of a mistake just made, not a history.

The dashboard was saved in another tab since, so undo asks first.
If a dashboard has been saved since, in another tab, from the edit dialog or by hand, undoing would lose that too, so nothing is written until you press Undo anyway.
Getting back a deleted or replaced template (v2.1.0+)

Undo only covers this card’s own tools. A template card deleted from the dashboard’s menu, a template overwritten in the raw configuration editor, or one edited into something worse and saved, used to be gone for good. Now every save of a dashboard is compared with the one before it, and a template the save took away or changed is kept as it was.
They are listed under Deleted and replaced templates in the Share tab, newest
first, with the dashboard and when. Show opens the YAML that was kept, Restore puts it
back on that dashboard, and Remove forgets it. Restoring saves the dashboard straight away,
so the Undo above covers it too. A template whose name is in
use on that dashboard again is replaced by the old version only after a second press,
Restore anyway, and the one it replaces goes into the list in turn, so nothing is lost
either way. A template that is no longer on the dashboard at all comes back under its
decluttering_templates, where every card can find it, even if the view it was written in has
gone too.
The last 20 are kept, in your Home Assistant user data, so they follow you from one device to another and survive a restart. Two things to know:
- A save is only seen while a dashboard is open in a browser, by an administrator. That is where templates are edited, so it covers the usual mistakes, but a change made with no browser open is not caught.
- YAML-mode dashboards are left out. They are edited in a file, and whatever keeps that file has its own history.
Share (v1.1.0+)
The Share tab writes the template out as YAML to send to someone else, and takes YAML somebody sent you and puts it into the template card you are editing.
Importing replaces the template card you are editing, and nothing is written to the dashboard until you save as usual.
Download (v2.1.0+) saves the export as a .yaml file named after the template, and
Open a file (v2.1.0+) reads one into the Import box, so a template can travel as a file
as well as through the clipboard. See Sharing a Template.
What an export takes with it (v1.6.0+)
A template is only ever as portable as the things it is built from. The custom cards it
needs are named in a comment, and the other templates it calls ride along with it under
an includes: key, transitively — so a bundle works on arrival instead of carrying a note
about what else to go and find. Anything that genuinely could not be found still gets the
comment.
Import as a copy (v1.6.0+)

If the incoming template has the same name as one you already have, the editor says so and
waits for a second press — or takes it in under the next free name (room_tile_2) and
leaves the one you already had alone, so the two can be compared rather than chosen between
blind.
Compare with (v2.9.0+)

A template installed from the starter library or a shared post drifts as you change it, and a template you replaced may have been better before. Compare with, further down the Share tab, sets this template beside another version of it as a line diff, the same diff What one card becomes draws: what the other version has that this one lost on red, what this one added on green. The line above it counts the lines added and taken away and how many separate places they are in.
The dropdown offers, in this order:
- Starter library: every template in the library, the one with the same name first.
- Shared post: the newer version of the post this template was installed from, once Check for updates has found one.
- In the trash: each copy the trash kept of a template with this name, newest first, with how long ago it was removed or replaced.
Take that version, pressed twice, replaces this template’s content with the other version’s, keeping its name, and saves the dashboard straight away. The undo on the toast puts it back, the open editor included. It is only offered while the two differ.
Browse templates (v2.9.0+)
Browse templates, under Start from one of these, opens the starter library, the shared templates and the ones already installed as a gallery of tiles, each a real card drawn against a sample house. See Sharing a Template.
Convert from another card (v2.9.0+)
Convert from another card, under Import, takes a button_card_templates: entry or a
custom:auto-entities card and shows it as a decluttering template, ready to install. See
Sharing a Template.
Tools on the template editor (v1.2.0+)
A warning when something uses it
The Where used tab has always known, but only if you went and looked — and the moment it matters is when the card is open in front of you, about to be edited or deleted.
Reordering the declared variables
Their order in the list is their order in the form every card using the template gets. From v2.6.0 the rows of the declarations editor are the list: drag one by its handle or use its arrows. (v2.1.0 to v2.5.0 had a separate order list under the Variables field.)
Putting a group’s cards in order (v2.1.0+)

A template with a group: of two or more
cards gets the same kind of list on its Settings tab (in the Tools panel from v2.6.0), one line per card, named by its type
and whatever it shows. The order there is the order the cards are laid out in the section, so
drag one, or use its arrows, to move it.
Duplicate

Puts a copy of the template beside it under a new name, which is how most new templates start life. It asks twice, and saves the dashboard when you agree.
Moving off the original card’s names
If any card on the dashboard still says custom:decluttering-card, the Where used tab
offers to rewrite them all. They work as they are — this card answers to both sets of names
— but they would stop working the day the original is installed alongside it, because Home
Assistant loads resources in the order they were added and the original would win.
Starting from something (v1.2.0+)

The Share tab has a handful of worked examples of the shapes people build most: a light tile that names itself, a card per room that lists the lights in it, a sensor row, a badge that only appears when something needs attention, and a numbered grid.
They are carried in the card itself rather than fetched, so nothing here reaches the internet.
The Example dropdown (v1.3.0+)
Pick one and it tells you what it is and what else it brings with it before you commit to anything. They used to sit in a list with five buttons down the side of it, which took up most of the tab to say very little.
What it defines (v1.6.0+)
Opens the entry’s actual YAML, so the decision is made on the thing itself rather than on a one-line summary.
Install into (v1.6.0+)
Chooses where the entry lands: this view as its own template card, as before, or straight
into the dashboard’s decluttering_templates: block, where it is available to every view
without a card sitting on one of them. Either way the template you are editing is left
alone, and anything a starter calls comes with it — installing the room card brings the
tile it repeats over.
Install asks twice (v1.3.0+)
The second press is the one that does it, and the button says as much rather than leaving you to guess whether the first press worked.
Shared by others (v1.15.0+)
Below the examples, the same picker for templates other people have posted on the project’s GitHub. Unlike the examples these are fetched, and only when you press Load shared templates — see Sharing a Template.
Offered in the add-card dialog: suggest_for (v1.13.0+)
Home Assistant’s add-card dialog has a By entity tab: pick an entity and it suggests
cards for it. A template with suggest_for: is offered there, under Community, for
every entity that matches, as a ready card with the entity filled in:
decluttering_templates:
house_light:
suggest_for:
domain: light
card:
type: tile
entity: '[[entity]]'

suggest_for: takes the filters a repeat over entities does:
domain, area, floor, label, device_class, integration, entity id patterns under
entities, and exclude. The entity goes in as entity, the name a repeat gives it too,
so a template written for one works for the other. Badge templates are offered in the badge
dialog the same way.
Templates from this dashboard, the library dashboard
and any dashboard named in decluttering_templates_from are all offered. Needs Home
Assistant 2026.6 or later for cards, 2026.7 for badges; older versions simply do not ask.
First among the community suggestions (v2.5.0+)

The templates that match an entity are listed first under Community, ahead of other custom cards’ suggestions. Home Assistant’s own suggestions always come before any custom card’s.
Listed as a card of its own: publish (v1.14.0+)
publish: true on a template puts it in the add-card dialog’s By card list next to
every other card, under its template name. Give it a name to show instead:
decluttering_templates:
house_light:
publish: House light
suggest_for:
domain: light
card:
type: tile
entity: '[[entity]]'
features:
- type: toggle

Picking it adds an ordinary decluttering card using that template, so nothing saved depends
on the entry existing. If the template has suggest_for:, the first entity it matches is
filled in as entity, which is what the preview shows. Badge templates go in the badge
dialog’s list. Templates from the library dashboard
and from dashboards named in decluttering_templates_from can be published too.
The card editor
Add a Custom: Decluttering Card Plus card to use a template:

| Field | Meaning |
|---|---|
| Template to use | Every template available to this dashboard, with search (v2.8.0+). See Picking a template below. |
| Variables | The values to substitute — a YAML list (- name: value per line) or a single mapping. |
| Repeat (a form of its own from v2.7.0) | One copy per item of a list you write here (for_each), or per entity, area, device, floor, label or view Home Assistant knows about (for_each_from). Card templates only. See Repeat below and Repeating a Template. |
| Space between copies (v1.2.0+) | gap, in pixels. Leave it out for Home Assistant’s usual spacing. See Styling. |
| Columns | How many copies sit side by side. |
| Minimum column width (v1.1.0+) | Pixels. Drops a column rather than going narrower. |
| Build copies as they scroll into view (v2.0.0+) | lazy: the first few copies are built at once and the rest as they come near the screen. The preview in the dialog always shows every copy. See Repeating a Template. |
| Copies built at once (v2.0.0+) | lazy_eager: how many are built straight away with the option above on. 6 if left out. |
| Fit into the layout (v1.1.0+) | Whether this card keeps a box of its own or gets out of the way. See Styling. |
The repeat fields only appear when the template builds a card, or the card already repeats or picks its template by domain. The preview updates as you type.
Near the top, a line says where the template is defined: Defined in this dashboard’s decluttering_templates., Defined in a view, with a link that opens that view in a new tab, or This template is borrowed from another dashboard, so it is edited there. A card is often where you notice the template needs changing, and the definition can be anywhere on the dashboard, or on another one entirely.
Picking a template (v2.8.0+)

Template to use is a search box. Type part of a name or a description to narrow the list.
Each template shows its description and how many cards on this dashboard use it, so an unused
one stands out. Templates are grouped by their category:,
the ones without a category first, and templates borrowed from another dashboard sit under
that dashboard’s name. A deprecated template says so, with its note in place of the
description.
Edit the template (v2.5.0+)

When the template is defined in a template card on this dashboard, the line ends with Edit the template. It closes this dialog and opens the template card’s editor in its place, since Home Assistant edits one card at a time. Anything you had changed on this card and not saved is kept: open the card again and it offers to Bring them back or Discard them.
A template card tucked inside a stack has no address of its own, so the editor says to open
it from the stack instead. A template in the dashboard’s decluttering_templates is changed
in the raw configuration editor, and the line says so.
What it builds (v1.1.0+, at the top from v2.5.0)


At the top of the card editor, What it builds shows the card that is actually built
once every variable has been put in. (v3.2.0+) It starts folded to one line, so it no longer
pushes the fields down; open it to see the card. Pause, Copy and
Replace this card with what it builds are inside
it, and nothing in it is built while it is folded. A template that has no use for it can leave
it out with editor_hide: preview.
A paused or held preview is said in a banner at the top of the editor, with Resume and
Render now, whether the panel is folded, open or left out. Switch between Rendered, the card itself, and
YAML, with the line your last edit changed highlighted (v2.5.0+). It updates as you
type, and says how long the build took. A with: or repeat: of an item template is filled
in here as it is on the dashboard (v2.5.0+). (v2.10.0+) While you type, it waits until a
quarter of a second after the last change before it builds, so the fields keep up with the
keyboard; Render now builds at once. A build is kept until something it reads changes, the
card, its template, the dashboard, the language or the state of an entity the card rebuilds
on, so a state change elsewhere in the house no longer builds the card again in the editor.
The template is in one place, the values are in another, and what you see on the dashboard
is a third thing — so working out why the result is not what you meant used to mean reading
both and doing the substitution in your head. Anything still written as [[name]] in there
is a variable nothing gave a value to.
It is read-only. A card repeating over a for_each list shows the first copy, and the
header says (copy 1 of N). A card with for_each_from shows the template built with the
card’s own variables: only, not a copy: the values each copy gets, such as [[entity]]
and [[name]], are not known here, so they stay as brackets. Use the
match preview to see what it repeats over, and
debug: console to see each copy as built.
Light, dark, and the width of a phone (v2.9.0+)

On Rendered, two switches sit over the card. Light, Dark or Both draws it under the dashboard’s theme in light mode, dark mode, or the two side by side, so a colour that vanishes on a dark phone at night shows up before you save. Desktop, Tablet or Phone draws it at the width of the preview, of a tablet (768 px) or of a phone’s column (388 px).
The card is Home Assistant’s own, built with the dashboard’s theme, so it is the real thing
and not a picture of it. A caption under it gives the width it was drawn at. When a phone or
tablet is wider than the space the dialog has, it says so: 196 px (asked for 388 px, but the
dialog is narrower). For a repeat it also says how many columns the copies would take at that
width, worked out from columns and min_column_width.
The template editor’s Card tab has the same switches over its preview, under the example picked in the example strip.
Pause the preview (v2.9.0+)

Home Assistant’s edit dialog builds its preview again on every edit, and so does What it builds. Most cards do not mind. A card that asks a server for something does: a camera card with a camera name half typed asks for a stream that is not there on every keystroke, and each failed request is logged. One user’s Home Assistant fell over under the pile.
Pause preview, under What it builds, stops both. The preview takes the card away and says it is paused, and nothing is built while you edit. Render now, beside it or in the preview, builds the card once as it stands, and the next edit holds it again. Resume preview goes back to building on every edit. (v2.10.0+) The YAML view pauses too, and says so, since working out the YAML is the build; before, it went on updating while paused.
The pause lasts for the page, not the dialog, so you can close a broken card and open it again without the first preview firing the request again. That first preview, which Home Assistant builds before the editor beside it has arrived, is held too (v2.9.0+). Nothing on the dashboard behind the dialog is affected, and a reload starts unpaused.
Paused by a slow build (v2.12.0+)

If a preview build takes 1.5 seconds or longer while the editor is open, the preview pauses itself, as if you had chosen Pause preview, and a red banner over it says how long the build took. A card that slow would otherwise build again on every keystroke and make the editor hard to type in. Render now builds it once; Resume preview goes back to building on every edit. Nothing on the dashboard is affected: only the editor’s preview pauses.
Waiting for a required variable (v2.9.0+)
![The card editor for a card that leaves entity unset: the YAML shows entity as [[entity]], the editor says the template needs entity, and the preview says Fill in [[entity]] to see the card, with Render now](/decluttering-card-plus/images/v290-preview-required.png)
While a card is open in the editor, a variable the template marks
required: true that has no value yet holds
the preview back, paused or not: Fill in [[entity]] to see the card. The template needs it,
so the preview waits for it. The card inside is not made with a half-finished config, so a
camera card is never handed camera: '[[camera]]'. Fill the variable in and the preview
builds. Render now builds it anyway, brackets and all.
Only the edit dialog waits. On the dashboard, the card builds as it always has, and a repeat still drops the copies that leave a required variable unset.
A card set to strict: that refuses an unset variable now refuses before
the card inside is made, rather than after, so a strict card never makes that request either,
on the dashboard or in the editor. It shows the
error card instead.
Defaults shown in each field (v2.7.0+)

A field the card leaves unset shows the value the template will actually use, instead of standing empty. That is the default that wins, so a view’s, section’s or dashboard’s decluttering_defaults beats the template’s own. A default built from other variables, like label: '[[entity|object_id]] tile' above, is worked out live from what the other fields hold, and stays blank while it can’t be worked out yet.
Showing it writes nothing. The card only gets a value when you change the field, so a card that just takes its defaults stays as short as it was. Picking exactly the default writes nothing either, since the card would build the same. It works for every selector: text, numbers, entities, switches and dropdowns.
(v2.10.0+) A default that reads a state or an attribute, such as caption: 'Blind at [[blind|attr:current_position]]%', is shown filled in when the card or its template rebuilds on that entity, as the card itself fills it. Before, the field stayed blank.
Reset to default (v2.10.0+)

A declared field the card sets has a Reset button beside it when something else would give the variable a value. Reset takes the card’s own line out, in the shape the variables were written, a list or a mapping, dotted parts included, so the default applies again and the field shows it the way any unset field does. Here the card sets colour: teal, and Reset leaves it with only light: light.kitchen.
Every declared field keeps room for the button whether it has one or not, so the fields line up and do not change width as you type.
What a field goes back to (v3.1.0+)
A field the card sets has a line under it saying what Reset would put back, on its own line below the field’s description, with the value in a code font so the two read apart. A field the card leaves unset has no line, since it already shows its default in the field itself, and (v3.2.0+) neither does one set to exactly its default, nor has it a Reset button: typing the default back reads as leaving the field alone. The value stays in the card’s YAML, so it is still pinned if the default changes later. A default the template writes reads Default: amber; one from somewhere else says where, Default from the view: …, so you know where to change it. A default worked out from other variables shows what it works out to now; how it got there is in the debug report.
Before v3.1.0 the line was run into the field’s description, showed on unset fields too, and added (worked out from …) with the default as written. A template can leave the lines out altogether with editor_hide: defaults; the Reset buttons stay.
A field with nothing to go back to, such as Light above, has no Reset, and neither do fields hidden by show_if or hide_if, filled in by a repeat, or taking a whole card.
Fields an edit left behind (v3.0.0+)

A field the card sets keeps its value when a field its default is worked out from changes, because a value you typed is your choice. That is easy to miss in a list or mapping the template worked out: change one item and the card keeps the whole of it, so a later change to the field it was built from no longer reaches any of it.
So when you change a field, the editor looks at every other field the card sets by hand. If its default, worked out with the new value, has moved and no longer matches what the card holds, the field is named in a note under the one you changed. Here the template works out zone, stream and the detections list from camera; the card set stream and edited the list, so changing the camera names both. The zone is not named, since the card does not set it, and it followed the camera as it should. A chain counts: had the card set only the detections, changing the camera would still name them, through the zone.
Reset to defaults takes the named fields’ own lines out in one change, the way their own Reset does, so they are worked out again and Undo puts them back together. Keep mine closes the note. A field drops out of the note once you change it yourself or it comes back to matching its default, and the note goes with the last one.
Nothing has to be declared. A default counts as built from the field you changed when working it out with the values from before your change gives something different from working it out with the values after it, so let:, item templates and a chain of defaults are all followed. The note is not saved: it is only there while the editor is open.
Repeat (v2.7.0+)

The repeat settings are a form rather than two YAML boxes. One copy per says what the copies are made for: nothing, a list you write here, or entities, areas, devices, floors, labels or the views of this dashboard. Under it are the filters that collection takes (patterns, domain, area, floor, label, device class, integration, what to leave out) and then the order and size: sort, then by, reverse, at most, skip the first, group by, and whether diagnostic and config entities count. It writes the same for_each_from you would write by hand:
type: custom:decluttering-card-plus
template: light_tile
for_each_from:
domain: light
sort: name

Beside the filters, a line counts what they match right now. Show lists the first dozen. It is the match preview, moved to where you change what it counts.

A list I write here shows a for_each one row per item. Drag a row by its handle, or use the arrows, to put the copies in order. The edit button opens an item to change its values, and the bin removes it. A source the form can’t draw, a Jinja template: or a range:, is kept as YAML in a box of its own, so nothing you wrote is lost.
A variable the repeat fills in for each copy, like entity in a repeat over entities, is greyed out in the form and says Set by the repeat, one value per copy. It used to look like a required field left empty.
The layout settings (columns, minimum width, space between copies, lazy building and Fit into the layout) sit under the repeat. editor_hide: repeat still leaves the whole section out.
Template by domain (v2.7.0+)

A card with template_by_domain shows it as a table: one row per domain with the template its copies use, a last row for anything else, a bin on each row and Add a domain. It writes the same mapping:
template_by_domain:
sun: tile_t
light: light_t
default: tile_t
A row you have just added is kept in the editor until both its domain and template are filled, and is then written like the others. A mapping the table can’t read, such as one whose value is not a template name, keeps the note it had before.
Show instead when nothing matches (v1.2.0+, a card picker from v2.5.0)

A card that repeats can show another card when the repeat makes no copies: its empty:.
From v2.5.0 that is a card picker rather than a YAML box. Choose a card opens Home
Assistant’s own card picker, Edit opens that card’s editor inside this one, and
Remove takes it away. It only appears for a card with for_each or for_each_from, and
the card is used as written, with no placeholders filled. See
Repeating a Template.
Advanced (v2.5.0+)

The settings that used to be YAML-only have controls in a folding Advanced section at the foot of the editor. Its header counts how many are set.
| Control | Writes |
|---|---|
| Size in a sections view: columns, Rows | grid_options, overriding the size the template asks for |
| Style | style, CSS for this card only |
| On error | on_error: show the error, hide, or a card of your choosing, picked with the same card picker as above |
| Show card errors outside edit mode (v2.12.0+) | show_card_errors: true. See Troubleshooting |
| Strict | strict: true, so a warning becomes a card that refuses to render |
| Rebuild when these change | rebuild_on, the only entities |state can read |
| What counts as a change (v2.10.0+) | rebuild_on_watch |
| Debug | debug, and Name in the console for name |
| Inherit variables | inherit_variables |
Choosing Show a card of my choosing writes nothing until a card is picked, so the error keeps showing until then.
Rebuild when these change: placeholders, and what counts as a change (v2.10.0+)
![Rebuild when these change in the Advanced section: Hallway Motion in the entity picker, then Placeholders, filled in from this card's variables, listing [[lamp]] now light.reading_lamp with a remove button, the line Also rebuilds on, from the template: [[blind]] (now cover.dcp_store_cover), and What counts as a change set to As the template says: read](/decluttering-card-plus/images/v2100-advanced.png)
The entity picker edits entity ids only. A placeholder in the card’s
rebuild_on,
or an entry written as {entity, watch}, is listed under it with the entity it fills to now
and a button to remove it, so editing the picker never loses it. Add placeholders in the code
editor. Entries the template writes are shown below as Also rebuilds on, from the
template, read-only, since they belong to the template.
What counts as a change sets
rebuild_on_watch.
The first choice writes nothing, and names what the card then gets: Any change (default),
or As the template says with the template’s word. Only what the template reads writes
read, and Any change writes all, which overrides a template’s read. A list of parts
written in YAML is kept and shown as As written in YAML.
The header’s count includes rebuild_on when only placeholders or only the template set it.
Leaving out what a template has no use for: editor_hide (v2.6.0+)
A template can say which parts of this editor mean nothing for it, so the people using it see only what matters. A camera card built from one name has no use for Repeat for each, and a shared template can keep its users out of settings it was never written for:
decluttering_templates:
cam_tile:
editor_hide: [repeat, fit, rebuild_on, inherit_variables]
card:
type: tile
entity: '[[camera]]'
| Name | Leaves out |
|---|---|
repeat |
Every repeat field: Repeat for each, the for_each_from source, columns, minimum width, space between copies, lazy building and Show instead when nothing matches |
extras |
The Other variables box, for values the template does not describe |
fit |
Fit into the layout |
advanced |
The whole Advanced section |
defaults (v3.1.0+) |
The line under a set field saying what its default is. The Reset buttons stay |
preview (v3.2.0+) |
The What it builds panel. A held preview is still said at the top |
grid_options, style, on_error, show_card_errors (v2.12.0+), strict, rebuild_on, debug, name, inherit_variables |
That one field inside Advanced |
One name or a list, in any case. A part the card already uses is never hidden: a card with a for_each still shows its repeat fields, so whatever is written there can be seen and taken out. It only tidies the visual editor; YAML still takes every option. A template made with extends: inherits it like any other key, and template lint warns about a name it does not know, with the closest one it does.
Replace this card with what it builds (v1.7.0+)

From v2.5.0 the button sits under What it builds at the top of the editor.
Underneath the built YAML, this swaps the card for exactly the configuration shown and drops the template from its life. Useful when a card has outgrown the template, or when you want to hand somebody a dashboard with no dependency on this card at all.
It asks twice, and it only appears for a single card — a repeat ejecting into a pile of cards is the template earning its keep, so that case is left alone. Nothing is written until you press Save, as with any other change in the editor.
Give each copy its own section (v1.11.0+)

A card repeating inside a section of a sections view offers to turn the repeat into a section per copy, each one able to have its own heading and background and to reflow on a narrow screen. It rewrites the view to use the card’s view strategy: the card’s section is repeated once per copy, anything else in that section stays as a fixed section ahead of it, and every other section and badge goes along unchanged.
It asks twice, saves the dashboard straight away and closes the dialog. Home Assistant’s undo button puts it back. From then on the view is edited as YAML.
It only appears for a saved card written straight into a section, not one inside a stack and not one in a masonry view.
When the template describes its variables
If the template describes its variables, this editor looks quite different: its description appears at the top, and each variable gets a real control — an entity picker, a dropdown, an icon picker — with anything the template does not describe still editable in an Other variables box underneath.

It also warns about a variable the template uses that has no value anywhere, and about a value set here that the template never reads. Neither stops you saving.
A field can come and go with the values of the others (v2.6.0+): a declaration with show_if: or hide_if: is left out while it does not apply, and comes back as soon as it does.

The dropdown includes templates defined in decluttering_templates, templates defined as
cards on any view, and templates
borrowed from other dashboards. Borrowed ones
appear a moment later, once the other dashboard has been read — the editor will not flag a
template name as unknown while that is still in flight.
Validation
| Message | Cause |
|---|---|
| No template exists with this name | Typo, or the template is on a dashboard you have not borrowed from |
| Variables must be a list of key and value pairs, or a mapping of them | variables: or default: is something else entirely — a string, a number, or empty. Empty usually means the entries under it are not indented, so YAML gave them to the card instead; see Troubleshooting |
| The declarations must be a list, each entry naming one variable, or a mapping keyed by variable name | A template’s variables: block is something else entirely — plain text, or a number. A list of declarations works, and so does (v2.3.0+) a mapping keyed by name; see Written as a mapping |
| Copies stay in 3 columns however narrow the screen gets… (v1.11.0+) | A repeat with columns above 1 and no min_column_width. Set one and the card drops columns on a phone |
| This card is set to get out of the way… (v1.1.0+) | fit: contents is set alongside a style that paints on the card’s own host, which then has nothing to paint on |

Warnings, as opposed to errors, are listed under Describing Variables. None of them stop a save.
Seeing what a repeat matches (v1.2.0+)

A for_each_from is the most powerful thing the card does and used to be completely
invisible until you saved and looked. A typo in a domain or an area name read as “this card
is broken” rather than “nothing matched that”.
The editor now counts what it matches as you write it, and lists the first dozen. From v2.7.0 the count sits under the repeat’s filters, with the list a click away. A filter
that matches nothing says so plainly — and mentions the empty: card if one is set, since
that is what would actually be drawn.
The list is what the card would build now; it is worked out again whenever Home Assistant’s registry changes.
A template: source
(v2.0.0+) has to be rendered by Home Assistant first, so the preview says Rendering the
template to see what it lists… until it is back. If the Jinja has an error it says The
template could not be rendered, and if it gives text or a single value rather than a list,
…which is not a list, so this card repeats nothing. End it with | list. A rendered list is
fixed until the dashboard is reloaded, and the preview says that too.
The count is of what the source matches. Copies later dropped because a
required: true variable has no value in
them are still counted here, so the card can show fewer. A range: lists its numbers.
The template dropdown also shows each template’s description beside its name, which matters once a dashboard has twenty of them.
In edit mode: the chip on each card (v2.9.0+)

In edit mode, outside a sections view, every templated card wears a small chip at its top left naming its template, so you can see which card comes from which template without opening each one. A repeat adds its copy count, ×4, and a template borrowed from another dashboard adds that dashboard’s name after a dot. Click the chip for a menu:
| Item | Does |
|---|---|
| Edit template | Opens the template’s editor. For a template card, that card’s own editor. For one written under decluttering_templates, the same editor in a dialog of its own, saved like any other rewrite and undoable from the toast. For a borrowed one, the dashboard it comes from, in edit mode, in a new tab |
| Where used | The same, opened at the Where used tab |
| Show what it built | Swaps the card for the YAML it built, and back with Show the card again |
| Eject from the template | Replaces the card with what it builds, the same as Replace this card with what it builds. Undoable from the toast |
Edit template and Where used are left out when the template cannot be opened from here, such as one defined inside a stack.
Outside edit mode nothing is drawn. There is no chip:
- in a sections view. Home Assistant lays its own edit overlay over every card there, so a chip could never be clicked; the card’s own Edit button does the job;
- on a card with
fit: contents, which has no box to hang it on; - on a row, a badge or a picture element;
- on the template card itself, or on the preview inside an edit dialog.
Keyboard and screen readers (v2.9.0+)
Both editors can be worked from the keyboard and read out:
- The tab strip. The arrow keys move from tab to tab and show each one, leaving the focus on the strip so you can keep going. Enter or Space goes into the tab, putting the focus on its first heading, so the next Tab reaches the first control in it rather than the top of the dialog. A click leaves the focus where it was.
- Announcements. A screen reader is told when the export is copied, and when a rewrite has saved the dashboard and can be undone.
- Drag handles are labelled for a screen reader: on the declared variables, a group’s cards and the items of a repeat’s list.
- Reduced motion. When the system asks for less motion, the editors, the gallery and the card drop their transitions and animations.
Editing rows and elements
Rows and picture elements have no card picker entry, so add them in YAML:
- Add (or open) an Entities or Picture Elements card.
- Click Show code editor.
- Add the entry to
entities:orelements:as shown in Rows / Elements.
The template itself can still be built with the visual template editor.
When you would rather use YAML
Everything the editors do is plain configuration. ⋮ → Raw configuration editor on the dashboard gives you the whole thing at once, which is usually faster for defining several templates — see Defining Templates.
→ Defining Templates · Using Templates
The template editor’s Share tab exports a template for someone else, and imports one they sent you — see Sharing a Template.