For me, Wikifunctions is going to be the fourth evolution of scripting for MediaWiki's markup system:
1) Substitution-based markup expansions taking advantage of our localization system being exposed to markup
2) An explicit template system for supporting markup expansion on purpose, with callable functions for string processing
3) Lua modules that can input and output structured parse frames for more advanced data processing
4) Multiple languages, rich types & closures, explicit management of caching