Module:columns: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 15: Line 15:


function export.create_list(data)
function export.create_list(data)
mw.logObject(data)
if not data.terms then error("{{columns}} must be supplied with a list of terms") end
if not data.terms then error("{{columns}} must be supplied with a list of terms") end
local terms = table.sort(data.terms, function(a, b) return a.term > b.term end)
local terms = table.sort(data.terms, function(a, b) return a.term > b.term end)

Navigation menu