Custom shortcodes and templates (inspired by WordPress).
The ba=1 argument indicates that if the tag is not excluded, everything in the same row is deleted (including \n).
$avail_vars is an array of values convertible to string or callables that return that type of value.