Extension:DataTable2/Lua

mw.ext.datatable2.select
Selects data from a logical table. The arguments work the same way as the arguments table, where, order-by in the &lt;dt2-showtable&gt; tag.

The result is returned as a numerically-indexed array (with indexes starting at 1) of associative arrays, each of which represents a record. If the table does not exist, false is returned.