Module:Listbox: Difference between revisions

Want an adless experience? Log in or Create an account.
list function that simply invokes categorytree on the given category
(trying out this lua stuff)
 
(list function that simply invokes categorytree on the given category)
Line 1: Line 1:
local p = {}
local p = {}
function p.hello(frame)
 
     return 'Hello'
function p.list(frame)
  local pages = frame:callParserFunction{
    name = '#categorytree',
     args = { frame.args[1], 'hideroot', mode = 'pages' }
  }
  return pages
end
end
return p
return p