Module:Infobox: Difference between revisions

Old version cut off after first nil
(use page name not infobox name for default subobject linking)
(Old version cut off after first nil)
Line 368:
local func_name = func.name
local func_params = func.params
local func_fetched_paramsn_params = {}#func_params
localif in_params == 0 1then
return func_name(unpack(func_fetched_params))
for _, func_param in ipairs(func_params) do
func_fetched_params[i] = self:get_param(func_param, version)
i = i + 1
end
local function get_params(i)
return func_name(unpack(func_fetched_params))
if i == n_params then
func_fetched_params[i] = return self:get_param(func_paramfunc_params[i], version)
else
return self:get_param(func_params[i], version), get_params(i + 1)
end
end
return func_name(get_params(1))
else
table.insert(self.errors, 'Invalid param definition for '..param_name)
1,524

edits