Module:TestModule: Difference between revisions

AdamZachar (talk | contribs)
No edit summary
AdamZachar (talk | contribs)
No edit summary
Line 12: Line 12:
function p.externalDataTest( frame )
function p.externalDataTest( frame )
  local output = ""
  local output = ""
  local parentCase = frame.args.parentCase
  local parentTopic = frame.args.parentTopic
  local topics, errors =
  local topics, errors =
   mw.ext.externaldata.getDbData
   mw.ext.externaldata.getDbData
Line 19: Line 19:
   query = childrenTopics,
   query = childrenTopics,
   data = {topicName = topic_name},
   data = {topicName = topic_name},
   parameters = parentCase
   parameters = parentTopic
   }
   }


  return topics
  return parentTopic
end
end




return p
return p