On 23/08/12 01:23, Neil Harris wrote:
> Just a thought: has someone yet considered a script for automatically
> transforming existing templates from template wikisyntax to Lua? I
> wouldn't have thought it would be too hard for many common cases,
> although obviously it wouldn't make any sense to translate
> pathological Wikitext templates into pathological Lua.

Yes, in August 2011 I wrote a wikitext to Lua translator and put it in
the LuaFoo extension. The code it generates doesn't actually work,
since it replaces parser function calls with calls to nonexistent Lua
functions. It was written before we decided what the MediaWiki to Lua
interface would look like.

Even if it did work, it would be ugly and slow. I'm not sure if it
would be a useful starting point.

-- Tim Starling


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to