Изменения
getArgs
function p.main(frame)
function p.main(frame)
local args = copy(frame.args)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
local args = copy(getArgs(frame)) --copy(frame.args)
local tag = args._tag or 'code'
local tag = args._tag or 'code'
local sep = args._sep or '→'
local sep = args._sep or '→'
local nwt = mw.html.create(tag):tag(tag)
local nwt = mw.html.create(tag):tag(tag)
local content = '{{'
local content = '{{'
local tname = ''
local tname = args._template or args[1]
if args._template then
if args._template == nil then
table.remove(args,1)
table.remove(args,1)
end
end