Warning.png

Поддержка Wiki прекращена, она доступна в режиме архива. Информация в ней устарела и может быть неактуальной.

Изменения

Перейти к: навигация, поиск

Модуль:Варка

289 байтов добавлено, 14:25, 24 октября 2018
м
Удаление ссылок на ванильные предметы и блоки
end
header = table.concat( {
' {| class="wikitable ' .. class .. '"style="text-align:center" data-description="Рецепты Схема варки"', '! ' .. name .. 'width="150" | Ингредиенты !! ' .. recipeClass .. ' Рецепты [[Зельеварение|Схема варки]]' .. effect .. duration .. description,
'|-'
}, '\n' )
local link = ''
if parts.mod then
link = '[[' .. parts.mod .. '/' .. parts.name .. '|'.. parts.name .. ']]' else link = parts.name
end
if parts.name:find( '^Люб' ) then
table.insert( links, mw.ustring.sub( parts.name, 0, 6 ) .. '[[' .. link .. mw.ustring.sub( parts.name, 6 ) .. ']]' )
else
table.insert( links, '[[' .. link .. parts.name .. ']]' )
end
names[( parts.mod or '' ) .. parts.name] = 1
if nameCell and args["запланированное"] then
nameCell = nameCell .. '<br>([[' .. args["запланированное"] .. ']])'
end
-- Ячейка с ингредиентами
local ingredientsCell
if args["ингредиенты"] or '' ~= '' and fuelslot ~= '' then ingredientsCell = args["ингредиенты"] .. ' +<br>Огненный порошок (топливо)' elseif args["ингредиенты"] or '' ~= '' then
ingredientsCell = args["ингредиенты"]
else
end
if parts.mod then link = '[[' .. parts.mod .. '/' .. parts.name .. '|'.. parts.name .. ']]' else link = parts.name end if parts.name:find( '^Люб' ) then table.insert( ingredientsCell, separator .. mw.ustring.sub( parts.name, 0, 6 ) .. '[[' .. link .. mw.ustring.sub( parts.name, 6 ) .. ']]' ) else table.insert( ingredientsCell, separator .. '[[' .. link .. parts.name .. ']]' ) end
separator = ''
end
end
if fuelslot ~= '' then ingredientsCell = table.concat( ingredientsCell ) .. '&nbsp;+<br>\nОгненный порошок (топливо)' else ingredientsCell = table.concat( ingredientsCell ) end
end
newArgs["В1назв"] = args["В2назв"]
newArgs["В3назв"] = args["В3назв"]
newArgs.fuelslot = fuelslot
-- Ячейка с рецептом
local effectCell = args["эффект"] or ''
if f:callParserFunction( '#dplvar', 'brewingeffect' ) == '1' then
table.insert( row, 'style="text-align:center" |' .. effectCell )
end
local durationCell = args["продолжительность"] or ''
if f:callParserFunction( '#dplvar', 'brewingduration' ) == '1' then
table.insert( row, 'style="text-align:center" |' .. durationCell )
end
local descriptionCell = args["описание"] or ''
if f:callParserFunction( '#dplvar', 'brewingdescription' ) == '1' then
table.insert( row, 'style="text-align:center" |' .. descriptionCell )
end
1136
правок

Навигация