Изменения
ВП:ФТ#Старый синтаксис в шаблоне Не переведено
}
}
if is_empty(args[1]) and ( is_empty(args['есть']) or not args['есть']:match('^:[a-z-]+:') ) then
if is_empty(args[1]) then
if allow_cat then
if allow_cat then
categories = categories .. orphan_categories['error']
categories = categories .. orphan_categories['error']
end
end
if not is_empty(args['есть']) or args[1]:match('^:[a-z-]+:') then
if args[1]:match('^:[a-z-]+:') then
local temp
local temp = args[1]
args[1] = args[2] or ''
args[2] = args[3]
args[1] = args['надо'] or args['нужно'] or args[2] or ''
args[2] = args['текст'] or args[3]
args[3] = temp:gsub('^:([a-z-]+):(.+)$', '%1')
args[3] = temp:gsub('^:([a-z-]+):(.+)$', '%1')
args[4] = temp:gsub('^:([a-z-]+):(.+)$', '%2')
args[4] = temp:gsub('^:([a-z-]+):(.+)$', '%2')