10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
function export.format(frame) | function export.format(frame) | ||
local args = getArgs(frame) | local args = getArgs(frame) | ||
local current = mw.title.makeTitle("", args["entry"] | local current = (args["entry"] and mw.title.makeTitle("", args["entry"])) or mw.title.getCurrentTitle() | ||
local language = m_languages.get_by_code(args[1]) | local language = m_languages.get_by_code(args[1]) | ||