OK, so, let me first make it clear that I have no idea how Lua really works, never written more than 10 lines of code in it and that I'm generally confused about how MediaWiki + Scribunto + Lua works...
So...
I have this wiktionary module/template:
https://en.wiktionary.org/w/index.php?title=Module:pl-IPA&action=edit
It looks to me like perfectly valid lua code.
When I try to run some simple example (e.g. calling the function export.convert_to_IPA("something")
), Lua seems to complain that it doesn't know what mw
is.
From what I know, mw
stands for MediaWiki and is a reference to the Scribunto module.
The question is... how do I find and import this mw
module in a simple Lua script running from the terminal... with the Lua interpreter, on Mac?