Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(add separate list of all version subobjects to SMW of the page) |
m (convert the Version Default parameter to a string for setting subobject SMW) |
||
Line 496: | Line 496: | ||
result = mw.smw.set(subobject) |
result = mw.smw.set(subobject) |
||
else |
else |
||
subobject['Version default'] = version == self.default_version |
subobject['Version default'] = tostring(version == self.default_version) |
||
subobject.testparam = false |
|||
result = mw.smw.subobject(subobject, subobject_name) |
result = mw.smw.subobject(subobject, subobject_name) |
||
mw.smw.set({['Version subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[version]}) |
mw.smw.set({['Version subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[version]}) |