Copying from Lua2WikiGenerator