Extension:Cargo/Cargo and Lua

You can call a Cargo query from within a Lua module defined by the Scribunto extension. To do that, place something like the following code in a module:

Or you can call cargo.query instead of cargo.get, so the p.Main function would look like the following: