12,303
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 57: | Line 57: | ||
end | end | ||
elseif data[args[i]] and (args[i-1] == "" or args[i-1] == nil) and args[i+1] then | elseif data[args[i]] and (args[i-1] == "" or args[i-1] == nil) and args[i+1] then | ||
if not args["nocat"] then out = out .. "[[Category:Terms with " .. language.name .. " translations]] " end | if not args["nocat"] then out = out .. "[[Category:Terms with " .. language.name .. " translations|" .. mw.title.getCurrentTitle().subpageText .. "]] " end | ||
language = data[args[i]] | language = data[args[i]] | ||
out = out .. export.get_flag(language.code) .. " " | out = out .. export.get_flag(language.code) .. " " | ||
Line 69: | Line 69: | ||
end | end | ||
if not args["nocat"] then out = out .. "[[Category:Terms with " .. language.name .. " translations]]" end | if not args["nocat"] then out = out .. "[[Category:Terms with " .. language.name .. " translations|" .. mw.title.getCurrentTitle().subpageText .. "]]" end | ||
return out | return out |