Module:Bankable items: Difference between revisions

no edit summary
(Created page with "local smwjson = require('Module:SMW JSON') local pt = require('Module:Paramtest') p = {} function p.main(frame) local args = frame:getParent().args local bank = args[1] or mw.title.getCurrentTitle().text local cols = args["cols"] local col_width = args['colWidth'] local use_cols = pt.has_content(cols) or pt.has_content(col_width) local data = mw.smw.ask{ "Bank::"..bank.."", "?#-=", limit = 4000 } mw.logObject(data) ret = mw.html.create('ul') f...")
 
No edit summary
Line 23:
for _,value in ipairs(data) do
ret:tag('li'):wikitext('[['..value..']]')
mw.logObject(value)
end
if use_cols then