Изменения
Перейти к навигации
Перейти к поиску
Строка 147:
Строка 147:
− if mode == 1 or mode == 2 then +
− iw_tooltip = string.format('Элемент статьи «%s» в Викиданных', ucfirst_title)+
− elseif mode == 5 then
− iw_tooltip = string.format('Страница статьи «%s» в Викиданных', ucfirst_title)
− iw_title = iw_title .. '#sitelinks-wikipedia' -- осторожно, может сломать что-то
− end
− if mode == 1 or mode == 2 then +
− iw_tooltip = string.format('Версия статьи «%s» на %s', ucfirst_title, prepositional(lang))+
− elseif mode == 4 then+
− iw_tooltip = string.format('Эквивалент статьи «%s» на %s', ucfirst_title, prepositional(lang))+
− elseif mode == 5 then+
− local pref
− if is_empty(orig_iw_title) then
− pref = 'Версия статьи'
− else
− pref = string.format('%s — версия статьи', iw_title)
− end
− iw_tooltip = string.format('%s «%s» на %s', pref, ucfirst_title, prepositional(lang))
+
начало реализации второй части ВП:ФТ#Общий модуль для шаблонов Не переведено
local ucfirst_title = mw.getContentLanguage():ucfirst(title)
local ucfirst_title = mw.getContentLanguage():ucfirst(title)
if lang == 'd' then
if lang == 'd' then
iw_tooltip = string.format('Элемент статьи «%s» в Викиданных', ucfirst_title)
iw_title = iw_title .. '#sitelinks-wikipedia' -- осторожно, может сломать что-то
else
else
local pref
if is_empty(orig_iw_title) then
pref = 'Версия статьи'
else
pref = string.format('%s — версия статьи', iw_title)
end
end
iw_tooltip = string.format('%s «%s» на %s', pref, ucfirst_title, prepositional(lang))
end
end