Module:Infobox: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(use default_version instead of 1 for the default version from SMW properties, as default_version has a default value of 1)
mNo edit summary
Line 492: Line 492:
else
else
result = mw.smw.subobject(subobject, subobject_name)
result = mw.smw.subobject(subobject, subobject_name)
if version == defualt_version then
if version == self.default_version then
result = mw.smw.set(subobject) -- write SMW parameters to the main page for the first version as well
result = mw.smw.set(subobject) -- write SMW parameters to the main page for the first version as well
end
end