Изменения
тьфу ты, без новой строки не вставляются таблицы, с новой строкой создаётся абзац и растягивается wikitable. сделал анализ содержимого
elseif style == 'wikitable' then
elseif style == 'wikitable' then
tag = 'tt'
tag = 'tt'
sep = '\n|\n'
sep = '\n|'
end
end
local nwt = tag and mw.html.create(tag):tag(tag) --"no-wiki tag", внутри него шаблон не вызывается
local nwt = tag and mw.html.create(tag):tag(tag) --"no-wiki tag", внутри него шаблон не вызывается
targs['nocat'] = 1
targs['nocat'] = 1
end
end
return tostring(nwt) .. ' ' .. sep .. pre_text .. tostring(expand(frame, tname, targs)) .. post_text
expand_result = tostring(expand(frame, tname, targs))
if (expand_result:sub(1, 2) == '{|') then
sep = sep .. '\n'
end
return tostring(nwt) .. ' ' .. sep .. pre_text .. expand_result .. post_text
end
end
return p
return p