Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(use page name not infobox name for default subobject linking) |
(Old version cut off after first nil) |
||
Line 368: | Line 368: | ||
local func_name = func.name |
local func_name = func.name |
||
local func_params = func.params |
local func_params = func.params |
||
local |
local n_params = #func_params |
||
if n_params == 0 then |
|||
⚫ | |||
for _, func_param in ipairs(func_params) do |
|||
⚫ | |||
i = i + 1 |
|||
end |
end |
||
local function get_params(i) |
|||
⚫ | |||
if i == n_params then |
|||
⚫ | |||
else |
|||
return self:get_param(func_params[i], version), get_params(i + 1) |
|||
end |
|||
end |
|||
return func_name(get_params(1)) |
|||
else |
else |
||
table.insert(self.errors, 'Invalid param definition for '..param_name) |
table.insert(self.errors, 'Invalid param definition for '..param_name) |