Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(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: | Line 470: | ||
local subobject_name = self.version_names[version] |
local subobject_name = self.version_names[version] |
||
-- Store each param that has smw_property defined and is not nil |
-- Store each param that has smw_property defined and is not nil |
||
local subobject = { |
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 |
for _, param_name in ipairs(self.param_names) do |
||
local property = self.params[param_name].smw_property |
local property = self.params[param_name].smw_property |