Not to long ago I started a discussion on an mw.file object
https://en.wikipedia.org/wiki/Wikipedia:Lua_requests#How_about_a_mw.file_api
I didn't really get much further than that though.
DJ
On 3 jan. 2014, at 21:03, Brian Wolff bawo...@gmail.com wrote:
You can do {{filepath:Verschaffelt
I was working lately on a template on commons related to automatic
overlay KML creation (see [1] for KML use on Commons). Two of the items
I need but do not know how to access are full file dimensions in pixels
and the url to the raw image (like [2]). I think with Lua, I can use
HTML Parser [3] to
On Jan 3, 2014 7:04 AM, Tuszynski, Jaroslaw W.
jaroslaw.w.tuszyn...@leidos.com wrote:
I was working lately on a template on commons related to automatic
overlay KML creation (see [1] for KML use on Commons). Two of the items
I need but do not know how to access are full file dimensions in
Am 03.01.2014 18:37, schrieb Brian Wolff:
On Jan 3, 2014 7:04 AM, Tuszynski, Jaroslaw W.
jaroslaw.w.tuszyn...@leidos.com wrote:
I was working lately on a template on commons related to automatic
overlay KML creation (see [1] for KML use on Commons). Two of the items
I need but do not know
On Jan 3, 2014 11:02 AM, Raimond Spekking raimond.spekk...@gmail.com
wrote:
Am 03.01.2014 18:37, schrieb Brian Wolff:
On Jan 3, 2014 7:04 AM, Tuszynski, Jaroslaw W.
jaroslaw.w.tuszyn...@leidos.com wrote:
I was working lately on a template on commons related to automatic
overlay KML
I am (vaguely) aware of API call capabilities, for example I know
ImageAnnotator.js [1] has access to image size, since it is using it. But
Bawolff is right, I am trying to access it from Lua or template code.
As for file path, I am still confused. I tried to use Special:ExpandTemplates
to
Yes, this would be a pretty straightforward addition to the mw.Title object
or something that accepts one as a filename similarly.
https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Title_objects
Like the 'fileExists' this might be marked as an 'expensive' operation
since
You can do {{filepath:Verschaffelt Moses von Michelangelo.jpg}} (Sorry,
probably should have said that in the first place)
-bawolff
On Jan 3, 2014 12:34 PM, Tuszynski, Jaroslaw W.
jaroslaw.w.tuszyn...@leidos.com wrote:
I am (vaguely) aware of API call capabilities, for example I know