Error code · a mistake in the document

dt::param

A tile has no parameters: only a definition does.

What to do

Move the param line into a define, or write a let in the tile.

The rule

A define has param lines and one stack. It is called like an element; its params are set as properties, and a place (at=) passes through to the elements inside it. A definition can call another. A definition whose stack is one thing is itself a thing, so it can be placed with at= or scattered: scatter count=2 { oak }. Definitions that call each other in a loop are an error (dt::loop).

Read it in context: Parts · A define is a stack with params, called like an element