Module:Infobox: Difference between revisions

add separate list of all version subobjects to SMW of the page
(Old version cut off after first nil)
(add separate list of all version subobjects to SMW of the page)
Line 497:
else
subobject['Version default'] = version == self.default_version
subobject.testparam = false
result = mw.smw.subobject(subobject, subobject_name)
mw.smw.set({['DefaultVersion subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[self.default_versionversion]})
if version == self.default_version then
mw.smw.set({['Default subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[self.default_version]})
end
end
if result ~= true then
Line 506 ⟶ 505:
end
end
end
if self.versions > 1 then
mw.smw.set({['Default subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[self.default_version]})
end
end
21,284

edits