Изменения

[д.] -> [вд]
Строка 134: Строка 134:  
-- определение какой из шаблонов "не переведено N"
 
-- определение какой из шаблонов "не переведено N"
 
local mode = tonumber(args['mode'])
 
local mode = tonumber(args['mode'])
 +
mode = mode == 2 and 2 or 5
 
local template_name = 'Не переведено'
 
local template_name = 'Не переведено'
if mode ~= 1 then
+
if mode ~= 5 then
 
template_name = template_name .. ' ' .. tostring(mode)
 
template_name = template_name .. ' ' .. tostring(mode)
 
end
 
end
Строка 360: Строка 361:  
-- для шаблона "не переведено 5"
 
-- для шаблона "не переведено 5"
 
else
 
else
 +
local langText = '[???]'
 +
if lang == 'd' then
 +
langText = '[вд]'
 +
else
 +
langText = '[' .. ( languages[ lang ] and languages[ lang ][ 1 ] or lang ) .. ']'
 +
end
 +
 
post_text = string.format(
 
post_text = string.format(
'<sup>%s</sup>',
+
'<sup class="noprint" style="font-style:normal; font-weight:normal;">%s</sup>',
wikilink(iw_title, '[' .. lang .. ']', iw_tooltip, lang)
+
wikilink(iw_title, langText, iw_tooltip, lang)
 
)
 
)
 
end
 
end
end
  −
  −
if mode == 3 or mode == 4 or mode == 5 then -- TODO: или для всех?
  −
post_text = string.format('<span class="noprint" style="font-style:normal; font-weight:normal;">%s</span>', post_text)
   
end
 
end
 
 
Анонимный участник