Перейти к содержанию

Модуль:CTD: различия между версиями

м
+addition
м (+имя автора с инициалами)
м (+addition)
Строка 115: Строка 115:
--  | author_short = Name with initials
--  | author_short = Name with initials
--  | published    = Book or article published; applied to literature
--  | published    = Book or article published; applied to literature
--  | userparam    = text@view@type@style  
--  | userparam    = text@view@type@style@addition
-- }}
-- }}
-- Where 'userparam' consist of all the parameters that can not be fetched by symantic property:
-- Where 'userparam' consist of all the parameters that can not be fetched by symantic property:
Строка 140: Строка 140:
-- split 'userparam' in variables
-- split 'userparam' in variables
local t = split_string(frame.args['userparam'],'@')
local t = split_string(frame.args['userparam'],'@')
local text, view, term_type, style = t[1], t[2], t[3], t[4]
local text, view, term_type, style, addition = t[1], t[2], t[3], t[4], t[5]
if isempty(view) then view = 'подсказка' end
if isempty(view) then view = 'подсказка' end
if isempty(term_type) then term_type = 'понятие' end
if isempty(term_type) then term_type = 'понятие' end
Строка 168: Строка 168:
else
else
description = frame.args['description']
description = frame.args['description']
end
if not isempty(addition) then
description = description ..', '.. addition
end
end