Editing Module:Infobox
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 496: | Line 496: | ||
result = mw.smw.set(subobject) |
result = mw.smw.set(subobject) |
||
else |
else |
||
subobject['Version default'] = |
subobject['Version default'] = version == self.default_version |
||
result = mw.smw.subobject(subobject, subobject_name) |
result = mw.smw.subobject(subobject, subobject_name) |
||
if version == self.default_version then |
|||
mw.smw.set({[' |
mw.smw.set({['Default subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[self.default_version]}) |
||
⚫ | |||
end |
end |
||
if result ~= true then |
if result ~= true then |
||
Line 504: | Line 506: | ||
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 |