Module:Infobox: Difference between revisions
Save version anchor to a property
(When a parameter is nil, make sure the function is called with it being set to nil (previously, all other parameters would be shifted left one)) |
Im Wired In (talk | contribs) (Save version anchor to a property) |
||
Line 470:
local subobject_name = self.version_names[version]
-- Store each param that has smw_property defined and is not nil
local subobject = {
Infobox = self.infobox_name, -- Also store the current Infobox name
['Version anchor'] = self.version_names[version], -- Store the version anchor
}
for _, param_name in ipairs(self.param_names) do
local property = self.params[param_name].smw_property
|