add 'variables' to reference metadata (e.g. '[%title]')