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

[досмотренная версия][досмотренная версия]
Содержимое удалено Содержимое добавлено
Нет описания правки
+ ДРУГИЕПЕРЕВОДЫ
Строка 136:
origPublished = nodict and is( pargs["ДАТАПУБЛИКАЦИИОРИГИНАЛА"] ),
translator = nodict and is( pargs["ПЕРЕВОДЧИК"] ),
other_translations = nodict and is( pargs["ДРУГИЕПЕРЕВОДЫ"] ),
index = nodict and is( pargs["СОДЕРЖАНИЕ"] ),
cycle = nodict and is( pargs["ИЗЦИКЛА"] ),
Строка 1287 ⟶ 1288 :
for _, cat in pairs(other_sources.categories) do addCat ( cat ) end
 
local disambig, other_translations, warning = data.p.disambig, data.p.other_translations, data.p.warning
 
-- render
Строка 1309 ⟶ 1310 :
:wikitext ( warning )
else
local div_left = div:tag ( "div" )
mw.logObject(other_translations,"other_translations")
if disambig then
mw.logObject(str_left,"str_left")
div_left:tag ( "span" ):attr( 'id', 'disambig_link' )
if disambig or other_translations then
:wikitext ( "[[Файл:Disambig.svg|100x13px|link=" .. disambig .. "]] '''[[" .. disambig .. "|" .. s.disambig[isPRS] .. "]]'''" )
local str_left = ''
if disambig then
:wikitext str_left = ( "[[Файл:Disambig.svg|100x13px|link=" .. disambig .. "]] '''[[" .. disambig .. "|" .. s.disambig[isPRS] .. "]]'''" )
end
if other_translations then
if disambig then
str_left = str_left .. " • "
end
str_left = str_left .. "'''[[" .. other_translations .. "|Другие переводы]]'''"
end
div_left:tag ( "span" ):attr( 'id', 'disambig_link' ):wikitext( str_left )
end
if encyclopedies then