Module:TestModule: Difference between revisions

AdamZachar (talk | contribs)
No edit summary
AdamZachar (talk | contribs)
No edit summary
Line 18: Line 18:
   output = output .. " <li>" .. "[[" .. topic.topicName .. "]]"
   output = output .. " <li>" .. "[[" .. topic.topicName .. "]]"


   output = output .. funcRecurseLineage(output, topic.topicName)
   output = output .. funcRecurseLineage("", topic.topicName)
 


   end
   end
Line 31: Line 30:
end
end


function testFunc(arg1, arg2)
return "test! " .. arg1 .. arg2 .. " test!"
end


function p.recurseLineage( frame )
function p.recurseLineage( frame )


final = testFunc("hi", "hello")
  final = funcRecurseLineage(frame.args.output, frame.args.parentTopic)
  final = funcRecurseLineage(frame.args.output, frame.args.parentTopic)