Изменения

Перейти к навигации Перейти к поиску
Возможность задавать псевдонимы шаблонов в таблице через параметр "_alias".
Строка 151: Строка 151:  
end
 
end
 
 
table.insert(targs, 1, tname)
+
local targs_tname = targs._alias
 +
if not targs_tname then
 +
targs_tname = tname
 +
end
 +
table.insert(targs, 1, targs_tname)
 
targs._sep, targs._style, targs._nobr, targs._nocat, targs._spaced, targs._comment_sep = sep, style, nobr,
 
targs._sep, targs._style, targs._nobr, targs._nocat, targs._spaced, targs._comment_sep = sep, style, nobr,
 
nocat, spaced, comment_sep
 
nocat, spaced, comment_sep
 +
 
if not targs._prefix then
 
if not targs._prefix then
 
targs._prefix = prefix
 
targs._prefix = prefix
Анонимный участник

Реклама:

Навигация