Module:SMW table: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "local p = {} local yesno = require('Module:Yesno') function header(tbl, cols, fmts, imgs, types) local tr = tbl:tag('tr') if cols[0] ~= nil then tr:tag('th'):addClass('unsortable') end tr:tag('th'):attr('data-sort-type', 'text'):css('text-align', 'left'):wikitext('Name') for i=1,#cols do local ctype = types[i] or types['def'] local img = imgs[i] or imgs['def'] local fmt = fmts[i] or fmts['def'] tr:tag('th'):attr('data-sort-type', ctype):wikitext(strin...")
 
No edit summary
 
Line 135:
mw.logObject(obj)
assert(obj, "No mw.pages were found matching your query")
for _, page in ipairs(obj) do

Navigation menu