Content deleted Content added
No edit summary |
No edit summary |
||
Line 344:
local cat_page_title = mw.title.getCurrentTitle().text; -- get the category title
local lang_name;
local index; -- positional parameter index
mw.logObject (cat_page_title, 'cat_page_title')
for i, v in ipairs (args) do
Line 355 ⟶ 357:
if not mw.ustring.find (cat_page_title, lang_name, 1, true) then
err = true;
index = i;
break; -- abandon on first error
end
end
mw.logObject (args);
return err and '<span style=\"font-size:100%; font-style:normal;\" class=\"error\">error: language: ' .. lang_name .. ' from {{{' .. index .. '}}} (' .. args[index] .. ') not found in category title.</span>[[Category:Lang and lang-xx template errors]]' or nil;
end
|