Jump to content

Topic on Extension talk:Scribunto

Display external images

4
Summary by Jonathan3

Continue non-Lua methods (e.g. Widgets).

Jonathan3 (talkcontribs)

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.

Jonathan3 (talkcontribs)
Dinoguy1000 (talkcontribs)

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.

Jonathan3 (talkcontribs)

Thank you very much.