Изменения

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

20 байтов убрано, 14:25, 24 октября 2018
м
Удаление ссылок на ванильные предметы и блоки
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["ингредиенты"]
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
if fuelslot ~= '' then
ingredientsCell = table.concat( ingredientsCell ) .. '&nbsp;+<br>\n[[Огненный nОгненный порошок]] (топливо)'
else
ingredientsCell = table.concat( ingredientsCell )
local newArgs = {}
if args["показатьресурс"] == '1' then
newArgs["ВыходВыход2"] = base or args["Ресурс"] newArgs["Выход2Выход1"] = args["Ресурс2"]
newArgs["Выход3"] = args["Ресурс3"]
else
1136
правок