View Single Post
Old 05-25-2025, 05:38 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The template function swap_around_articles() should do what you want. If putting the article on the end is all you want then this template should do
Code:
{publisher:swap_around_articles()}
Note that it uses a semicolon instead of a comma because publisher names can include commas.

If you want a comma instead of a semicolon then this template should do:
Code:
{publisher:'re(swap_around_articles($, ','), ';', ',')'}
This converts all semicolons to commas.

Last edited by chaley; 05-25-2025 at 06:04 AM. Reason: change "formatter function" to "template function"
chaley is offline   Reply With Quote