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

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

м
нет описания правки
мНет описания правки
мНет описания правки
Строка 5: Строка 5:
end
end


function test( frame )
local i, j = string.find(frame.args['userparam'],'@',1,true)
local sub1 =  string.sub( string.lower(frame.args['userparam']), i )
  return 'i=' .. i .. 'j=' .. 'sub1=' .. sub1
end


-- Invoke information from CTD about a term and shows it in footnote, pop-up or right next to term in square brackets.
-- Invoke information from CTD about a term and shows it in footnote, pop-up or right next to term in square brackets.
Строка 20: Строка 26:
local i, j = string.find(frame.args['userparam'],'@',1,true)
local i, j = string.find(frame.args['userparam'],'@',1,true)
local text = string.sub(frame.args['userparam'],1,i-1)
local text = string.sub(frame.args['userparam'],1,i-1)
local view string.sub( string.lower(frame.args['userparam']), i )
local view = string.sub( string.lower(frame.args['userparam']), i )


-- check if 'term' or 'term to show' are specified
-- check if 'term' or 'term to show' are specified