Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(make the Default subobject SMW parameter use the full subobject name) |
(use page name not infobox name for default subobject linking) |
||
Line 494: | Line 494: | ||
result = mw.smw.subobject(subobject, subobject_name) |
result = mw.smw.subobject(subobject, subobject_name) |
||
if version == self.default_version then |
if version == self.default_version then |
||
mw.smw.set({['Default subobject']= |
mw.smw.set({['Default subobject']=tostring(mw.title.getCurrentTitle())..'#'..self.version_names[self.default_version]}) |
||
end |
end |
||
end |
end |