Строка 127: |
Строка 127: |
| local description = '' | | local description = '' |
| local origin = '' | | local origin = '' |
| + | local lifetime = '' |
| local term_link = '' | | local term_link = '' |
| local bts = '<span style="border-bottom: 1px dotted gray; cursor:help;" title="Большой теософский словарь">БТС</span>' | | local bts = '<span style="border-bottom: 1px dotted gray; cursor:help;" title="Большой теософский словарь">БТС</span>' |
Строка 186: |
Строка 187: |
| end | | end |
| origin = origin .. ')' | | origin = origin .. ')' |
| + | end |
| + | |
| + | -- construct lifetime string for pop-up message |
| + | if not isempty(frame.args['lifetime']) then |
| + | if term_type == 'личность' then |
| + | lifetime = ' Время жизни: ' |
| + | elseif term_type == 'выражение' then |
| + | lifetime = ' Время применения: ' |
| + | else |
| + | lifetime = ' Время существования: ' |
| + | end |
| + | lifetime = lifetime .. frame.args['lifetime'] .. '.' |
| end | | end |
| | | |
Строка 195: |
Строка 208: |
| -- considering type of view | | -- considering type of view |
| if view == 'подсказка' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then | | if view == 'подсказка' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then |
− | text = '<span style="border-bottom: 1px dotted gray; cursor: help;" title="' .. description ..' (БТС, ' .. term .. ').">' .. text .. '</span>' | + | text = '<span style="border-bottom: 1px dotted gray; cursor: help;" title="' .. description .. lifetime .. ' (БТС, ' .. term .. ').">' .. text .. '</span>' |
| end | | end |
| if view == 'сноска' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then | | if view == 'сноска' or view == 'сноска и подсказка' or view == 'подсказка и сноска' then |
Строка 214: |
Строка 227: |
| -- DEBUG | | -- DEBUG |
| --text = '- view ='.. view ..'\n- type ='.. term_type ..'\n- style ='.. tostring(style) ..'\n- text ='.. text ..'\nOUTPUT: \n' | | --text = '- view ='.. view ..'\n- type ='.. term_type ..'\n- style ='.. tostring(style) ..'\n- text ='.. text ..'\nOUTPUT: \n' |
− | --return text .. reference | + | return text .. reference |
| | | |
− | return frame:preprocess( text .. reference ) | + | -- return frame:preprocess( text .. reference ) |
| end | | end |
| | | |
| return ctd | | return ctd |