This first version works with the following syntax:
twig
1{{ ' text before if not empty ' key1>key2...|modifier1|modifier2... ' text after if not empty' }}1. Display the source social account name or domain in uppercase between brackets#
twig
1{{ '[' post.source.social_account_name>post.source.caption_domain|upper ']' }} :2. Display authors with each word capitalized#
twig
1{{ ' by ' post.source.authors|lower|ucPhrase }}3. Display the Page city when available#
twig
1{{ ' in ' post.social_account.place.fr.city.name|capitalize }}4. Display "via Page name" with two line breaks before it#
twig
1{{ '\n\nvia ' post.source.social_account_name>post.source.caption_domain }}5. Available modifiers#
You can use upper, lower, capitalize, slugify, camel, clean, ucPhrase and empty.