HowTo use variables in WATO for hosts or rules?

but also I have found an old Post

perhaps @andreas-doehler can help