Модуль:Отексте: различия между версиями
[досмотренная версия] | [досмотренная версия] |
Содержимое удалено Содержимое добавлено
Vladis13 (обсуждение | вклад) повтор Метка: отмена |
Vladis13 (обсуждение | вклад) + ДАТАПУБЛИКАЦИИОРИГИНАЛА |
||
Строка 134:
origTitle = nodict and is( pargs["НАЗВАНИЕОРИГИНАЛА"] ),
origSub = nodict and is( pargs["ПОДЗАГОЛОВОКОРИГИНАЛА"] ),
origPublished = nodict and is( pargs["ДАТАПУБЛИКАЦИИОРИГИНАЛА"] ),
translator = nodict and is( pargs["ПЕРЕВОДЧИК"] ),
index = nodict and is( pargs["СОДЕРЖАНИЕ"] ),
Строка 1077 ⟶ 1078 :
function renderNotes ( frame )
-- Languages
local ol, os, ot, od = data.p.origLang, data.p.origSub, data.p.origTitle, data.p.origPublished
local
if isTrans then
local langs = mw.loadData('Модуль:Отексте/transl-lang')
if not langs[ol] then ol = "un" end
if ot then
lang = s.lang[isPRS] .. langs[ol][isPRS]▼
if os then os = " : " .. os; addCat(s.cat.pageWithSub) else os = "" end
if od then orig_str = orig_str .. ", опубл.: " .. od end
else
end
addCat ( s.cat.transFrom .. langs[ol]["cat"] .. "]]" )
end
Строка 1094 ⟶ 1100 :
if data.p.cycle and data.p.collection then coll_pre = "сб. " else coll_pre = s.collection[isPRS] end
local
if isTrans then
if created and published then publ_pre = ", опубл.: " else publ_pre = "Опубл.: " end▼
if created and published then
if created then created = s.created[isPRS] .. created else created = "" end▼
dates = "Перевод созд.: " .. created .. ', опубл: ' .. published
if published then published = publ_pre .. published else published = "" end▼
dates = "Перевод созд.: " .. created
elseif published then
dates = "Перевод опубл.: " .. published
end
else
local publ_pre
dates = created .. published
end
if is( dates ) then dates = dates .. ". " else dates = "" end
Строка 1113 ⟶ 1130 :
local lawdeprecated = data.lawdeprecated or data.p.lawdeprecated
-- separators
if isData or other then if is(
if isData then
if other then other = " • " .. other else other = "" end
Строка 1123 ⟶ 1140 :
-- render
local result = mw.html.create( "td" )
result:wikitext (
if data.p.index then
|