Extension:Cargo/Cargo and Lua

You can call a Cargo query from within a Lua module defined by the Scribunto extension. There are two defined methods to do this: mw.ext.cargo.get and mw.ext.cargo.query. The two methods produce the same results; the only difference is the syntax.

To call get, place something like the following code in a module:

To call query, use code like the following: