With templates I've used Extension:Widgets to display external images. I would prefer not to use set $wgAllowExternalImages = true
. Is it possible to display external images when using Lua? Thanks.
Topic on Extension talk:Scribunto
I gave up far too soon... within minutes I noticed that it's possible to use Widgets via Lua using Extension:Scribunto/Lua_reference_manual#frame:callParserFunction.
But is there a better way?
Ext:Widgets doesn't have any built-in Lua bindings, so callParserFunction is pretty much it. If your widget call is in a template and you want it to stay there, you could also use frame:expandTemplate.
Thank you very much.