2734
правки
Изменения
Нет описания правки
local p = {}
local slot = require( [[Module:Inventory slot]] )
local getParts = slot.getParts
local prefixes = slot.prefixes
local function prefixedLink( name, mod )
local prefix = ''
for _, thisPrefix in pairs( prefixes ) do
if name:find( '^' .. thisPrefix .. ' ' ) then
prefix = thisPrefix .. ' '
name = name:gsub( '^' .. prefix, '' )
break
end
end
local page = ''
if mod and mod ~= '' then
page = 'Mods/' .. mod .. '/'
end
return prefix .. '[[' .. page .. name .. '|' .. name .. ']]'
end
function p.table( f )
local args = f
f = mw.getCurrentFrame()
end
-- Start table when appropriate
end
-- Name cell
local nameCell
local links = {}
for v in mw.text.gsplit( args[2] or '', '%s*;%s*' ) do
parts = getParts( v , args.Mod )
if not names[( parts.mod or '' ) .. parts.name] then
local link = ''
nameCell = table.concat( links, ' or<br>' )
end
if nameCell and args.upcoming then
nameCell = nameCell .. '<br>([[' .. args.upcoming .. ']])'
end
for item in mw.text.gsplit( v, '%s*;%s*' ) do
local parts = getParts( item , args.Mod )
if parts.name ~= '' and not ingredients[parts.name] and ( k == 2 or k == 1 and v ~= fuel ) then
local link = ''
Otitle = args.Otitle,
Ftitle = args.Ftitle,
Mod = args.Mod, Progress = args.Progress
}
-- Recipe cell
local recipeCell = require( 'Module:UI' ).furnace( newArgs )