Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Old version cut off after first nil) |
(add separate list of all version subobjects to SMW of the page) |
||
Line 497: | Line 497: | ||
else |
else |
||
subobject['Version default'] = version == self.default_version |
subobject['Version default'] = version == self.default_version |
||
subobject.testparam = false |
|||
result = mw.smw.subobject(subobject, subobject_name) |
result = mw.smw.subobject(subobject, subobject_name) |
||
⚫ | |||
if version == self.default_version then |
|||
⚫ | |||
⚫ | |||
end |
end |
||
if result ~= true then |
if result ~= true then |
||
Line 506: | Line 505: | ||
end |
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 |
||
end |
end |