Изменения
выкинул первый параметр
local trim = not (yesno(frame:getParent().args.trim or frame:getParent().args._trim, false) == false) --по умолчанию true
local trim = not (yesno(frame:getParent().args.trim or frame:getParent().args._trim, false) == false) --по умолчанию true
local args = copy(getArgs(frame, {trim = trim, removeBlanks = false})) --copy(frame.args)
local args = copy(getArgs(frame, {trim = trim, removeBlanks = false})) --copy(frame.args)
local tname = args.t or args._t or args.template or args._template or args[1]
local tname = args.t or args._t or args.template or args._template
local opener = args.opener or args._opener or '* '
local opener = args.opener or args._opener or '* '
local sep = args.sep or args._sep
local sep = args.sep or args._sep
if tname == '' or tname == nil then --при опущенном первом параметре берём имя шаблона из названия страницы
if tname == '' or tname == nil then --при опущенном первом параметре берём имя шаблона из названия страницы
tname = mw.language.new('ru'):lcfirst(mw.title.getCurrentTitle().rootText)
tname = mw.language.new('ru'):lcfirst(mw.title.getCurrentTitle().rootText)
end
end