2734
правки
Изменения
Нет описания правки
end
-- Name cell
local nameCell
if args.name or '' ~= '' then nameCell = args.name elseif multirow or f:callParserFunction( '#dplvar', 'smeltingname' ) == '1' then if args.name or '' ~= '' then nameCell = args.name else local names = {} local links = {} for v in mw.text.gsplit( args.Output [2] or '', '%s*;%s*' ) do parts = getParts( v, args.Mod ) parts.mod = parts.mod or '' if not names[( parts.mod .. or ':' ) .. parts.name] then table.insert( links, prefixedLink( parts.name, local link = '' if parts.mod ) )then names[link = 'Mods/' .. parts.mod .. ':/' .. parts.name] = 1.. '|'
end
if parts.name:find( '^Any ' ) then
table.insert( links, 'Any [[' .. link .. parts.name:sub( 4 ) .. ']]' )
else
table.insert( links, '[[' .. link .. parts.name .. ']]' )
end
names[( parts.mod or '' ) .. parts.name] = 1
end
end
nameCell = table.concat( links, ' or<br>' )
end
if nameCell and args.upcoming then
nameCell = nameCell .. '<br>([[' .. args.upcoming .. ']])'