ARK: Survival Evolved Wiki
Advertisement

Для документации этого модуля может быть создана страница Модуль:TranslateForInfoboxes/doc

local p = {}
function p.data( f )
	local args	= {}
	local alias	= f:getParent().args[1]
	for i = 1, #f:getParent().args - 1 do
		args[i] = f:getParent().args[i+1]
	end
	return #f:getParent().args
end

function p.link( tn, args )
	if tn == nil then
		return ''
	end

	local aliases = mw.loadData('Модуль:TranslateForInfoboxes/aliases')
	if aliases[tn] == nil then
		return 'alias not found'
	end
	local alias = aliases[tn]

return #args;
end
return p
Advertisement