Module:Listbox: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(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

Revision as of 23:26, June 29, 2014

Documentation for this module may be created at Module:Listbox/doc

local p = {}

function p.list(frame)
  local pages = frame:callParserFunction{
    name = '#categorytree',
    args = { frame.args[1], 'hideroot', mode = 'pages' }
  }
  return pages
end

return p