Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(add the 'is default version' parameter to subobjects made from infoboxe versions) |
(format the 'Is default version' SMW property as a boolean) |
||
Line 491: | Line 491: | ||
result = mw.smw.set(subobject) |
result = mw.smw.set(subobject) |
||
else |
else |
||
⚫ | |||
⚫ | |||
if version == self.default_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 |
||
⚫ | |||
else |
|||
subobject['Is default version'] = false |
|||
end |
end |
||
⚫ | |||
end |
end |
||
if result ~= true then |
if result ~= true then |