Module:Infobox: Difference between revisions

use default_version instead of 1 for the default version from SMW properties, as default_version has a default value of 1
(for an infobox with versions, copy the SMW properties of the first version's subobject to the SMW properties of the page as a whole)
(use default_version instead of 1 for the default version from SMW properties, as default_version has a default value of 1)
Line 492:
else
result = mw.smw.subobject(subobject, subobject_name)
if version == 1defualt_version then
result = mw.smw.set(subobject) -- write SMW parameters to the main page for the first version as well
end
20,731

edits