Hi there and happy New Year._______________________________________________I think such a script would be a good idea. We already have textlib.glue_template_and_params which is able to format templates extracted with extract_templates_and_params. But the formatting of the glue… function is very rudimentary and some formatting options should be added.I made a test edit on test wiki. For the current Infobox content it worked fine.BestxqtVon meinem iPhone gesendetAm 02.01.2025 um 09:46 schrieb Bináris <wikiposta@gmail.com>:I have the same problem and have been thinking on his for a while.Not only for infoboxes, but cite xxx templates as well which make the source text unreadable for humans.So if you do it earlier, please share. :-)I think it is a general problem. We guessed that some builtin editor creates these oneliner templates.Huji Lee <huji.huji@gmail.com> ezt írta (időpont: 2025. jan. 2., Cs, 4:32):_______________________________________________Hi PWB friends,I was about to write a bot script but figured I should ask her first. On fawiki, I occasionally run into pages where the infobox template at the top of the page is squished into one very long line, as opposed to being multiline. Look at this example I made on testwiki; I want to turn it to something looking like this. I have a reasonable sense of how to write the bot script and what possible edge cases to watch for, but I wonder if someone may have already written a script for this purpose.LMK,Huji
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/DQO23QHDXHWUZD6QNZVLLRMUMRRM3T5O/
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
--Bináris_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/QBPWYT7IL5HZ4GFUM4GFQX2XRSWVABUE/
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/2SSNT263SJ34KOMA4G3G32YEQYPWQCRX/
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org