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.
(list function that simply invokes categorytree on the given category)
(try something simpler)
Line 2: Line 2:


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


return p
return p

Revision as of 23:35, 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
  return frame:callParserFunction( '#categorytree', 'Hyrule Warriors Characters' )
end

return p