Custom Text fields on sheet/sheet border

In 5.99 (the unstable development version, nightly builds) it’s possible to use text replacement variables.

These variables are a more generic mechanism, see New string replacement options for kicad assets. The page layout comments may be seen as legacy. But this doesn’t work in the current stable version.