Continuing #LuaModules: recently I rewrote templates on #translatewiki that show messages in message documentation: https://translatewiki.net/wiki/Module:Msg

Compared to wikitext version, Lua module does not break lists for multiline messages (important for accessibility), and handles errors and different states better. Also, Lua is just much easier tor read than this: https://translatewiki.net/?diff=12692255

Module:Msg - translatewiki.net

#LuaModules are the only cool way to write complex wikitext templates in #MediaWiki. I want to showcase great stuff me or others have done with it.

Starting with: https://ru.wikipedia.org/wiki/Модуль:Вложенный_список is a Lua module for displaying disambiguation pages as sublists. Compared to previous wikitext, this module
— improved accessibility of HTML,
— allowed not to worry about template loops any more,
— added checks for HTML validity and page problems.

Lua made this very easy and made code easy to extend in future.

Модуль:Вложенный список — Википедия