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

м
+имя автора с инициалами
м (+автор)
м (+имя автора с инициалами)
Строка 112: Строка 112:
--  | origin      = Origin  
--  | origin      = Origin  
--  | wiki_page    = Wiki page title  
--  | wiki_page    = Wiki page title  
--  | author      = Author of a book or an article. Applied to literature.
--  | author      = Author of a book or an article; applied to literature
--  | published    = Book or article published. Applied to literature.
--  | author_short = Name with initials
--  | published    = Book or article published; applied to literature
--  | userparam    = text@view@type@style  
--  | userparam    = text@view@type@style  
-- }}
-- }}
Строка 215: Строка 216:
-- set author if we deal with literature
-- set author if we deal with literature
if not isempty(frame.args['author']) then
if not isempty(frame.args['author_short']) then
term_to_show = frame.args['author_short'] ..', «'.. term_to_show ..'»'
elseif not isempty(frame.args['author']) then
term_to_show = frame.args['author'] ..', «'.. term_to_show ..'»'
term_to_show = frame.args['author'] ..', «'.. term_to_show ..'»'
end
end