Module:Infobox: Difference between revisions
make the Default subobject SMW parameter use the full subobject name
(add a parameter to the main page which lists the default version, for cases when there are multiple versions) |
(make the Default subobject SMW parameter use the full subobject name) |
||
Line 493:
subobject['Version default'] = version == self.default_version
result = mw.smw.subobject(subobject, subobject_name)
if version == self.default_version then
end
end
if result ~= true then
Line 499 ⟶ 502:
end
end
▲ if self.versions ~= 1 then mw.smw.set({['Default subobject']=self.version_names[self.default_version]}) end
end
|