Изменения

Перейти к навигации Перейти к поиску
104 байта добавлено ,  02:27, 15 марта 2023
м
Нет описания правки
Строка 195: Строка 195:  
if view == 'сноска' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then
 
if view == 'сноска' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then
 
reference =  term_to_show .. origin .. ' – ' .. description .. ' ('.. bts ..').'
 
reference =  term_to_show .. origin .. ' – ' .. description .. ' ('.. bts ..').'
if not isempty(frame.args['style']) then  -- there is only one additional style for now, so ignore the value
+
if not isempty(style) then  -- there is only one additional style for now, so ignore the value
 
reference = '<span style="color: gray;">' .. reference ..'</span>'
 
reference = '<span style="color: gray;">' .. reference ..'</span>'
 
end
 
end
Строка 201: Строка 201:  
end
 
end
 
if view == 'скобки' then
 
if view == 'скобки' then
text = text .. ' [' .. description .. ']'
+
if isempty(style) then
 +
text = text .. ' [' .. description .. ']'
 +
else
 +
text = text .. ' <span style="color: gray;">[' .. description .. ']</span>'
 +
end
 
end
 
end
  

Навигация