Module:Infobox: Difference between revisions

format the 'Is default version' SMW property as a boolean
(add the 'is default version' parameter to subobjects made from infoboxe versions)
(format the 'Is default version' SMW property as a boolean)
Line 491:
result = mw.smw.set(subobject)
else
subobject['Is default version'] = version == self.default_version
result = mw.smw.subobject(subobject, subobject_name)
if 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'] = version == self.default_versiontrue
else
subobject['Is default version'] = false
end
result = mw.smw.subobject(subobject, subobject_name)
end
if result ~= true then
21,580

edits