Module:Infobox: Difference between revisions

m
convert the Version Default parameter to a string for setting subobject SMW
(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:
result = mw.smw.set(subobject)
else
subobject['Version default'] = tostring(version == self.default_version)
subobject.testparam = false
result = mw.smw.subobject(subobject, subobject_name)
mw.smw.set({['Version subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[version]})
20,646

edits