Module:Infobox: Difference between revisions

change strategy for default versions, doesn't need to duplicate SMW data to page if the versions know which is their default
(format the 'Is default version' SMW property as a boolean)
(change strategy for default versions, doesn't need to duplicate SMW data to page if the versions know which is their default)
Line 491:
result = mw.smw.set(subobject)
else
ifsubobject['Version default'] = version == self.default_version then
result = mw.smw.set(subobject) -- write SMW parameters to the main page for the first version as well
subobject['Is default version'] = true
else
subobject['Is default version'] = false
end
result = mw.smw.subobject(subobject, subobject_name)
end
21,691

edits