Изменения

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

131 байт добавлено, 14:25, 24 октября 2018
м
Удаление ссылок на ванильные предметы и блоки
local duration = ''
if args["название"] or args["показатьимя"] == '1' or multirow and args["показатьимя"] ~= '0' then
name = 'width="150" | Название !! '
f:callParserFunction( '#dplvar:set', 'brewingname', '1' )
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 fuel =fuelslot ~= 'Огненный порошок' then ingredientsCell = args["ингредиенты"] .. ' +<br>[[Огненный порошок(топливо)' elseif args["ингредиенты"]or '' ~= '' then ingredientsCell = args["ингредиенты"]'
else
ingredientsCell = {}
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
1136
правок