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

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

м
нет описания правки
мНет описания правки
мНет описания правки
Строка 220: Строка 220:
-- set hyperlink if there is a wiki page for a term
-- set hyperlink if there is a wiki page for a term
local term_without_link = term_to_show
if not isempty(frame.args['wiki_page']) then
if not isempty(frame.args['wiki_page']) then
term_to_show = '[['.. frame.args['wiki_page'] ..'|'.. term_to_show ..']]'
term_to_show = '[['.. frame.args['wiki_page'] ..'|'.. term_to_show ..']]'
Строка 239: Строка 240:
local popup_str = description .. lifetime
local popup_str = description .. lifetime
if term_type == 'литература' then
if term_type == 'литература' then
popup_str = term_to_show ..', '.. lifetime
popup_str = term_without_link ..', '.. lifetime_short
elseif term_type == 'литература с оригиналом' then
elseif term_type == 'литература с оригиналом' then
popup_str = term_to_show ..', '.. lifetime ..' '.. origin
popup_str = term_without_link ..', '.. lifetime_short ..' '.. origin
end
end
text = '<span style="border-bottom: 1px dotted gray; cursor: help;" title="' .. popup_str .. ' (БТС, ' .. term .. ').">' .. text .. '</span>'   
text = '<span style="border-bottom: 1px dotted gray; cursor: help;" title="' .. popup_str .. ' (БТС, ' .. term .. ').">' .. text .. '</span>'