Board Thread:Lua Help/@comment-27393108-20160120103517/@comment-24473195-20160120113730

Unfortunately, you're out of luck as those two methods aren't available. The scribunto version available here hasn't been updated or synchronized with for at least a year. So what does work in Wikipedia et al. will not necessarily work here.

The parser function you are attempting to use also isn't available in Wikia. It may not be currently possible to obtain an image's width without the Api.