Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Im Wired In (talk | contribs) (Save version anchor to a property) |
Im Wired In (talk | contribs) m (Only save version anchors for switch infoboxes) |
||
Line 472: | Line 472: | ||
local subobject = { |
local subobject = { |
||
Infobox = self.infobox_name, -- Also store the current Infobox name |
Infobox = self.infobox_name, -- Also store the current Infobox name |
||
['Version anchor'] = self.version_names[version], -- Store the version anchor |
['Version anchor'] = self.versions > 1 and self.version_names[version] or nil, -- Store the version anchor |
||
} |
} |
||
for _, param_name in ipairs(self.param_names) do |
for _, param_name in ipairs(self.param_names) do |