Module:Side box: Difference between revisions
fix behaviour for "image = none"
(fix metadata logic) |
(fix behaviour for "image = none") |
||
Line 36: | Line 36: | ||
end | end | ||
table.insert(data.classes, args.class) | table.insert(data.classes, args.class) | ||
-- Image | |||
if args.image and args.image ~= 'none' then | |||
data.image = args.image | |||
end | |||
-- Copy over data that doesn't need adjusting | -- Copy over data that doesn't need adjusting | ||
Line 49: | Line 54: | ||
-- Body row | -- Body row | ||
'text', | 'text', | ||
'imageright', | 'imageright', | ||