[20:43:03] Hey guys, I'm having a hard time getting a LUA template to grab content from commons (that is, directly), is that a known issue? [20:47:01] (fwiw, it seems to not be able to connect to anywhere other than where the template resides) [21:01:21] drewmutt: yeah, i don't think that lua has an idea about foreign content [21:03:06] thedj: Which is odd because it asks for the "interwiki" prefix. i.e. https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#mw.title.makeTitle [21:03:31] drewmutt: the 'foreign'-file content is bascially just 'visually' added to a local file description page. [21:03:36] drewmutt: a link is not content. [21:04:26] a link is just a link :) [21:04:37] a title just a title [21:05:08] it says nothing about your ability to do anything with that object [21:05:56] I see, I see. I may be going about this all wrong. Essentially, I want to grab a random featured image in a category from commons. [21:06:46] I don't think you can do that unless you use the javascript api... [21:07:17] Ah. Alternatively, I imagine I could do a PHP on labs. [21:07:24] yup [21:07:59] (phew) Well, glad I don't have to learn too much more LUA ^_^ [21:08:17] i guess there is an up side to everything :) [21:09:40] So, and pardon my ignorance, but a template can contain javascript? [21:10:44] Ah n/m, this seems to answer my question: https://en.wikipedia.org/wiki/JavaScript_templating