Изменения

м
Нет описания правки
Строка 138: Строка 138:  
local output_str = '' -- result string to show
 
local output_str = '' -- result string to show
 
-- variables for 'view' parameter
 
-- variables for 'view' parameter
local view_popup, view_footnote, view_brackets = false
+
local view_popup, view_footnote, view_brackets, view_link = false
 
-- variables for 'style' parameter
 
-- variables for 'style' parameter
 
local font_grey      = false  -- make font grey
 
local font_grey      = false  -- make font grey
Строка 251: Строка 251:  
term_with_link    = term_with_link    ..', '.. specification
 
term_with_link    = term_with_link    ..', '.. specification
 
term_without_link = term_without_link ..', '.. specification
 
term_without_link = term_without_link ..', '.. specification
 +
end
 +
 +
-- add LINK to original text
 +
if view_link then
 +
if not isempty(frame.args['wiki_page']) then
 +
text = '[['.. frame.args['wiki_page'] ..'|'.. text ..']]'
 +
end
 
end
 
end