Module:Infobox: Difference between revisions

28 bytes added ,  17 December 2024
m
Only save version anchors for switch infoboxes
(Save version anchor to a property)
m (Only save version anchors for switch infoboxes)
Line 472:
local subobject = {
Infobox = self.infobox_name, -- Also store the current Infobox name
['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