Changes

Fix layers links not being processed correctly
Line 8: Line 8:  
}
 
}
   −
function BaseAsset:_add_layer(stack, layer, ship, args)
+
function BaseAsset:_add_layer(stack, layer, ship, args, link)
stack:node(mw.html.create('span'):addClass('image-layer'):css(self._image_layer_style):css(layer.style):wikitext(Formatting:format_image{layer.image, caption = layer.caption or args.caption, size = layer.size, link = args.link}))
+
stack:node(mw.html.create('span'):addClass('image-layer'):css(self._image_layer_style):css(layer.style):wikitext(Formatting:format_image{layer.image, caption = layer.caption or args.caption, size = layer.size, link = link}))
 
end
 
end
  
Anonymous user