Module:User:Kephir

local export = {}

function export.get_parser_mode(frame) if mw.isSubsting then return 'subst/pst' elseif frame:preprocess "" ~= "" then return 'normal' elseif frame:preprocess "" ~= "" then return 'preview' elseif frame:preprocess " " == " " then return 'expandtemplates' elseif mw.title.getCurrentTitle.namespace == 828 then return 'luaconsole' else return 'echo' end end

return export